skycoin / teller

Skycoin exchange service
15 stars 30 forks source link

Expose exchanger status over API #192

Closed gz-c closed 6 years ago

gz-c commented 6 years ago

The last error (or lack of error) is recorded on exchange.Exchanger and exposed via Status(). An endpoint /api/exchange-status is added, which returns the status as

{"error": "..."}

If "error" is not an empty string, then the client can assume the OTC is sold out or otherwise unavailable.

Fixes #185