Get Bars
get_barsFetch historical OHLCV bars for a trading symbol, oldest-first, to support charting, backtesting, and strategy analysis; specify timeframe and limit.
Instructions
Get historical OHLCV bars for a symbol, oldest-first.
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_bars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of bars (capped by the server) | |
| symbol | Yes | Trading symbol (e.g. "AAPL") | |
| timeframe | No | One of 1m, 5m, 15m, 1h, 1d (provider may support a subset) | 1d |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |