Get Perps candles
get_perps_candlesFetch historical OHLCV or mark-price candles for a perpetual futures instrument to analyze price movement and backtest strategies.
Instructions
Price candles for an instrument, oldest first. With kind=mark, close is the mark price
at the end of each bucket.
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": {
"instrument_id": "<instrument_id>"
},
"name": "get_perps_candles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ISO 8601 time, e.g. 2026-11-01 or 2026-11-01T12:00:00Z, or epoch seconds. | |
| kind | No | trades: OHLCV of trades; mark: mark price. | trades |
| count | No | Candles when start is empty. | |
| start | No | Empty looks back `count` intervals. | |
| interval | No | 1h | |
| instrument_id | Yes | Perps instrument id, e.g. 1. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| more | No | ||
| candles | Yes | ||
| interval | Yes | ||
| instrument_id | Yes |