Začínáme · Chyby
Plánovaná údržba
API nebo jeho část je dočasně nedostupná kvůli údržbě nebo vypnutí.
503
SERVICE_MAINTENANCEPříčina
- Probíhá oznámená údržba; chybu vracejí všechny cesty /v1 kromě GET /v1/status.
- Obchodování přes API je dočasně vypnuté: ověření, zadání a zrušení pokynu vracejí 503, zatímco tržní data, zůstatky, seznamy pokynů a historie dál fungují.
- Brána WebSocket je vypnutá nebo na instanci není místo pro další spojení; REST endpointy to neovlivní.
Řešení
- Vyčkejte počet sekund z Retry-After a požadavek zopakujte; u WebSocketu s rostoucím odstupem a náhodným rozptylem.
- GET /v1/status zůstává dostupný a uvádí začátek, konec a popis údržby i stav komponent.
- Pokyn, jehož zadání skončilo touto chybou, nevznikl.
Příklady odpovědí
Plánovaná údržba
503application/problem+json
{
"type": "https://developers.coinero.cz/errors/service-maintenance",
"title": "Service maintenance",
"status": 503,
"code": "SERVICE_MAINTENANCE",
"detail": "The API is temporarily unavailable because of planned maintenance. Retry after the number of seconds given in the Retry-After response header; the /v1/status endpoint keeps responding and reports the maintenance window.",
"requestId": "0HN7GK4L2M9PQ"
}Obchodování přes API vypnuto
503application/problem+json
{
"type": "https://developers.coinero.cz/errors/service-maintenance",
"title": "Service maintenance",
"status": 503,
"code": "SERVICE_MAINTENANCE",
"detail": "Trading through the API is temporarily unavailable. Market data and account endpoints keep working. Retry after the number of seconds given in the Retry-After response header.",
"requestId": "0HN7GK4L2M9PQ"
}WebSocket vypnut
503application/problem+json
{
"type": "https://developers.coinero.cz/errors/service-maintenance",
"title": "Service maintenance",
"status": 503,
"code": "SERVICE_MAINTENANCE",
"detail": "The WebSocket stream is temporarily unavailable. The REST endpoints keep working. Connect again after the number of seconds given in the Retry-After response header, with exponential backoff and random jitter.",
"requestId": "0HN7GK4L2M9PQ"
}