Basics

Errors

Error codes, formats, and troubleshooting for the Kiyotaka Data API.

Errors return a JSON object with a code and human-readable message:

JSON
{
  "error": "RATE_LIMITED",
  "message": "Rate limit exceeded",
  "retry_after": 12
}

Request errors

CodeHTTP StatusDescription
INVALID_API_KEY401Missing or invalid API key.
INVALID_PARAMS400Missing or malformed query parameters.
INVALID_EXCHANGE400Unknown exchange ID.
INVALID_SYMBOL400Unknown symbol for the specified exchange.
INVALID_TIMEFRAME400Invalid interval value.

Tier & rate limit errors

ConditionHTTP StatusDescription
Type not permitted403Data type not available on your tier.
Time range exceeded403Query exceeds your tier's history depth.
Multi-exchange aggregation not permitted403Aggregation requires Advanced tier.
Point count exceeded403Request exceeds the data type's max points per request. Reduce period or increase interval.
Too many requests429Rate limit exceeded. Check Retry-After header.

Server errors

CodeHTTP StatusDescription
TIMEOUT504Query exceeded 30 seconds.
INTERNAL_ERROR500Server-side failure.