Transparent, non-custodial, yours

AMMs and order books price your trade differently

An order book matches buyers to sellers. An AMM prices from a reserve formula. The difference explains slippage, liquidity depth and why DEX prices drift.

Order book Prices come from posted bids and asks; depth is a list
AMM Prices come from a reserve formula; depth is a curve
Always-on quote AMM yes, order book only while makers are present

FBT Swap

What you should know

Both give you a price for a pair, and that is where the similarity ends. One is a queue of human intentions; the other is a formula applied to a pile of tokens.

Almost every confusing thing about decentralised trading — why price impact exists, why liquidity providers lose money on volatility, why a quote has no size tiers — follows from which of the two you are using.

How an order book sets the price

Participants post bids and asks at chosen prices and sizes. The best bid and best ask define the spread, and your market order eats through the book from the best price outward. Depth is literally the list of orders waiting.

Prices come from people deciding what they will accept. Nobody is obliged to quote, so a quiet market can have a wide spread or no quote at all.

How an AMM sets the price

A constant-product pool holds reserves of two tokens and prices every trade so the product of the reserves stays constant after the fee. There are no orders and no counterparty with an opinion — just a curve and whatever is in the pool.

This guarantees a quote at any size, which is the great advantage, and guarantees that large trades get progressively worse prices, which is price impact.

What each one costs you

On an order book you pay the spread and any taker fee, and you can be filled at several prices as you consume depth. On an AMM you pay the pool fee plus price impact determined by your size against the reserves.

For small trades on a deep pool the AMM is usually cheaper and always available. For very large trades a deep order book can be far better, which is why size matters more than venue branding.

Why liquidity providers behave differently

An order-book maker chooses prices and can cancel. An AMM liquidity provider cannot — the curve keeps quoting as the market moves, so the pool systematically sells the asset that is rising and buys the one that is falling. That is the mechanism behind impermanent loss.

FBT Swap routes across AMM pools on each supported network and across Solana aggregators. The quote you see already includes the pool fee and the measured price impact for your size.

At a glance

At a glance

Order book

Prices come from posted bids and asks; depth is a list

AMM

Prices come from a reserve formula; depth is a curve

Always-on quote

AMM yes, order book only while makers are present

Large trades

Favour deep order books; AMMs charge rising price impact

FAQ

Frequently asked questions

Clear answers before you decide.

Which gives a better price?

It depends on size against depth. Small and medium trades on a well-funded pool usually clear cheaper on an AMM; very large orders can be far cheaper on a deep order book because they do not walk a curve.

Why does an AMM quote me at all when nobody wants to trade?

Because the pool is not a person. The formula produces a price from the reserves regardless of sentiment, which is why there is always a quote and why it can be a bad one.

Do decentralised order books exist?

Yes, including on-chain and hybrid designs, and some perpetual venues use them. They solve the price-impact problem and introduce different ones — matching latency, maker incentives and sequencer trust among them.

Risk notice

Crypto assets are volatile and on-chain transactions cannot be reversed. You can lose money, including all of it. Nothing here is financial advice.