Skip to main content
Coming soon: order placement over WebSocket becomes available on September 2, 2026, on the global platform only. The EU platform is not yet supported.
Cancel an OCO or OTO group in one call. Pass the group id from the placement response and every leg is withdrawn atomically, which removes the risk of a half-canceled pair leaving one exit armed.

Rate limits

Cancel conditional group

Request parameters

The order_id value is the group id — the id inside result on the OCO or OTO placement response, next to the type value. It is neither a leg id nor the frame-level id, which only echoes the request. This method has no client_order_id form, so the group id must be retained from placement. Canceling an OTO group uses the same request shape and returns type "oto" with the trigger_order reporting CANCELED:

Response

The response mirrors the placement response — same shape, same type value — with every leg reporting status CANCELED. All legs share one mtime, because the cancellation is a single atomic event.
Groups only. A plain stop order or a TPSL leg passed here returns error 6 — cancel those with order_cancel. Conversely, a group id passed to order_cancel also returns error 6, so the two methods are not interchangeable.

Error codes

Standard transport errors and the shared account, rate-limit, and region codes are listed in Order Management.