Candles (OHLCV)
get_candlesHow has a Hyperliquid market's price moved? OHLCV candles of one market, built from every trade: open, high, low, close, volume and trade count per candle, oldest first. For only the current price use get_price; for individual trades use get_recent_trades.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"market": "<market>"
},
"name": "get_candles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Number of candles to return (1-500, default 24) | |
| market | Yes | Market: BTC-PERP, xyz:NVDA-PERP, HYPE/USDC, or a Hyperliquid name (BTC, @107, xyz:NVDA) | |
| interval | No | Candle interval (1m, 5m, 15m, 1h, 4h, 1d). Default: 1h |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | OHLCV candles | |
| notice | No | A note from the API: how a market name was read, why data starts later than asked, or a next step such as a free key | |
| pagination | No | Cursor pagination |