Market OHLCV
GET/v1/hyperliquid/markets/ohlc
Returns OHLCV candles for a single coin and interval, derived from regular trade fills. Volume is broken down both by side (buy_volume, ask_volume) and — on perpetuals — by directional intent (open_long_volume, close_long_volume, open_short_volume, close_short_volume) so consumers can distinguish whether price moves are driven by fresh exposure or position unwinds. On spot markets the directional-intent fields are zero; the side-volume fields carry the buy/sell breakdown directly.
For liquidation-only candles (with mark-price OHLC), use /v1/hyperliquid/markets/liquidations/ohlc.
Query Parameters
| Parameter | Description | Value |
|---|---|---|
coinstring | Hyperliquid coin identifier. Core perps have no prefix ( | Required |
dexstring | DEX identifier. | |
intervalstring | The interval* for which to aggregate price data (1-minute, 5-minutes, 10-minutes, 30-minutes, hourly, 4-hours, daily or weekly).
| 1d |
start_timestring | UNIX timestamp in seconds or date string (e.g. "2025-01-01T00:00:00Z", "2025-01-01", ...). | |
end_timestring | UNIX timestamp in seconds or date string (e.g. "2025-01-01T00:00:00Z", "2025-01-01", ...). | |
limitinteger | Number of items* returned in a single request.
| |
pageinteger | Page number to fetch.
|
Potential Responses
| Status | Description |
|---|---|
| 200 | Successful Response |
| 400 | Client side error |
| 401 | Authentication failed |
| 403 | Forbidden |
| 404 | Not found |
| 500 | Server side error |