# Order Book vs Automated Market Maker (AMM)

Here are some pros and cons of AMMs and order books:&#x20;

### AMMs:

#### Pros:&#x20;

Simplicity: AMMs are generally easier to use than order books, as they do not require users to specify a particular price at which they want to buy or sell an asset.&#x20;

Efficiency: AMMs can facilitate trades more quickly than order books, as they do not require a matching order to be found before a trade can be executed.&#x20;

Accessibility: AMMs can be used by anyone, regardless of their trading experience or knowledge.&#x20;

#### Cons:&#x20;

Lack of control: Users have less control over the price at which a trade is executed with an AMM, as the price is determined by a mathematical formula based on supply and demand.&#x20;

Lack of liquidity: AMMs may not always have sufficient liquidity to facilitate trades, especially for smaller or less popular assets.&#x20;

Price slippage: The price of an asset may fluctuate significantly between the time a trade is initiated and the time it is completed, resulting in price slippage.&#x20;

### Order books:&#x20;

#### Pros:&#x20;

Customisation: Users have more control over the price at which a trade is executed with an order book, as they can specify a particular price at which they want to buy or sell an asset.&#x20;

Liquidity: Order books typically have greater liquidity than AMMs, as they match buyers and sellers who are willing to trade at a specific price.&#x20;

Price stability: Order books tend to have more stable prices than AMMs, as trades are only executed when there is a matching order at the same price.

#### Cons:&#x20;

Complexity: Order books may be more difficult to use than AMMs, as users need to understand how to place and cancel orders at specific prices.&#x20;

Slower trades: Order books may take longer to complete trades, as they require a matching order to be found before a trade can be executed.&#x20;


---

# 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.candyswap.gg/learning/order-book-vs-automated-market-maker-amm.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.
