OHLCV streaming download
Query
SELECT start, exchange, market,
toFloat64(open) AS open,
toFloat64(high) AS high,
toFloat64(low) AS low,
toFloat64(close) AS close,
toFloat64(volume) AS volume
FROM api.ohlcv(candle_duration_in_minutes = 1)
WHERE market = 'BTC-USDT'
AND exchange IN ('binance', 'okx', 'kucoin', 'gateio')
AND start >= toDateTime('2024-01-01')
AND start < toDateTime('2024-12-31') + INTERVAL 1 DAY
ORDER BY exchange, startPython streaming wrapper
Reading the Parquet back
Companion code
Extending it
Last updated