Candlesticks (Klines)
Historical OHLCV candles for charting and backtests.
/api/v1/klinesWeight: 2PUBLICReturn candlestick (OHLCV) data for a symbol and interval. Each candle covers one interval and reports open, high, low, close and volume.
| Parameter | Type | Required | Description |
|---|---|---|---|
| symbol | STRING | Yes | The trading pair |
| interval | ENUM | Yes | 1m, 5m, 15m, 1h, 4h, 1d, 1w |
| startTime | LONG | No | Start of the range, in ms |
| endTime | LONG | No | End of the range, in ms |
| limit | INT | No | Number of candles, default 500, max 1000 |
Each candle is an array. The fields are, in order:
| Index | Field |
|---|---|
| 0 | Open time (ms) |
| 1 | Open price |
| 2 | High price |
| 3 | Low price |
| 4 | Close price |
| 5 | Base volume |
| 6 | Close time (ms) |
| 7 | Quote volume |
| 8 | Trade count |