wait_for_fill
Poll an order until filled, cancelled, rejected, or inactive, or timeout. Returns status with timed_out flag if not complete.
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | ||
| timeout_seconds | No |