Skip to main content

Cancel pending or SLTP order

DELETE 

/v1/trading/accounts/:account_id/orders/:order_id

Cancels the selected pending or SLTP order.

Runtime restrictions:

  • unavailable if trade_mode is trading_disabled

Rules:

  • only pending orders can be cancelled
  • filled, cancelled, or rejected orders cannot be cancelled
  • if the order is not found or is no longer cancellable, the request is rejected

The method returns ACK response. Final transaction result is delivered through Server Events.

Consistency and recovery notes:

  • Closed positions and final-state orders are retained for 1 month (subject to clarification).
  • If operation_id is not received in the REST ACK response, or is not received in Server events subscription, or an unknown operation_id is received the client should restart Server events subscription and reconcile state using snapshots of currently open positions and pending orders.

Request

Responses

ACK