OHLCV
SQL API
api.ohlcv
api.ohlcv SELECT
start,
open,
high,
low,
close,
volume
FROM api.ohlcv(candle_duration_in_minutes = 1440)
WHERE market = 'ETH-USDT'
AND exchange = 'binance'
AND start >= '2024-06-01'
AND start <= '2024-06-08'Parameters
Columns
⚠️ Critical Performance Warning
Advanced Example Queries
Exchange Volume Leaderboard
REST API
Required for /ohlcv and /trade endpoints. Pass your API key in the x-api-key header. Public /market/* endpoints do not require authentication.
The name of the exchange to filter by
The universal market symbol to filter by
The time interval for the candles in minutes. The value can be any amount of minutes:
- 1: 1 minute
- 5: 5 minutes
- 60: 1 hour
- 1440: 1 day
The start time for the OHLCV data in ISO 8601 format (e.g., '2023-01-01T00:00:00Z')
or any format that can be parsed by the parseDateTime64BestEffort
The end time for the OHLCV data in ISO 8601 format (e.g., '2023-01-02T00:00:00Z')
or any format that can be parsed by the parseDateTime64BestEffort
OK
Start time of the candle
End time of the candle
Duration of the candle in minutes
Opening price of the candle
Highest price during the candle period
Lowest price during the candle period
Closing price of the candle
Volume traded during the candle period
Number of trades during the candle period
OK
Last updated