Export bars for a backtester
backtest_exportAnswers 'give me this stock's bars ready to load into my backtester.' Give a symbol and a framework (backtrader, backtesting_py, vectorbt, zipline, lean, nautilus, freqtrade or qlib); optionally start and end. Returns files (path, encoding, content) plus load_code - write each file at its path, then run load_code. Bars are clipped to as_of; start defaults to 365 days before end. Free keys get the last 12 months; full history with a FinzData plan.
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": "backtest_export"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| as_of | No | Point-in-time cutoff (YYYY-MM-DD). Nothing dated after this is returned, preventing look-ahead bias. Defaults to today (UTC). | |
| start | No | ||
| symbol | Yes | ||
| framework | No |