preview_order
Preview an order's margin, estimated commission, and warnings before submitting it, using IBKR's whatif scenario to evaluate cost and risk.
Instructions
Preview an order's impact (margin, estimated commission, warnings) WITHOUT sending it.
Uses IBKR's whatif so the agent can reason about cost/margin before committing. side
is "BUY" or "SELL"; size is cash_amount (USD) or quantity (shares). Pass
limit_price to preview a LIMIT order (needs quantity).
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": {
"symbol": "<symbol>"
},
"name": "preview_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| side | No | BUY | |
| symbol | Yes | ||
| quantity | No | ||
| cash_amount | No | ||
| limit_price | No |