GET /fapi/api/coin/history
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/coinglass/fapi/api/coin/historyCache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing freeHistorical price and market cap series for a coin
Parameters
| name | in | type | description | |
|---|---|---|---|---|
symbol | query | string | required | Base coin ticker symbol, e.g. BTC or ETH default: BTCexample: BTC |
range | query | string | optional | History range: 1d, 7d, 30d, 1y, all default: 7dexample: 7d |
Response
type: array
pagination: none
sample: [
{
"marketCap": 1270063789347.7256,
"price": "63143.41",
"time": 1795024800000
}
]
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/coinglass/fapi/api/coin/history?symbol=BTC&range=7d"