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
Parameter
Type
Description
Columns
Column
Type
Description
⚠️ Critical Performance Warning
Advanced Example Queries
Exchange Volume Leaderboard
REST API
Authorizations
AuthorizationstringRequired
Use Basic Authentication with:
- Username: Your API Key
- Password: Your API Secret
Query parameters
exchangestringRequired
The name of the exchange to filter by
marketstringRequired
The universal market symbol to filter by
candle_duration_in_minutesinteger · min: 1 · max: 1440Required
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
start_datetimestring · date-timeRequired
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
end_datetimestring · date-timeRequired
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
Responses
200
OK
application/json
get
/ohlcv200
OK
Last updated