get_klines
Fetch historical OHLCV candlestick data for a trading pair, ordered oldest first, with up to 500 candles per request. Choose symbol and interval to analyze price trends.
Instructions
Historical OHLCV candles for one symbol, oldest first, up to 500 per call. Rows are positional; the 'columns' field names them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of most recent candles, oldest first. Clamped to 500; larger values are silently reduced rather than rejected. | |
| symbol | Yes | Trading pair, base asset first, no separator. Case-insensitive; BTC/USDT and btc-usdt both normalise to BTCUSDT. | |
| interval | No | Candle width. Defaults to 1h. | 1h |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbol | Yes | ||
| candles | Yes | Oldest first. Times are epoch ms UTC. | |
| columns | No | ||
| interval | Yes | Kline intervals accepted by the spot API. |