What-if trade
whatifSimulate a buy or sell in the existing dashboard; exactly one of quantity, amount or fraction. amount is a cash size in the current display currency; amountEur is its deprecated twin, the same figure under the legacy name — send one or the other, never both. Several trades: send trades, one line each (symbol, side, one size) — one combined result, sells applied first so their cash funds the buys. Does not place an order.
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": "whatif"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | ||
| amount | No | Cash size of the simulated trade, in the dashboard display currency. | |
| symbol | No | ||
| trades | No | Several trades in ONE what-if, each with its own symbol, side and one size; applied together, sells first. Instead of symbol/side/size. | |
| fraction | No | ||
| quantity | No | ||
| amountEur | No | Deprecated twin of amount — the same display-currency figure under the legacy name. It will be removed; send amount. | |
| dashboardId | No | Which live dashboard (browser tab) runs it; from get_dashboard_state. Optional when one tab stands out: the tab the user last approved an action in, the only live tab, or the only tab on screen. Refused before any approval when the target is ambiguous or disconnected. | |
| idempotencyKey | No | ||
| expectedRevision | No |