Get candles
get_candlesRetrieve OHLC candles for a single Deriv symbol, oldest first, to analyze price history. Specify symbol, timeframe, and count; the last candle may still be forming.
Instructions
OHLC candles for one symbol, oldest first. Buckets are aligned to UTC (daily bars start at 00:00 UTC). The last candle may still be forming; lastCandleForming says so. Deriv keeps about a year of daily bars and about 700 bars of intraday history.
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": {
"symbol": "<symbol>"
},
"name": "get_candles"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many candles, up to 500. | |
| symbol | Yes | A Deriv symbol code ("frxEURUSD", "R_75", "cryBTCUSD") or its name ("EUR/USD", "Volatility 75 Index"). Use list_markets to find codes. | |
| timeframe | No | Candle size, M1 to D1. | H1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| symbol | Yes | ||
| candles | Yes | ||
| timeframe | Yes | ||
| lastCandleForming | Yes |