GET /api/data-api/v3/global-metrics/quotes/historical
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/cmc/api/data-api/v3/global-metrics/quotes/historicalCache cached 1s, never served stale past that windowCost per_call · weight 1 · standard rate classSource billing freeHistorical global quotes between two times: dominance, active coin/exchange/pair counts, and a quote.
name=global_metrics_historical. v3 uses timeStart+timeEnd+interval. quotes[0].quote[0].name was 2781. A 62-day window returned 62 points.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
timeStart | query | int | required | Window start as unix seconds. example: 1786752000 |
timeEnd | query | int | required | Window end as unix seconds. example: 1792108800 |
convertId | query | str | required | Quote convert id. 2781 is USD on these public routes. default: 2781example: 2781 |
interval | query | str | required | Verified value 1d. default: 1dexample: 1d |
Response
type: object
data key: quotes
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/quotes/historical?timeStart=1786752000&timeEnd=1792108800&convertId=2781&interval=1d"