get_bars
Retrieve daily-bar summary statistics with a required as-of date to prevent lookahead bias in backtests. Get per-symbol aggregates and resource links without raw rows inlined.
Instructions
Summary statistics for daily bars over a window. Returns per-symbol aggregates and a resource link to the full frame; raw rows are never inlined. Examples: get_bars(symbols=['SYN-04'], start='2019-01-01', end='2021-12-31', as_of='2021-12-31'); get_bars(symbols=['SYN-02','SYN-09'], start='2020-01-01', end='2020-12-31', as_of='2020-12-31', fields=['close','volume']). as_of is required on this tool and the call fails without it.
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": {
"symbols": "<symbols>",
"start": "<start>",
"end": "<end>",
"as_of": "<as_of>"
},
"name": "get_bars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | Yes | Last bar date, inclusive. | |
| as_of | Yes | REQUIRED point-in-time cutoff. There is no default and no safe guess. No bar dated after this is returned, ever. Set it to the decision date you are simulating, not to today: using a later as_of than the evaluation window is how a backtest accidentally sees the future. | |
| start | Yes | First bar date, inclusive. | |
| fields | No | Which OHLCV fields the summary should cover. | |
| symbols | Yes | One to twenty dataset symbols. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||