wait_for_fill
Poll an order until filled or cancelled, closing the confirm-the-fill loop and returning status or timeout.
Instructions
Poll an order until it reaches a terminal state (filled/cancelled/rejected/inactive), or the timeout elapses.
Closes the confirm-the-fill loop so the agent doesn't have to orchestrate the
retry itself. Returns the latest status with timed_out true if it was still
working when time ran out. timeout_seconds is capped at 120. Note: an inactive
result usually means the order was rejected/killed, but IBKR also uses it for an
order parked until the market opens — so confirm intent before assuming it's dead.
Same unit contract as order_status: filled_quantity in SHARES, filled_cash in US$,
and quantity_is_estimate true when the share count was derived from a partial cash fill.
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": {
"order_id": "<order_id>"
},
"name": "wait_for_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | ||
| timeout_seconds | No |