# Market Sell

### **Market Sell - Action Overview**

The **Market Sell** action allows users to instantly sell their collateral on a decentralized exchange (DEX), such as **Jupiter**, to pay off an active debt. This is especially useful for users engaged in **Margin Swap** (leveraged trading) who wish to exit their position before the loan term ends, either due to a profitable position or a desire to close the loan early.

**Main Use Case**

The **Market Sell** action is mainly used in [**Margin Swap**](https://docs.rain.fi/trade/margin-swap) (leverage trading) scenarios. It is ideal when:

* The user has made a profit and wishes to close their position early.
* The user wants to minimize risk and pay off their loan as soon as possible, regardless of the loan term.
* 1% of fees on the swapped amount

This action provides flexibility for users to manage their leveraged positions, avoid potential losses, and maintain better control over their collateralized assets.

<div align="left"><figure><img src="https://2770293654-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FP0GgzuaAMRXFbXDPKHfP%2Fuploads%2FvpgFdUDssj4tV1y4GvdI%2FScreenshot%202024-11-28%20at%2014.34.02.png?alt=media&#x26;token=64e10fc6-e081-441b-9cca-afe70d37cf50" alt=""><figcaption></figcaption></figure></div>
