GET /fapi/v1/indexPriceKlines

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

Index price OHLCV candlesticks for a pair.

Parameters

nameintypedescription
pairquerystrrequiredIndex pair.
example: BTCUSDT
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/indexPriceKlines?pair=BTCUSDT&interval=1h&limit=5"