# How to Cancel an Order

**Attention! All described rules for canceling orders are applicable to both STEMX and SXUSD orders.**&#x20;

If, for some reason, the user wants to cancel an order, they can use the “Cancel” button in the section with lists of open orders on the command token page.&#x20;

You can only cancel open orders for both [buying](https://stemx.gitbook.io/stem-exchange-user-manual/how-to-buy-a-team-token) and [selling](https://stemx.gitbook.io/stem-exchange-user-manual/how-to-sell-a-team-token), including partially filled ones. If the order is completely filled, it cannot be cancelled.

<figure><img src="https://4078324111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F371dzyCXxTmRP3k38spo%2Fuploads%2FLvc2Srah9CM0lFWFZjqK%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202022-11-09%20%D0%B2%2019.00.11.png?alt=media&#x26;token=201b63d8-ca91-48e3-af03-5670197667c6" alt=""><figcaption></figcaption></figure>

Upon cancellation, all unused resources (tokens or cash) that were involved in creating the order will be returned to the trading account (cash) or wallet (tokens) of the user. Including the [commission](https://stemx.gitbook.io/stem-exchange-user-manual/exchange-commission).&#x20;

If the order to be canceled was not executed for a share, then the full volume of the order will be returned. If a partially filled order is cancelled, only the unfilled part will be refunded.&#x20;

After cancellation, the order will be removed from the “Open Orders” section and will be moved to the “Canceled Orders” section.

<figure><img src="https://4078324111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F371dzyCXxTmRP3k38spo%2Fuploads%2FtB53f0Sl1bySwb4IBFBB%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202022-11-09%20%D0%B2%2019.01.30.png?alt=media&#x26;token=8ca9b2f0-e489-486a-a2ad-73112e56dfd1" alt=""><figcaption></figcaption></figure>

Immediately after canceling the order, tokens will be returned to the user's account if it was a sell order, or money if it was a buy order. The user will receive a notification about the cancellation of the order and the new balance.

![](https://4078324111-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F371dzyCXxTmRP3k38spo%2Fuploads%2FUQxnxdLpB09pmCOt4bxs%2F%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA%20%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0%202022-11-09%20%D0%B2%2019.01.21.png?alt=media\&token=6828f0f0-9b9b-47f9-ab69-35d158b3cf04)

When canceling an order, the user is also [returned a commission](https://stemx.gitbook.io/stem-exchange-user-manual/exchange-commission) in the amount proportional to the volume of the order.
