# How to close a leverage position (xPOSITION)

{% embed url="<https://youtu.be/e9ULbqguxtA>" %}

To close an xPOSITION:

* Head over to the [Trade](https://fx.aladdin.club/v2/trade) page.
* Connect your wallet using the upper right “Connect Wallet” button.
* Click on the “Sell / Close” tab of the order box.
* Hit the “MAX” link / Slide the bar to 100% / Type “100%” in the text box to close your entire position.
* Hit the Preview button to review your trade.
* Review your trade and the evolution of your xPOSITION, and once ready, hit the “Submit Transaction” button.
* Confirm the transaction using 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://fxprotocol.gitbook.io/fx-docs/guides/how-to-close-a-leverage-position-xposition.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.
