GET /fapi/api/basis/v2/chart
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/coinglass/fapi/api/basis/v2/chartCache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing freeHistorical futures basis chart for a coin and exchange
Parameters
| name | in | type | description | |
|---|---|---|---|---|
symbol | query | string | required | Base coin ticker symbol, e.g. BTC or ETH default: BTCexample: BTC |
interval | query | string | required | Candle interval default: 1hexample: 1h |
exName | query | string | required | Exchange name, e.g. Binance or OKX default: Binanceexample: Binance |
Response
type: object
pagination: none
sample: {
"data": "list(3)",
"dateList": "list(1000)"
}
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/basis/v2/chart?symbol=BTC&interval=1h&exName=Binance"