Get OHLCV candlestick data for a Binance trading pair
1s, 1m, 5m, 15m, 1h, 4h, 1d.
| Constraint | Value |
|---|---|
limit | 1–1,500 (default 500) |
| Interval | Max Range |
|---|---|
1s | 1 hour |
1m | 7 days |
5m | 30 days |
15m | 90 days |
1h | 180 days |
4h | 365 days |
1d | 730 days |
15m for 15-minute markets1h for 1-hour markets4h and 1d for longer timeframesTrading pair
BTCUSDT, ETHUSDT, SOLUSDT, XRPUSDT Candle interval
1s, 1m, 5m, 15m, 1h, 4h, 1d Unix timestamp (seconds) for range start
x >= 0Unix timestamp (seconds) for range end
x >= 0Max candles to return
1 <= x <= 1500Successful Response
OHLCV candlestick response for a Binance trading pair.
Intervals 1s and 1m are served from pre-aggregated materialized views. Larger intervals (5m, 15m, 1h, 4h, 1d) are aggregated on-the-fly from 1m data.