# Swap

<figure><img src="/files/pZ7gVpeNFptV8HgEKgHj" alt="" width="375"><figcaption></figcaption></figure>

The swap function is as easy to use as any other defi protocol swap and users can choose any two index assets to swap.

**Swap fee**

The swap fee is a range of rates depending on whether the asset you are swapping is overweight or underweight in the AGLP pool relative to a pre-determined percentage.

The range of fee rates varies from \[0.01%, 0.1%].

For example, suppose the pre-set percentage of ETH is 35% and the current total ETH position is approximately 37%. On the other hand, the pre-determined proportion of USDT is 25%, but the current USDT has a proportion of only 20%. If you use USDT to exchange ETH, this means that you are helping to rebalance the AGLP pool, so it will only charge a very small fee in such circumstances.


---

# 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.agdex.io/for-traders/start-trading/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.
