> For the complete documentation index, see [llms.txt](https://docs.agdex.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.agdex.io/for-traders/start-trading/swap.md).

# Swap

<figure><img src="https://1285494365-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FzkGWku4zchfQm5OiQh5Q%2Fuploads%2FRIcGmO3FgfVRmTRmrurE%2FScreenshot%202025-04-28%20at%2013.59.36.png?alt=media&amp;token=f3c8b492-0326-4e2e-9a43-e8e39c050af8" 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.
