latestOpenAPI 3.0.32026-08-10336178.7 KB

6b7d8bd51050

Klines

Kline / Candlestick Data

Returns candlestick (OHLCV) bars for a symbol.

Data is assembled from a cold store (PostgreSQL) and a hot store (Redis). Missing candles between data points are gap-filled with the previous close price and zero volume.

Price types

priceTypeDescription
lastLast traded price (default).
markMark price — volume is overlaid from last klines.
indexIndex price — volume is overlaid from last klines.

Response format

Each element is a JSON array (Binance-compatible):

IndexFieldType
0openTimeint64
1openstring
2highstring
3lowstring
4closestring
5volumestring
6closeTimeint64
7quoteVolumestring
8tradesint64
9takerBuyBasestring
10takerBuyQuotestring
11(unused)string

Caching

Responses are cached server-side for 5 seconds (short-TTL). The X-Cache response header indicates HIT or MISS.

get/v2/klines

Query parameters

symbolstring required

Trading pair symbol.

interval'1m' | '3m' | '5m' | '15m' | '30m' | '1h' | '2h' | '4h' | '6h' | '8h' | '12h' | '1d' | '3d' | '1w' | '1M' required

Kline interval.

startTimeinteger

Start time in Unix milliseconds (inclusive). Omit to let the server choose.

endTimeinteger

End time in Unix milliseconds (inclusive). Omit to return up to the latest candle.

limitinteger

Maximum number of candles to return. Clamped to 1500.

priceType'last' | 'mark' | 'index'

Price series to use. mark and index klines overlay volume from last klines.

Response

Array of kline bars