INFO

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.


Go back to the summary



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.

COMING SOON
  • LIMIT orders can be cancelled up to in status NEW and PROCESSING. For partially executed orders, only the PROCESSING state.
  • STOP unfilled quantities of existing orders can will be cancelled before the stop-price has been reached in the PROCESSING state.
cancelled.

To cancel an existing order, call the cancellation endpoint with the appropriate order ID, using

DELETE /orders/{order_id}

class="upvest-preview"> class="upvest-info">
class="upvest-preview-title">COMING SOON
class="upvest-info-title">INFO
class="upvest-preview-body"> class="upvest-info-body">

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)).

Was this page helpful?