GET /api/data-api/v3.3/cryptocurrency/detail/chart

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/cmc/api/data-api/v3.3/cryptocurrency/detail/chartCache cached 1s, never served stale past that windowCost per_call · weight 1 · standard rate classSource billing free

Recent coin chart. Each point is {s, v, c}; v is a 3-number array, not an OHLC candle.

name=detail_chart. Point s is a unix-seconds string. v is three floats (price, 24h volume, market cap). A BTC sample v was [83736.66, 14249337295.34, 1682849083536.60]. c was {}. timeEnd was one second before the first point, not the last. OHLC is crypto_historical_v31.

Parameters

nameintypedescription
idqueryintrequiredRoute-specific id. Coin routes use 1 for BTC; exchange reserves use 270 for Binance.
example: 1
rangequerystrrequiredVerified default is 1D. The README also calls range=7D. Not the 30d token used by global charts.
default: 1D
example: 1D
convertIdquerystrrequiredQuote convert id. 2781 is USD on these public routes.
default: 2781
example: 2781
intervalquerystrrequiredVerified value is 5m.
default: 5m
example: 5m

Response

type: object
data key: points
pagination: none

Safe request

Reads the credential from API_HUB_KEY; it never appears in the URL.

curl -sH "X-Hub-Key: $API_HUB_KEY" "https://openapihub.dev/run/cmc/api/data-api/v3.3/cryptocurrency/detail/chart?id=1&range=1D&convertId=2781&interval=5m"