v1
latestOpenAPI 3.1.02026-07-243035381.4 MBGet OHLCV by Symbol - Batch
/v4/data/rate/symbol/OHLCV/batch
500 credits per API call
Get multiple historical OHLCV (Open, High, Low, Close, Volume) candles for a symbol starting from a given time.
Returns up to numberOfCandles (max 50) OHLCV candles with openTime ≥ the provided start time, ordered by openTime ascending. The optional interval query parameter sets the candle size (same values as GET /v4/data/rate/symbol/OHLCV); it defaults to 1m.
Supported symbols: We support 439+ trading pairs. The symbol parameter accepts the base currency (e.g., "BTC", "ETH").
Time format: Provide the start of the range either as a Unix timestamp in milliseconds (unixFrom) or as a Date in ISO 8601 format (timeFrom). You must provide exactly one of these parameters.
Query parameters
Enum for trading pair symbols used in historical prices. These are the base symbols that are supported for historical price queries.
The base symbol of the trading pair (e.g., "BTC", "ETH").
Start time as Unix timestamp in milliseconds. Either <code>unixFrom</code> or <code>timeFrom</code> must be provided, but not both.
Start time in ISO 8601 format. Either <code>unixFrom</code> or <code>timeFrom</code> must be provided, but not both.
Number of candles to return (1 to 50).
Candle interval. Supported values: 1m, 5m, 15m, 30m, 45m, 1h, 2h, 4h, 1d, 1w, 1M. Defaults to 1m.
Response
OK - Returns up to numberOfCandles OHLCV records starting from the given time.
Example response
[
{
"symbol": "BTC",
"openTime": 1499040000000,
"open": "0.01634790",
"high": "0.80000000",
"low": "0.01575800",
"close": "0.01577100",
"closeTime": 1499644799999,
"volume": "148976.11427815",
"quoteAssetVolume": "2434.19055334",
"numberOfTrades": 308,
"takerBuyBaseAssetVolume": "1756.87402397",
"takerBuyQuoteAssetVolume": "28.46694368"
}
]