GET /api/data-api/v3/global-metrics/spot/chart
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/cmc/api/data-api/v3/global-metrics/spot/chartCache cached 1s, never served stale past that windowCost per_call · weight 1 · standard rate classSource billing freeGlobal spot volume: total, CEX, and DEX points plus an overview. id=1 returned that series.
name=spot_chart. The overview key is overView, not overview.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
id | query | str | required | Route-specific id. Coin routes use 1 for BTC; exchange reserves use 270 for Binance. example: 1 |
convertId | query | str | required | Quote convert id. 2781 is USD on these public routes. example: 2781 |
range | query | str | required | Verified value 30d. example: 30d |
interval | query | str | required | Bucket size. Accepted tokens differ by route; use this route's verified example. example: 1d |
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/global-metrics/spot/chart?id=1&convertId=2781&range=30d&interval=1d"