# How-to execute a token swap

1\) Select the topens you want to swap

![](/files/ekFwglCRirDrdNeksZAz)

Clicking on a token icon enables you to browse a token list and search for tokens by name.&#x20;

![](/files/4Z0CNv8StJdqzhYCtCs1)

2\) After the token selection, enter an amount you would like to swap. You can enter either the desired input amount or output amount.

3\) In case your wallet is swapping the selected token for the first time on the USDFI protocol, you will be asked to approve the token.&#x20;

4\) Please review your swap and click "SWAP" to confirm


---

# 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.usdfi.com/usdfi-amm/understanding-automated-market-makers/how-to-execute-a-token-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.
