Run strategy PK battle
pk_battleRun two trading strategies from scratch on equal balances using live market data and temporary accounts, then return stats, a PK card, and the winner.
Instructions
Run two strategies from scratch on equal balances and return stats, a PK card and the winner.
Executes the strategy functions against live market data in temporary accounts. Use pk_card to compare accounts that already exist, or backtest to test one strategy on historical data.
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": {
"strategy_a": "<strategy_a>",
"strategy_b": "<strategy_b>"
},
"name": "pk_battle"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name_a | No | Display name of strategy A on the PK card. Default 'player_a'. | player_a |
| name_b | No | Display name of strategy B on the PK card. Default 'player_b'. | player_b |
| balance | No | Starting USD for each strategy. Default 10000. | |
| strategy_a | Yes | Dotted Python path of strategy A, e.g. 'examples.momentum.run'; only 'examples.' modules are allowed. | |
| strategy_b | Yes | Dotted Python path of strategy B, e.g. 'examples.contrarian.run'; only 'examples.' modules are allowed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |