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
| Field | Type | Required | Description |
|---|---|---|---|
order_id | string | ✅ | UUID v4 of the order to modify. |
symbol | string | ✅ | The market symbol (e.g. AAPL-USD). |
side | enum | ✅ | Must match the original order’s side. See OrderDirection. |
order_type | enum | ✅ | Must match the original order’s type. See OrderType. |
quantity | number | Optional | New order quantity. Must respect symbol lot size, min, and max constraints. |
price | number | Optional | New price for limit/ALO orders. Ignored for market orders. Must respect tick size and price bands. |
take_profit | number | Optional | Updated take-profit price. Set 0 if unused. |
stop_loss | number | Optional | Updated stop-loss price. Set 0 if unused. |
⚠️ Notes:
- Only
price,quantity,take_profit, andstop_lossmay be modified.client_order_idcannot be used for modifies.- 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: