Platform status
This endpoint needs no authentication and keeps answering while the API itself
is down.
During maintenance
Every other API request, including websocket connections, is refused with503 Service Unavailable, a Retry-After header (seconds until eta, never
less than 60, or 300 when no eta was announced) and this body:
maintenance; match on it as on any other
error code.
What a client should do:
- Stop sending orders and cancels; nothing reaches the matching engine, so nothing is placed or cancelled while maintenance is on.
- Poll
GET /api/v2/status(no more than once every 5 seconds) until it readsok, then reconnect websockets and resynchronise: re-read open orders, balances and positions rather than assuming nothing changed. - Open orders stay on the book unless the maintenance notice says otherwise.
fetchStatus() reads this endpoint (status, eta, updated), and a
request refused for maintenance raises OnMaintenance.