# Swap Exchange

**It is generally based on a series of mathematical and economic formulations that seek to create a balanced medium that allows users to exchange cryptocurrencies safely.**, and thus avoid risky or counterproductive situations for transactions.

Unlike traditional exchanges, AMM-type DEXs are completely autonomous and their entire operation is algorithmic, as indicated in the [**smart contracts**](https://academy.bit2me.com/en/what-are-smart-contracts/) that make its operation possible. A good example of this type of DEX is [**uniswap**](https://academy.bit2me.com/en/what-is-uniswap/), which was one of the first to use the AMM model for trading on its platform.


---

# 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://idsdefi.gitbook.io/in-dex-sale/in-dex-defi-ecossystem/swap-exchange.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.
