Get OHLC candles
get_ohlcRetrieve recent OHLC candles for any symbol. Choose timeframe and bar count to get market data for analysis.
Instructions
Returns recent candles for a symbol. Long ranges are truncated to the most recent rows; the response states the total available.
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_ohlc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | No | How many of the most recent bars to use. | |
| symbol | Yes | Instrument symbol, for example XAUUSD. Case-insensitive. | |
| timeframe | No | Bar size. Defaults to 1d. |