GET /fapi/v1/continuousKlines

Auth X-Hub-Key from API_HUB_KEYExecute GET /run/aster/fapi/v1/continuousKlinesCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing free

Continuous contract OHLCV candlesticks for a pair and contract type.

Parameters

nameintypedescription
pairquerystrrequiredContract pair.
example: BTCUSDT
contractTypequerystr
PERPETUAL | CURRENT_QUARTER | NEXT_QUARTER
requiredContract type.
example: PERPETUAL
intervalquerystr
1m | 3m | 5m | 15m | 30m | 1h | 2h | 4h | 6h | 8h | 12h | 1d | 3d | 1w | 1M
requiredCandle interval.
example: 1h
startTimequeryintoptionalStart timestamp in ms.
endTimequeryintoptionalEnd timestamp in ms.
limitqueryintoptionalNumber of candles (max 1500).
example: 5

Response

type: array
pagination: none
sample: {
  "[0]": "array[12]"
}

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/aster/fapi/v1/continuousKlines?pair=BTCUSDT&contractType=PERPETUAL&interval=1h&limit=5"