Module 3 · Lesson 17 of 45

AMM vs. order book

⏱ 6 min read ● Intermediate Module 3 · Fees & mechanics

Every exchange has to answer one question: what's the price right now? There are two fundamentally different ways to answer it, and knowing which a venue uses explains a lot about how it behaves.

The order book

An order book is a live list of buy orders (bids) and sell orders (asks); a trade happens when a buyer and seller meet at a price. This is how every traditional stock exchange and CEX works — and how some DEXes, especially perp venues like Hyperliquid and dYdX, operate too.

  • Strengths: precise pricing, native limit orders, tight spreads in liquid markets.
  • Trade-off: it needs active market makers and constant order updates, which is demanding to run fully on-chain.

The automated market maker (AMM)

Most spot DEXes — Uniswap, PancakeSwap, and the pools Jupiter routes through — skip matching entirely. You trade against a liquidity pool, and a formula sets the price from the ratio of tokens inside it. There's no counterparty to find; the pool is always ready.

  • Strengths: always-on liquidity, anyone can become a market maker by adding to a pool, and it runs cleanly on-chain.
  • Trade-off: large trades move the price (price impact), and providers face impermanent loss.

Side by side

Order bookAMM
Price set byMatching bids & asksA formula on pooled reserves
Liquidity fromMarket makersAnyone, via a pool
Best forPerps, pro tradingSpot swaps, long-tail tokens
Example venuesHyperliquid, dYdXUniswap, Jupiter, PancakeSwap

Why AMMs won spot

The AMM's superpower is permissionless liquidity: a brand-new token can have a market the moment someone seeds a pool, with no market maker required. That's why almost every new token lists on an AMM first. The next lesson opens the AMM's hood to see exactly how that formula prices a trade.

Key terms
Order bookA live list of bids and asks matched to make a trade.
Bid / askThe best buy and sell prices currently posted.
Market makerA participant who posts orders to provide liquidity on a book.
AMMAn automated market maker that prices trades against a pool via a formula.
!Common mistakes
  • Expecting AMM pricing to behave like a CEX order book — large orders move an AMM more.
  • Assuming all DEXes are AMMs; several leading perp venues are on-chain order books.
  • Judging a venue only by type instead of by its actual liquidity in your pair.
Finished reading? Track your progress through the journey.