Skip to content
ChartDeck Developer API docs Account Get an API key

Errors

The error shape and every error code the API answers, with its cause, what to do and whether to retry.

An error is an HTTP status and

JSON
{ "error": { "code": "window_too_large", "message": "A sentence saying what was wrong and what to do." } }

Branch on code (stable); show or log message (it may change). The SDKs raise typed errors: AuthenticationError (401), PermissionDeniedError (403), NotFoundError (404), ConflictError (409), InvalidRequestError (400, 422), RateLimitError (429), ServiceUnavailableError (502, 503, 504) and APIConnectionError (no answer).

#Every code

This table is generated from the API's own code: every code a route can answer is listed.

StatusCodeTypical causeWhat to doRetry
400invalid_cursorThe cursor came from another route or other parameters, or was edited.Start again without cursor, then follow meta.next_cursor as given.no
400invalid_paramA parameter is missing, malformed or out of range; the message names it.Fix the parameter; see the operation's reference page.no
400key_in_urlAn API key was sent in the query string.Send it in Authorization: Bearer, and rotate the key: URLs end up in logs.no
401key_expiredThe key passed its expiry date.Make a new key on Account > Developer API.no
401unauthorizedNo key, a malformed key, or an unknown or revoked key.Check the header and the key; make a new key if it was revoked.no
403insufficient_scopeThe key does not have the scope this route needs.Add the scope to the key (or use another key).no
403ip_not_allowedThe call came from an address outside the key's IP allow list.Call from an allowed address or widen the allow list.no
403tier_requiredYour tier does not include this route, window or option.Use what your tier allows, or upgrade.no
404no_dataNothing is recorded for this market and window.Try another window or market.no
404not_availableThis data is not available for this market or venue.Check /v1/venues and /v1/markets for what each venue offers.no
404not_foundThe thing named (event, series, endpoint, market) does not exist or is not yours.Check the id.no
404not_in_sandboxA sandbox key asked for something the recorded pack does not hold.Ask for what the sandbox records (see Sandbox), or use a live key.no
404sandbox_not_recordedA sandbox key asked for something the recorded pack does not hold; the message lists what it holds.Ask for a recorded market and window, or use a live key.no
404split_unavailableThe coin's exchanges (or the pinned venue) publish no long/short split, so a net longs, net shorts or delta picture cannot be drawn.Use positions-heatmap (open interest by price) or another venue.no
404unknown_chartThere is no chart picture with that name.Use one of the kinds listed on the operation's reference page (GET /v1/charts/<kind>.png).no
404unknown_widgetThere is no Strata widget picture with that name.Use one of the widgets listed in the error message, or on the Strata pictures reference page (GET /v1/pictures/strata/<widget>.png).no
409endpoint_disabledThe webhook endpoint was turned off after repeated failures.Fix your server, then POST /v1/webhooks/{id}/enable.no
409limit_reachedYou already have as many webhook endpoints as your tier allows.Delete one, or upgrade.no
422unsupportedThe combination of parameters is not supported by this route.See the reference page for the supported combinations.no
422window_too_largefrom / to reach further back, or span longer, than your tier allows on this route.Shorten the window or page through it; see History windows.no
429quota_exhaustedThis month's request units are used up (X-Quota-Remaining 0; the message gives the reset date).Wait for the next month (UTC; Retry-After) or upgrade. Retrying sooner does not help.no
429rate_limitedThis minute's units are used up, or too many wrong keys came from your address.Wait Retry-After seconds, then retry with backoff.yes
500internalSomething failed on ChartDeck's side.Retry later; quote the request id to support if it persists.yes
502chart_failedThe picture could not be drawn from the data this call read.Retry later; the same data are in the matching /v1/strata route.yes
502upstreamA source behind this route did not answer.Retry later.yes
502upstream_errorA source behind this route answered with an error.Retry later.yes
503api_disabledThe API is switched off for maintenance.Retry after Retry-After.yes
503archive_unavailableThe recorded archive this route reads is not reachable right now.Retry later.yes
503overloadedThe API is shedding heavy requests under load (lower tiers first).Retry after Retry-After.yes
503render_busyToo many chart pictures are being drawn on this server right now.Retry after Retry-After (seconds).yes
503render_timeoutDrawing the chart picture took too long.Retry after Retry-After; the next call usually reads the finished picture.yes
503renderer_unavailableThis server cannot draw pictures right now.Retry later.yes
503unavailableThis data is temporarily unavailable.Retry later.yes
503upstream_busyA source is rate-limiting ChartDeck right now.Retry after Retry-After.yes
503upstream_unavailableA venue did not answer.Retry later.yes
503warming_upThe server just started and is still loading this data.Retry in a few seconds.yes

The Developer API documentation is in English.