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.
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 |