GET /fapi/v1/klines
Auth X-Hub-Key from API_HUB_KEYExecute
GET /run/aster/fapi/v1/klinesCache cached 1s, never served stale past that windowCost free · weight 0 · standard rate classSource billing freeFutures OHLCV candlesticks for a symbol and interval.
Parameters
| name | in | type | description | |
|---|---|---|---|---|
symbol | query | str | required | Futures symbol. example: BTCUSDT |
interval | query | str1m | 3m | 5m | 15m | 30m | 1h | 2h | 4h | 6h | 8h | 12h | 1d | 3d | 1w | 1M | required | Candle interval. example: 1h |
startTime | query | int | optional | Start timestamp in ms. |
endTime | query | int | optional | End timestamp in ms. |
limit | query | int | optional | Number 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/klines?symbol=BTCUSDT&interval=1h&limit=5"