# Leverage Trading

Leverage trading on XEI allows traders to borrow assets for immediate trading, utilizing strategies like short selling and leverage long positions. In short selling, investors profit from declining asset prices by repaying the lender at a lower cost. Leveraged long positions involve borrowing to purchase assets, profiting from price increases. These strategies depend on price changes and leverage ratios, offering a balanced mix of risk and reward.

What sets our perpetual swap design apart is its full on-chain functionality, based on margined loans provided to traders. This unique approach enables traders to engage in perpetual swaps using leverage funds sourced directly from the on-chain loan platform YEI.

In practical terms, XEI allows anyone to create lending pools for specific trading pairs, such as SEI/USDC, facilitating a wide range of leveraged trading activities. Users contribute to these pools, providing liquidity and earning interest based on utilization rates. Traders can then borrow from these pools for leveraged trades, with XEI ensuring efficient execution and loan management.&#x20;

This system simplifies the trading process and enhances liquidity on the decentralized exchange, obviating the need for separate order books. When traders close their positions, XEI handles the conversion and repayment processes, ensuring that lenders receive their due while traders settle their debts, reaping profits or bearing losses as per their trade outcomes.

<figure><img src="/files/DN9HAmoAIS4HoI2w4Dbc" alt=""><figcaption></figcaption></figure>


---

# 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://docs.xei.finance/feature-description/leverage-trading.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.
