Skip to main content
Orders can be modified over WebSocket.
Only price, quantity, take_profit, and stop_loss may be changed.
  • You must specify the order’s order_id (UUID v4).
  • You must specify the symbol.
  • You must specify the side.
  • You must specify the order_type.
  • client_order_id cannot be used for modifies.

1) Authenticate

Send this immediately after you connect:

2) Modify Order

Parameters

⚠️ Notes:
  • Only price, quantity, take_profit, and stop_loss may be modified.
  • client_order_id cannot be used for modifies.
  • The order_id changes on modification. The response will contain a new order_id. The old order_id is replaced. This is because multiple in-flight amends are not currently supported.
  • Modifications that would cause an invalid state (e.g. reducing below partially filled quantity) will be rejected with OrderStatus codes such as CANNOT_MODIFY_PARTIAL_FILL or CANNOT_MODIFY_NO_SUCH_ORDER.

Sample Code

Example Response

When an order is successfully modified, you receive the same order_response object as with add, but with status MODIFIED and a new order_id (the old one is replaced).