Test an idea on settled history
backtestScore copying a signal, or one trader, on markets that already settled: bets, wins, return and a profit curve. Send exactly one of signal, trader or bot (a bot id from list_bots, scored with its own trader or signal, sizing, copy rules, exits and daily limit; fields sent beside it override the bot's). A signal that names no traders reaches back at most 90 days. A trader backtest replays what a paper bot copying them would do, holding each bet to settlement unless mirrorExits is true; copy and dailyCapUsd apply a trader bot's copy rules and daily limit. Its live block is what a real-money bot would have made, at live prices, fees and fill rates; quote live over the paper numbers when judging a trader. slippage scores the live block at a bot's slippage. On Kalshi, live.slippage gives a trader's estimate at 2, 3, 5, 10 and 20 cents (fill rate, profit, return, max drawdown), to compare settings. holdout, sweep and breakdown work on signals only and each costs one more request (a sweep, one per value past the first). Saves nothing and places nothing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "backtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bot | No | A bot id from list_bots, to score that bot exactly as it is set up. | |
| copy | No | Trader backtests only: which of the trader's trades to copy, as a trader bot's copy rules. Prices run 0 to 1. | |
| days | No | Days back to score. Defaults to 90. | |
| sweep | No | Score the signal at each value of one field. | |
| signal | No | Conditions a whale buy must meet. | |
| sizing | No | Bet size: { usd } per trade, or { percent, maxUsd } of the source trade. Defaults to $100 a trade. | |
| trader | No | A trader ref, to score copying them. | |
| holdout | No | Score the first two thirds, check on the last third. Use before trusting a result. | |
| slippage | No | The slippage the live block is scored at: cents over the trader's price (0 to 20) or a percent of it. 2.5% by default, as live bots are saved, and never under 2 cents; a setting you choose is scored exactly, so less room loses the fills a moving price takes. A bot's own setting is used with bot. | |
| breakdown | No | ||
| dailyCapUsd | No | Trader backtests only: the bot's daily limit on buys in dollars, counted in your own day. None by default. | |
| mirrorExits | No | Trader backtests only: sell the share of the position the trader sells, at their price, as a bot set to sell when the trader sells. Defaults to false, holding each bet to settlement. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |