Hyperliquid OHLCV
hl_ohlcvHistorical OHLCV candles for a Hyperliquid market, aggregated from HL's own executed fills, by view. candles (default): one symbol's bars. Pass symbol as the HL asset (BTC, ETH, HYPE); market picks perps or HL spot and dex picks a builder-deployed HIP-3 perp DEX (default HL, the core venue). Buckets are left-aligned UTC and the window is half-open [start, end). Returns candles as {ts (epoch ms, UTC), open, high, low, close, volume, volume_usd, n_trades} ascending by ts, plus source naming the rollup that answered. export: the same, with limit defaulting to the maximum, 5000 (the REST export streams it as NDJSON). latest: the newest 1-minute bar of EVERY symbol that traded in the last hour in one call (takes only market, dex and interval; dex omitted = every DEX, each row naming its own; a bar may still be forming). Same data as GET /v1/hyperliquid/ohlcv, /ohlcv/export and /ohlcv/latest.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "hl_ohlcv"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dex | No | Perp DEX. Default HL, the core venue; the others are builder-deployed HIP-3 DEXs. On `latest`, omitted = every DEX. | |
| end | No | ISO-8601 UTC or epoch ms (exclusive). Default: now. | |
| view | No | `candles` (default): one symbol's bars; `export`: the same with `limit` defaulting to 5000; `latest`: the newest 1-minute bar of every symbol. | candles |
| limit | No | Max candles (default 500 on `candles`, 5000 on `export`; hard max 5000). | |
| start | No | ISO-8601 UTC or epoch ms (inclusive). Default: end - limit*interval. | |
| market | No | Perpetual or HL spot. Default perp. | perp |
| symbol | No | HL asset: perp ticker (BTC), spot token (HYPE) or raw spot index (@107). Required by `candles` and `export`. | |
| interval | No | Candle width. Default 1h; `latest` takes 1m only, its default. |