getMarketKline
Retrieve historical OHLCV candlestick data including open, high, low, close, volume, and turnover for spot and derivatives markets. Supports time range queries with start and end timestamps.
Instructions
Query historical klines (OHLCV candlestick data) including open, high, low, close, volume, and turnover.
Use this endpoint when you need to:
Build price charts with open/high/low/close/volume/turnover data
Perform technical analysis on historical market prices
Retrieve data for a specific time range using
startandendparameters
Supported Products: Spot, USDT contract, USDC contract, Inverse contract
Each kline entry is a 7-element array: [startTime, open, high, low, close, volume, turnover].
Data is returned in reverse chronological order (most recent first). Returns up to 1000 records per request.
Do not use this endpoint for mark price candles — use getMarkPriceKline instead.
Do not use this endpoint for index price candles — use getIndexPriceKline instead.
Notes:
Data is returned in reverse chronological order (most recent first)
No authentication required
Agent hint: Use this endpoint to retrieve OHLCV candlestick data for charting or technical analysis. Provide start and end timestamps (milliseconds) to query a specific time range. For mark price candles use getMarkPriceKline; for index price candles use getIndexPriceKline. For premium index (funding basis) candles use getPremiumIndexPriceKline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| category | No | linear | |
| symbol | Yes | ||
| interval | Yes | ||
| start | No | ||
| end | No | ||
| limit | No |