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.
The last error (or lack of error) is recorded on
exchange.Exchanger
and exposed viaStatus()
. An endpoint/api/exchange-status
is added, which returns the status asIf
"error"
is not an empty string, then the client can assume the OTC is sold out or otherwise unavailable.Fixes #185