Skip to main content
Modify orders on an authenticated Trade WebSocket connection. Only price, quantity, take_profit and stop_loss may be changed. Identify the current order by order_id, not client_order_id.

Modify order

Parameters

Omitting required fields produces InvalidJSONFormat. A mismatched reduce_only value is rejected with CANNOT_MODIFY_NO_SUCH_ORDER. Invalid state transitions, such as an impermissible modification after partial execution, use the existing OrderStatus codes.

Order IDs and responses

A client-requested modification replaces the order ID. Use the new order_id in the response for subsequent requests. Do not continue addressing the old ID, and do not use client_order_id as a modify identifier. Subscribe to order responses before relying on live state.

Private resting orders

A modification preserves dark. It is not a writable modify field; cancel and submit a new order to change it. Supplying dark or the retired private-instruction fields on modify_order has no effect; these fields are ignored. The current reduce_only value and replacement order-ID handling still apply. See Private-order API.

Automatic reduce-only conversion

Soft liquidation can change a resting order’s reduce_only flag to true without a client request. Use its current flag, not the value originally submitted. Sending false after conversion is rejected with CANNOT_MODIFY_NO_SUCH_ORDER. The exchange-initiated conversion preserves the order ID and dark instruction; the ID replacement above applies to client modifications. See automatic reduce-only conversion.