# Swap

Market order trading is a common way of trading in decentralized exchanges, allowing users to buy or sell cryptocurrencies quickly at the best available price on the current market. This method is particularly suitable for users who wish to execute transactions immediately, especially when market conditions are rapidly changing.

Our market order trading mechanism directly references the latest exchange rates of trading pairs from the exchange, ensuring the accuracy and timeliness of transaction execution. Moreover, our system design aims to eliminate trade slippage, the difference between the transaction execution price and the expected price, providing users with a more transparent and reliable trading experience.

**1)Access the Rille Swap Application Homepage**

Link your wallet application.

{% content-ref url="/pages/atf9MZVLgrtIPg4rcucv" %}
[Connecting Your Wallet](/rille-swap-document-v1/tutorial/connecting-your-wallet.md)
{% endcontent-ref %}

**2)Select the Tokens and Quantity for Trading**

On our trading platform, you can easily select and exchange various tokens. In the "Market Order" tab, you will first see a token selection box for choosing the type of token you currently hold and wish to exchange. Then, in the selection box below, you can choose the type of token you wish to receive after the exchange.

Additionally, you have the freedom to set the quantity of the exchange. You can enter specific amounts for either the tokens you wish to exchange or the tokens you wish to receive, to better meet your trading needs. Our platform design focuses on flexibility and control, enabling you to execute transactions precisely, according to your personal strategy and market dynamics.

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

**3)Confirm the Number of Output Tokens and Transaction Fees**

After selecting the tokens and entering the transaction quantity, you can see the expected output of the transaction, the required transaction fees, and the routing information of the transaction under the “Swap” button. This step allows you to clearly understand all related transaction details and costs before finally confirming the transaction. Our system automatically calculates and displays this information, ensuring you have full transparency and information when making transaction decisions.

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

**4)Confirm the Transaction**

After reviewing and being satisfied with the expected output, transaction fees, and routing information of the transaction, the next step is to confirm the transaction. Click the “Swap” button, and the system will prompt you to confirm the transaction in your Web3 wallet. This step is crucial in the transaction process as it ultimately determines the execution of the transaction. In your wallet, you will be able to see all the details of the transaction, including the transaction amount, estimated fees, and the receiving address. Please carefully check these details to ensure everything meets your expectations. Once you confirm in your wallet, the transaction will be sent to the blockchain, awaiting network confirmation. Our platform will update the transaction status in real-time, allowing you to track the progress of your transaction at any moment.

<figure><img src="/files/MqdskbEYu9N5jVwEerHq" 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://rille-protocol.gitbook.io/rille-swap-document-v1/tutorial/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.
