/binance/klines
Get historical candlestick (OHLCV) data for a trading pair
Price: 1 credit
💡 AI Hint: Get native exchange candlestick (OHLCV) data for a Binance spot trading pair (e.g. ‘BTCUSDT’). Each candle carries its open time, open/high/low/close prices, base-asset volume, close time, quote-asset volume, number of trades, and taker buy base/quote volumes. The interval ranges from one second to one month. By default the most recent candles are returned; pass start_time and/or end_time (unix milliseconds) to fetch a specific historical range. Candles are ordered oldest to newest.
⚠️ Common errors: 412: Trading pair not found or no data in the requested range
Authorizations
API token from the dashboard
Headers
Body
Trading pair symbol, uppercase, no separator
"BTCUSDT"
"ETHUSDT"
Candlestick interval
1s, 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 3d, 1w, 1M Number of candles to return
x >= 1Max scrapping execution timeout (in seconds)
20 <= x <= 1500Start of the range, unix milliseconds
x >= 0End of the range, unix milliseconds
x >= 0Time zone offset for interpreting interval boundaries, e.g. '0', '+08:00'
Response
Successful Response