Errors
Failed calls return a non-2xx status and the same envelope with "ok": false. Failed calls are never charged.
Response 400
{ "ok": false, "error": { "code": "BAD_EXPRESSION", "message": "unknown function 'rsj' at position 0", "position": 0 } }
| HTTP | Code | Meaning |
|---|---|---|
| 400 | BAD_PARAMS | A field is missing, has the wrong type or is out of range. The message names the field. |
| 400 | BAD_EXPRESSION | An expression failed to parse or evaluate. position points at the character. |
| 400 | BAD_SYMBOL | The symbol has characters we do not accept. |
| 400 | BAD_INTERVAL | The interval is not allowed for this operation, or the dates are outside its intraday history. |
| 401 | BAD_KEY | Missing, malformed, unknown or revoked key. |
| 402 | INSUFFICIENT_CREDITS | Not enough balance for this call. Includes estimated_cost_usd and balance_usd. |
| 403 | ACCOUNT_SUSPENDED | The account is suspended. Contact us. |
| 404 | UNKNOWN_SYMBOL | No instrument with that symbol. Use GET /v1/symbols?q=. |
| 404 | NOT_FOUND | Unknown operation or job id. |
| 409 | NOT_CANCELLABLE | Only queued jobs can be cancelled. |
| 422 | NO_DATA | Not enough history in the range for this analysis; the message says how many bars are needed. |
| 400 | WEBHOOK_URL_REFUSED | The webhook URL is not https, or its host resolves to a private, loopback or reserved address. |
| 429 | RATE_LIMITED | Too many requests per second (or more than 10 test webhooks an hour, with retry_after_s). Wait and retry with backoff. |
| 429 | TOO_MANY_JOBS | More than 10 jobs queued or running. Wait for one to finish. |
| 500 | INTERNAL | Our fault. It is logged; failed calls are never charged. |
| 503 | MAINTENANCE | Short maintenance window. Retry with backoff. |
Retrying
Retry 429, 500 and 503 with exponential backoff (for example 1 s, 2 s, 4 s, with jitter). Do not retry 4xx errors other than 429 without changing the request.