# Close Position - Market Order

Click on the "Close" button in your Positions tab below the trading charts

<img src="https://2320169509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83Ldk66eIH4eYWRpmdK4%2Fuploads%2FORZXIVhl0gcJnGsudKgk%2Fimage.png?alt=media&#x26;token=953f5afb-8668-4245-8125-d2e1eeb4fad4" alt="Press the close button in Positions" width="100%">

In the Pop-Up that appears, choose the size of the position which you want to close and click "Confirm". \
In the below example, we are closing 100% of the position

<img src="https://2320169509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83Ldk66eIH4eYWRpmdK4%2Fuploads%2FtsPfKbLhflCvjRZHeZ8F%2Fimage.png?alt=media&#x26;token=24088b81-07ce-4ce3-84bb-945077f9bf99" alt="Confirm the transaction in your crypto wallet." width="375">

Below image shows the popup which will appear if you are using Metamask as your wallet. If you are using any other wallet, confirm the transaction accordingly.

<img src="https://2320169509-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F83Ldk66eIH4eYWRpmdK4%2Fuploads%2FkQ5rAlc9FS9Xycg5a6ba%2Fimage.png?alt=media&#x26;token=43693489-3ef5-419d-84f2-c7d1df86c2de" alt="" width="375">

Your position will be closed and the amount will be deposited into your wallet.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://logx-1.gitbook.io/logx-docs/logx-aggregator/trading-guide/close-position-market-order.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
