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 free

Exchange-specific v2 OHLCV kline candles

Parameters

nameintypedescription
symbolquerystringrequiredExchange instrument key with #kline suffix
default: Binance_BTCUSDT#kline
example: Binance_BTCUSDT#kline
intervalquerystringoptionalCandle interval
default: 1h
example: 1h
limitqueryintegeroptionalNumber of candles
default: 50
example: 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"