REST API

Errors

HTTP status codes and the error format.

Errors use standard HTTP status codes and always have the same shape:

{
  "error": {
    "code": "INVALID_PARAM",
    "message": "interval must be one of 1min, 5min, 15min, 30min, 60min, 1d, 1w, 1mo.",
    "param": "interval"
  }
}

code is stable, so branch on it. message is for people and may change. param is there when one parameter caused the error.

StatusCodeMeaning
400INVALID_PARAMA parameter is missing, the wrong type, or out of range.
401AUTH_REQUIREDNo API key was sent.
401INVALID_API_KEYThe API key is wrong or revoked.
403PLAN_LIMITYour plan doesn’t include this endpoint, option or history.
404NOT_FOUNDNo resource with that ID.
404INVALID_SYMBOLNo listed company with that symbol or ISIN.
409AMBIGUOUS_IDENTIFIERThe identifier matches more than one security.
429RATE_LIMITEDDaily or per-minute limit reached. See Retry-After.
500SERVER_ERRORSomething went wrong on our side. Retry with backoff.
503UNAVAILABLETemporarily unavailable, e.g. during maintenance.

Every response has an X-Request-Id header. Include it when you contact support.