Error codes
Failures return a JSON body with a stable machine-readable error string. Match on that string, not on the HTTP status alone — several distinct causes share a status code.
Response shape
{
"error": "ambiguous_symbol",
"message": "Symbol 'AAA' matches 3 instruments; add a venue suffix.",
"request_id": "req_8f21c4d0b7e9"
}
Some codes carry extra fields — server_time and skew_seconds on signature errors, retry_after on throttle errors, candidates on ambiguity errors.
Codes
| Status | Code | Cause | Retry |
|---|---|---|---|
| 400 | malformed_request | Body is not valid JSON, or a required field is missing. | No |
| 401 | signature_missing | One of the three auth headers is absent. | No |
| 401 | signature_invalid | Digest does not match the canonical payload. | No |
| 401 | signature_expired | Timestamp outside the ±300 s window. | No — resync clock |
| 401 | key_revoked | Key was revoked or belongs to a closed account. | No |
| 403 | scope_denied | Key is valid but lacks the endpoint's scope. | No |
| 404 | unknown_symbol | Venue suffix is valid but the instrument does not exist. | No |
| 410 | endpoint_retired | v1 path, or a deprecated v2 endpoint past its sunset date. | No |
| 422 | ambiguous_symbol | Bare ticker; several venues match. | No |
| 429 | rate_limited | Sustained rate exceeded for the key. | Yes — after Retry-After |
| 429 | concurrency_limited | Too many in-flight requests for the tier. | Yes — exponential backoff |
| 500 | internal_error | Unhandled server fault. | Yes — max 3 attempts |
| 503 | snapshot_unavailable | Consolidation snapshot is being rebuilt. | Yes — after Retry-After |
| 504 | upstream_timeout | A primary venue feed did not respond in time. | Yes — max 2 attempts |
Retry policy
Only 429, 500, 503 and 504 are retryable. Everything in the 4xx range other than throttling is deterministic: replaying the identical request will produce the identical error.
- Honour
Retry-Afterwhen present; otherwise back off exponentially from 250 ms with full jitter. - Cap total attempts at three. A sustained
503indicates consolidation work, not a client fault. - Do not retry
POST /api/v2/exposureblindly on timeout if you are counting requests for billing — the call is stateless, so the only cost is quota. - Log
request_idon every failure. It is the only handle that resolves to a specific server-side trace.
Do not retry signature errors. A
signature_invalid loop is the most common cause of account-level throttling in production. If it appears, log the canonical payload (without the secret) and diff it against the specification on the Authentication page.
Status page
Snapshot rebuilds and venue outages are announced on the status page, and planned maintenance is posted at least 48 hours ahead. Incidents that affect only one venue appear as a partial degradation and do not change the overall status.