Diff for /documentation/guides/orders/cancelling_an_order.md
On this page, you can preview the modified document with the changes.
Note that the links within this diff are most likely broken because they are
relative to the original document or
point to another document that is not part of the changeset.
hide_side_table_of_contents: true
Cancelling an order
In this chapter you will learn how to cancel orders.
You
Orders of all types (MARKET
, LIMIT
, and STOP
) can only cancel MARKET
orders if they have the status NEW
.
LIMIT
orders can be cancelledup toin statusNEW
andPROCESSING
. For partially executed orders, only thePROCESSING
state.STOP
unfilled quantities of existing orderscanwill becancelled before the stop-price has been reached in thePROCESSING
state.
To cancel an existing order, call the cancellation endpoint with the appropriate order ID, using
DELETE /orders/{order_id}
Attempt to cancel LIMIT
or STOP
orders in PROCESSING
FILLED
state can will be rejected.
ORDER_CANCELLATION.REJECTED
webhook will be sent in cases like that. that (see also API Reference Reference](/api/Orders/#order-cancellations-events)).