Cancel An Open Order

View as MarkdownOpen in Claude
Cancel an existing, unfilled order.

Path parameters

accountIdstringRequired
The account to which the order will clear.
orderIdstringRequired

The IB-assigned order ID of the desired order ticket.

Query parameters

extOperatorstringOptional
ExtOperator is used to identify external operator.
manualIndicatorbooleanOptional
For all orders for US Futures products, clients must submit this flag to indicate whether the order was originated manually (by a natural person) or automatically (by an automated trading system transmitting orders without human intervention). Submit a True value to indicate a manually originated order, and submit a False value to indicate an automated order. Orders for USFUT products that do not include this field will be rejected.
manualCancelTimestringOptional
Time of manual cancel.

Response

Status of submission
orderCancelSuccessobject
Acknowledges IB's acceptance of the request to cancel the order. Does not report whether the cancellation can or will ultimately be enacted.
OR
orderSubmitErrorobject
Indicates that the order reply message or submission was not accepted.

Errors

400
Bad Request Error
401
Unauthorized Error
500
Internal Server Error
503
Service Unavailable Error