Get started
Errors
Every error is JSON with a stable code to switch on, and the status tells you whose move it is.
Format#
The error field holds the code, in snake case. Validation errors add issues: one for each field that failed, with its path and what was wrong.
JSON
{
"error": "invalid_request",
"issues": [
{
"path": "symbol",
"message": "Invalid input: expected string, received undefined"
}
]
}Codes#
| Status | Error | Meaning |
|---|---|---|
| 400 | invalid_request | A parameter is missing or out of range; issues says which. |
| 400 | insufficient_balance | The balance can't cover it, fees included. |
| 400 | market_closed | The market is closed. Shares and commodities trade in their exchange's hours, currency pairs on weekdays. |
| 400 | too_small | An order or conversion under its minimum, €10 for most. |
| 400 | below_minimum | An Earn amount or a recurring buy under its product's minimum. |
| 400 | order_closed | The order has already filled or been cancelled. |
| 401 | invalid_signature | The request isn't signed correctly; see Authentication. |
| 403 | permission_denied | The key can't do this, or the account is frozen or closed. |
| 403 | verification_required | The account's identity isn't verified yet. |
| 403 | restricted | Our team has paused this on the account. |
| 403 | trading_paused | Trading is paused for everyone for a moment. |
| 403 | main_account_only | A sub-account's key asked for something only the main account has. |
| 403 | risk_ack_required | Confirm the leveraged-forex risk once on the site first. |
| 404 | not_found | The symbol, order, plan or position doesn't exist, or isn't yours. |
| 429 | rate_limited | Too many requests; see Rate limits. |
| 500 | internal_error | Something failed on our side, and we're alerted the moment it happens. |
| 503 | maintenance | A short maintenance window: reads still answer, writes wait. Retry with backoff. |
| 503 | unpriced | No live price for the instrument at this moment. Retry shortly. |
Retrying#
- Retry
429after the seconds inRetry-After. - Retry
500and503with exponential backoff, starting at one second. - Don't resend a
4xxunchanged: the same request gets the same answer. - Give every order a
clientOrderId. If you retry after a timeout, an order with an id we've already seen is never placed twice.

