# Automated Market Makers

**Automated Market Makers** (AMMs) are a type of [Decentralized Exchange](/glossary/definitions/decentralized-exchanges.md) (DEX) that use algorithms, typically the [Constant Product Market Making](/glossary/definitions/decentralized-exchanges/cpmm-formula.md) (CPMM) formula, to determine the prices of assets being traded on the platform. These algorithms take into account the supply and demand of the assets being traded, as well as other factors, to set prices and facilitate orders.\
\
One of the key features of AMMs is their use of [liquidity pools](/glossary/definitions/decentralized-exchanges/liquidity-pools.md). A liquidity pool is a pool of funds provided by users of the DEX that is used to facilitate trading. When a user wants to trade a particular asset, they can do so by providing some of their own assets to the liquidity pool. This helps to ensure that there is always sufficient liquidity on the DEX to match buy and sell orders.

Liquidity pools are a key part of AMMs because they allow the DEX to operate without the need for a central authority or traditional order book. This makes AMMs highly [decentralized](/glossary/definitions/decentralization.md), which is one of the main advantages of DEXs over centralized exchanges.

In addition to providing liquidity, users who contribute assets to a liquidity pool may also earn fees for their participation. This is because the algorithms used by AMMs to set prices and match orders often take a small fee from each trade, which is then distributed to the users who have provided liquidity to the pool.

AMMs and DEXs are an important part of the broader ecosystem of Decentralized Finance (DeFi), and their use of liquidity pools plays a crucial role in enabling trustless and efficient trading on these platforms.


---

# 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.allforone.app/glossary/definitions/decentralized-exchanges/automated-market-makers.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.
