execute_rebalancing
Executes a rebalancing plan as a complete all-or-nothing trade batch, requiring confirmation by default so no partial orders are transmitted.
Instructions
Execute rebalancing trades from a rebalancing plan.
Approval-required by default; re-call with confirm=True to transmit the full batch of rebalancing orders, or set IBKR_MCP_AUTONOMOUS_EXECUTION=true to skip approval. The batch is always all-preview or all-execute -- never a partial mix.
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": {
"rebalancing_plan": "<rebalancing_plan>"
},
"name": "execute_rebalancing"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | ||
| order_type | No | MKT | |
| rebalancing_plan | Yes | ||
| execute_sells_first | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||