GET /fapi/api/v2/kline
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/coinglass/fapi/api/v2/klineCache cached 1s, never served stale past that windowCost per_row · weight 2 · heavy rate classSource billing freeExchange-specific v2 OHLCV kline candles
Parameters
| name | in | type | description | |
|---|---|---|---|---|
symbol | query | string | required | Exchange instrument key with #kline suffix default: Binance_BTCUSDT#klineexample: Binance_BTCUSDT#kline |
interval | query | string | optional | Candle interval default: 1hexample: 1h |
limit | query | integer | optional | Number of candles default: 50example: 50 |
Response
type: array
pagination: none
sample: [
[
1793829600,
"80198.7",
"80927.5",
"80185.7",
"80682.1",
"557918345.2719"
],
[
1793833200,
"80682",
"80699.8",
"80350",
"80466.5",
"340867432.6361"
],
[
1793836800,
"80466.4",
"80807.3",
"80441.7",
"80509.4",
"359708661.7196"
]
]
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/v2/kline?symbol=Binance_BTCUSDT%23kline&interval=1h&limit=50"