candleSnapshot | Hyperliquid Info API
Info API
candleSnapshot | Hyperliquid Info API
Hyperliquid candleSnapshot: fetch historical OHLCV candles for a coin and interval over a time window for charting and backtesting.
POST
candleSnapshot | Hyperliquid Info API
Credit Cost
1 per call
Processing
Realtime
type: "candleSnapshot" is used to fetch historical OHLCV candles for a coin and interval over a time window for charting and backtesting.
- Wire-equal to
POST api.hyperliquid.xyz/infowith{"type": "candleSnapshot", "req": {...}}. Note the nestedreqobject. - Each response contains at most 5,000 most recent candles.
- For live, push-based candles, including HIP-3 and HIP-4 markets, use the Streaming API OHLCV streams instead of polling.
[startTime, endTime] window. Each candle carries the open/close timestamps, the coin, the interval, open/high/low/close prices, base volume, and trade count. Use it for chart backfills, indicator computation, and backtests.
This is a global, non-user-keyed type. Page through time by advancing startTime.
Endpoint
Request
The request parameters are nested inside areq object.
Always
"candleSnapshot".The candle query parameters.
Example
Response
An array of candle objects, oldest first.Field descriptions
The price and volume fields (
o, c, h, l, v) are returned as decimal strings, preserving upstream precision. Do not parse them as floats.Candle open time, Unix milliseconds.
Candle close time, Unix milliseconds.
Coin symbol.
Candle interval - echoes the request
interval.Open price.
Close price.
High price.
Low price.
Base-asset volume over the candle.
Number of trades in the candle.