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 free

Historical price and market cap series for a coin

Parameters

nameintypedescription
symbolquerystringrequiredBase coin ticker symbol, e.g. BTC or ETH
default: BTC
example: BTC
rangequerystringoptionalHistory range: 1d, 7d, 30d, 1y, all
default: 7d
example: 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"