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_idcannot be used for modifies.
1) Authenticate
Send this immediately after you connect:2) Modify Order
Parameters
⚠️ Notes:
- Only
price,quantity,take_profit, andstop_lossmay be modified.client_order_idcannot be used for modifies.- The
order_idchanges on modification. The response will contain a neworder_id. The oldorder_idis 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_FILLorCANNOT_MODIFY_NO_SUCH_ORDER.
Sample Code
Example Response
When an order is successfully modified, you receive the sameorder_response object as with add, but with status MODIFIED and a new order_id (the old one is replaced).