Spot Trading

Modify order

The endpoint modifies existing order.

Supported order types: limit, stop limit, stop market.

Request must contain one of the following parameters: amount, price, activationPrice.

<Warning> Rate limit: 10000 requests/10 sec. </Warning> <Note> - Use total parameter instead of amount for modify buy stop market order. - Modification by clientOrderId takes priority. - The request supports working only with orderId or only with clientOrderId. - Do not pass both values at the same time. </Note> <Note> **WebSocket impact:** Each call to the endpoint cancels the original order and creates a replacement with a **new `orderId`**. Clients subscribed to the `ordersPending_update` WebSocket channel will receive: - `event_id=3` (cancel) for the old order - `event_id=1` (new) for the replacement

Update any orderId references after a successful modify response. Use clientOrderId for stable order tracking across modifications. </Note>

<Accordion title="Error Codes"> **Status 400** (client errors): 1, 2, 6, 20, 24, 101, 158

Status 422 (business logic): 10, 11, 12, 13, 14, 15, 16, 17, 25, 27, 40, 42, 51, 103, 104, 105, 106, 111, 112, 113, 114, 115, 150, 151, 152, 153, 155, 157, 159, 160, 161, 162, 163, 250, 251, 300, 302, 330 </Accordion>

<Accordion title="Errors">
post/api/v4/order/modify

Request

Changes

No recorded changes to this operation across all 1 revision of this API.