Fetch historical candlestick (OHLCV) data for a given asset and quote currency. You may optionally filter the data using query parameters: ‘since’ and ‘until’ for the time range, ‘exchange’ to specify the data source, and ‘granularity’ to set the time interval for each candlestick.
The asset symbol to retrieve candlestick data for (e.g. BTC, ETH).
The quote currency used in the trading pair (e.g. USDT).
USDT
Optional. The start timestamp (in UNIX milliseconds) for the candlestick data range.
x >= 0
Optional. The end timestamp (in UNIX milliseconds) for the candlestick data range.
x >= 0
Optional. The exchange from which to retrieve candlestick data. Defaults to 'binance'.
binance
, kraken
, bitget
, bitmart
, bybit
, coinbase
, cryptocom
, gateio
, kraken
, kucoin
, okx
Optional. The time interval for each candlestick. Allowed values include '1m', '15m', '30m', '1h', '4h', '1d'.
1h
Successful response
Array of candlestick data in the format: [time, open, high, low, close, volume].