# Close Market

A market close is instant, and you close the position at the best available spot price.

Here’s the guideline to close a position by market order

**Step 1:** Choose the quantity you want to close

* Choose the percentage of quantity in your intention of closing (10%, 25%, 50%, 75%,100%).       &#x20;

<figure><img src="https://708384545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mdp4fjGfZFcARkxFmyK%2Fuploads%2FvnhvXyikZ9GyC88UbidI%2FScreen%20Shot%202023-01-03%20at%2016.05.31.png?alt=media&#x26;token=16642db2-3a64-4ac6-9dfc-8aaa0acd082d" alt=""><figcaption></figcaption></figure>

* The defaulted percentage is 100% which means closing the whole position. Otherwise, you can quickly choose other percentages of position quantity (10%, 25%, 50%, 75%), it just reduces the position.

{% hint style="info" %}

* If the quantity of market close plus the quantity of a limit close that you have had previously overwhelmed the quantity of the position, the system will cancel limit close order to execute the market close order.
* If the quantity of market close order is below the minimum quantity required corresponding to each pair, this order can not be executed. Filling a larger quantity can solve this issue.
* If the quantity of market close order is more than 100% of market dept which is informed in the order book,  this order can not be executed. Filling a smaller quantity can solve this issue.
  {% endhint %}

**Step 2:** Click **Market** button on the right side of the position.

<figure><img src="https://708384545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mdp4fjGfZFcARkxFmyK%2Fuploads%2FKYYwAt3dMJ2H2EPr4Hps%2FScreen%20Shot%202023-01-03%20at%2016.05.25.png?alt=media&#x26;token=4a7d594f-b90b-4dad-a70b-7699c3160dfa" alt=""><figcaption></figcaption></figure>

**Step 3:** Confirm the action

* The system creates an order of closing with the quantity selected. Check the details in this pop-up before clicking **Confirm** button

<figure><img src="https://708384545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mdp4fjGfZFcARkxFmyK%2Fuploads%2FFOobgIZ8ahDG6GC1so7w%2FScreen%20Shot%202023-01-03%20at%2016.33.03.png?alt=media&#x26;token=0b73184a-e05f-4973-bec7-3633d312c5b9" alt=""><figcaption></figcaption></figure>

* If this pop-up interrupts your flow, please click “**Don't show this popup again**” to remove it the next time.
* Your wallet will ask you to confirm the action. Please confirm the transaction.

<figure><img src="https://708384545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mdp4fjGfZFcARkxFmyK%2Fuploads%2FjOS5Uc8B0WEdjfVxf4gH%2Fimage5.png?alt=media&#x26;token=dd60f8b6-7d1d-4d42-beef-2f82abe6a089" alt=""><figcaption></figcaption></figure>

* Then, the system will work for a second.

<figure><img src="https://708384545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mdp4fjGfZFcARkxFmyK%2Fuploads%2FoLTtimr9MGXyAeR0h13P%2Fimage3.png?alt=media&#x26;token=7d4c940c-2281-4f28-b6c2-b1d32ff4caef" alt=""><figcaption></figcaption></figure>

* Now, your transaction is completed.
* After matching orders on the order book, the system will update the position and transfer margin and PnL to your wallet.
