Get perp candles
get_perp_candlesHyperliquid perp candles for one coin as parallel arrays t/o/h/l/c/v. coin is the bare Hyperliquid coin (BTC, not BTC-PERP; HIP-3 coins are dex-prefixed, e.g. xyz:NVDA). interval sets the bar size (default 1h). from/to are unix MILLISECONDS (default the last 7 days); returned t is unix seconds.
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": {
"coin": "<coin>"
},
"name": "get_perp_candles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Window end, unix MILLISECONDS, not seconds (default now). | |
| coin | Yes | Bare Hyperliquid coin (BTC, kPEPE) or Discover's perp id (BTC-PERP); HIP-3 coins are dex-prefixed, e.g. xyz:NVDA. | |
| from | No | Window start, unix MILLISECONDS, not seconds (default 7 days before `to`). | |
| interval | No | e.g. 1m, 15m, 1h, 4h, 1d. Default 1h. |