Backtest supplied holdings
backtest_holdingsBacktest supplied holdings using historical prices and FX. Compare the chosen rebalancing rule with buy-and-hold on identical deposits and dates. Returns ending values, drawdowns and recovery. For a named crisis use stress_test_holdings. Needs complete history and no sign-in. Trading costs and personal taxes excluded.
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": {
"portfolio": "<portfolio>",
"startDate": "<startDate>",
"endDate": "<endDate>",
"initialValue": "<initialValue>"
},
"name": "backtest_holdings"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| endDate | Yes | Requested last day, 30 to 3660 days after start. | |
| portfolio | Yes | Supplied ISIN and cash holdings. | |
| startDate | Yes | Requested first day. | |
| rebalancing | No | Target-weight reset frequency. | none |
| initialValue | Yes | Hypothetical opening deposit in baseCurrency. | |
| monthlyContribution | No | Deposit at opening and each monthly anniversary on the next available session. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| links | Yes | ||
| analysis | Yes | ||
| capability | Yes | ||
| computedAt | Yes | ||
| assumptions | Yes | ||
| limitations | Yes | ||
| baseCurrency | Yes | ||
| modelVersion | Yes | ||
| seriesSampling | Yes |