fetch_data
Fetch and cache historical OHLCV data for a symbol, a prerequisite for running a backtest. Specify a period like 1y or 5y.
Instructions
Fetch & cache historical OHLCV for symbol (prerequisite for run_backtest).
period is e.g. 1y / 5y / 6m / 30d / max (defaults to 1y). Returns {symbol, period,
output}. The CLI has no --start/--end, so only period is exposed. Run this before
run_backtest. Reports progress to capable clients; has an execution timeout.
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": "fetch_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| period | No | ||
| symbol | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | Yes | ||
| error | Yes |