Get OHLCV candles
hl_get_candlesRetrieve OHLCV candlestick history for a coin at a specified interval. Supports explicit time range or lookback count of most recent candles, with paginated results.
Instructions
OHLCV candlestick history for a coin at a given interval. Provide either an explicit [startTime,endTime] (ms epoch) or a lookback count of the most recent candles. Returns most-recent-last, paginated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | Perp coin symbol, e.g. 'ETH'. | |
| limit | No | ||
| offset | No | ||
| endTime | No | End time in ms epoch (default now). | |
| interval | No | 1h | |
| lookback | No | Number of most-recent candles to fetch (ignored if startTime given). | |
| startTime | No | Start time in ms epoch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes | ||
| total | Yes | ||
| candles | Yes | ||
| interval | Yes | ||
| nextOffset | Yes |