ClickAPIs
Docs · Errors

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
  }
}
HTTPCodeMeaning
400BAD_PARAMSA field is missing, has the wrong type or is out of range. The message names the field.
400BAD_EXPRESSIONAn expression failed to parse or evaluate. position points at the character.
400BAD_SYMBOLThe symbol has characters we do not accept.
400BAD_INTERVALThe interval is not allowed for this operation, or the dates are outside its intraday history.
401BAD_KEYMissing, malformed, unknown or revoked key.
402INSUFFICIENT_CREDITSNot enough balance for this call. Includes estimated_cost_usd and balance_usd.
403ACCOUNT_SUSPENDEDThe account is suspended. Contact us.
404UNKNOWN_SYMBOLNo instrument with that symbol. Use GET /v1/symbols?q=.
404NOT_FOUNDUnknown operation or job id.
409NOT_CANCELLABLEOnly queued jobs can be cancelled.
422NO_DATANot enough history in the range for this analysis; the message says how many bars are needed.
400WEBHOOK_URL_REFUSEDThe webhook URL is not https, or its host resolves to a private, loopback or reserved address.
429RATE_LIMITEDToo many requests per second (or more than 10 test webhooks an hour, with retry_after_s). Wait and retry with backoff.
429TOO_MANY_JOBSMore than 10 jobs queued or running. Wait for one to finish.
500INTERNALOur fault. It is logged; failed calls are never charged.
503MAINTENANCEShort 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.