GET /api/v1/klines

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

Spot OHLCV candlesticks for a symbol and interval.

Parameters

nameintypedescription
symbolquerystrrequiredSpot symbol.
example: ASTERUSDT
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/api/v1/klines?symbol=ASTERUSDT&interval=1h&limit=5"