tool_run_portfolio_backtest
Run a portfolio backtest with weighted asset allocations to evaluate how a trading strategy performs across diversified holdings.
Instructions
Run a portfolio backtest across multiple assets with weighted allocation.
Test how a strategy performs across a diversified portfolio. Each asset gets a weighted allocation of the total capital.
assets: List of asset allocations. Each has:
symbol: Asset symbol (e.g. "BTC/USDT", "ETH/USDT")
weight: Portfolio weight from 0 to 1. All weights must sum to 1.0.
Example: [{"symbol": "BTC/USDT", "weight": 0.6}, {"symbol": "ETH/USDT", "weight": 0.4}]
The same strategy is applied to all assets. Returns a portfolio_backtest_id. Use get_portfolio_backtest_status to poll, then get_portfolio_backtest_results for results.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| assets | Yes | ||
| end_date | No | ||
| strategy | Yes | ||
| timeframe | Yes | ||
| commission | No | ||
| start_date | Yes | ||
| initial_cash | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||