> For the complete documentation index, see [llms.txt](https://jexchange.gitbook.io/english/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jexchange.gitbook.io/english/swap.md).

# Swap

The **SWAP** functionality of a decentralized exchange such as JEX allows users to exchange tokens (ESDT) directly, securely and without an intermediary on the MultiversX blockchain.&#x20;

Our platform provides greater autonomy and security to users, as trades are executed via smart contracts on the blockchain, reducing the risk of fraud or hacking. Additionally, the swap functionality facilitates the liquidity of tokens, thereby providing greater efficiency and a better exchange experience for users.

Our platform, which also offers the possibility of creating <mark style="color:blue;">**limit orders**</mark> allowing you to have an internal orderbook as well as to deposit <mark style="color:blue;">**liquidity**</mark>, is also connected to the different DEXs present on MultiversX, such as:&#x20;

* OneDEX
* AshSwap
* JEXchange liquidity pools
* Exrond
* VestaDEX
* xExchange

<figure><img src="/files/6XQo7cDrhHJkUy2YQYFA" alt=""><figcaption><p>Swap tool - DEX integration</p></figcaption></figure>

Our swap solution makes it possible to benefit from liquidity on a set of products present on MultiversX and thus offer the user a better exchange rate using one or more routes.&#x20;

For example, a swap of $USDC to $JEX can be done in 2 steps:&#x20;

* $USDC to $WEGLD on xExchange
* $WEGLD to $JEX on JEXchangeDefi

<figure><img src="/files/4hsjYOSkx4fALwakJax9" alt=""><figcaption><p>Swap interface</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://jexchange.gitbook.io/english/swap.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
