# Swap

<div data-full-width="true"><figure><img src="/files/xZyJeA84IGFNkpKe0bVg" alt=""><figcaption></figcaption></figure></div>

In a concentrated liquidity decentralized exchange (DEX) like HorizonDEX, a swap refers to the process of exchanging one token for another within a custom price range. For traders who would like to swap, there is no need to dive deep into the mechanics of custom price ranges and concentrated liquidity. It's suffice to say that traders will experience less slippage and have a better trading experience overall.&#x20;

Let's walk through how a swap works in HorizonDEX:

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

1. **Select Tokens**: To initiate a swap, you first need to choose the tokens you want to trade. BeatX supports a wide range of tokens, allowing you to access various trading pairs.
2. **Enter Swap Details**: After confirming the available liquidity, you can enter the swap details, including the amount of the token you want to trade and the desired token you want to receive in return. BeatX calculates and displays the estimated amount you'll receive based on the current liquidity.
3. **Review and Confirm**: Take a moment to review the details of your swap, including the estimated slippage and transaction fees. BeatX provides a clear breakdown of all relevant information, allowing you to make an informed decision. If you're satisfied with the details, you can proceed to confirm the swap.
4. **Execute the Swap**: Once you confirm the swap, HorizonDEX dApp initiates the transaction on the blockchain. The decentralized nature of HorizonDEX ensures that your swap is executed securely and transparently, without the need for intermediaries.
5. **Transaction Completion**: After the swap is executed, you'll receive the tokens you requested in your wallet. The transaction details, including the swap price and fees, will be recorded on the blockchain in a transparent manner.

By implementing concentrated liquidity, HorizonDEX revolutionizes the trading experience by providing traders with more control, reduced slippage, and improved efficiency. Whether you're a liquidity provider or a trader, the unique features of HorizonDEX's concentrated liquidity DEX offer a new level of flexibility and optimization for your trades.


---

# 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.horizondex.io/dex/swap.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.
