Get historical candles
Markets
Get candles
Get historical OHLCV candles for a market over a time range.
GET
Get historical candles
interval and from are required; from and to are Unix timestamps in milliseconds and to defaults to the current interval boundary. A request returns at most 5000 candles: when the range is wider, the most recent 5000 before to are returned. To read a longer history, request windows of at most 5000 intervals and move both from and to. Prices and volume are decimal strings; volume is in base asset units. This is a plain GET; the Perps API has no streaming price feed.Authorizations
Path Parameters
The market identifier
Example:
"hyperliquid-btc-usdc"
Query Parameters
Available options:
1m, 5m, 15m, 1h, 4h, 1d Example:
"1h"
Start time (unix milliseconds)
Example:
1704067200000
End time (unix milliseconds)
Example:
1704153600000

