Automated market makers versus order books: the two exchange designs
The two designs in one paragraph
An order book is a matching engine: buyers post bids, sellers post asks, and the engine matches compatible orders at agreed prices - price discovery happens because participants compete. An automated market maker is a pool: tokens sit in reserves, a formula prices trades against the reserves, and anyone can provide liquidity - price discovery happens because arbitrageurs align the pool's formula price with the outside world. The two designs answer the same question - how do strangers trade at fair prices - with opposite assumptions: order books assume participants who want to choose prices, AMMs assume participants willing to accept formula prices. The competition between them shaped every exchange design that followed.
How order books work - and what they require
- The matching and the spread: bids and asks form a book, the best bid and best ask define the spread, and the spread's width measures the asset's liquidity - tight spreads mean deep books, wide spreads mean thin ones. Price discovery is continuous: every posted order is a statement about value, and the book is the aggregate statement.
- The market maker requirement: books need participants willing to quote both sides continuously - market makers earn the spread but bear inventory risk, and without them the book is empty. The requirement is the design's dependency: order book exchanges are only as good as their maker ecosystem.
- Precision and control: limit orders let traders choose exact prices, stop orders let them exit at triggers, and the granularity is why professional traders prefer books - control over execution price is the product, and the book delivers it.
- The infrastructure cost: books need low latency, matching engines, and capital-hungry makers - the infrastructure is expensive, which is why book-based venues concentrate on assets deep enough to justify it.
How AMMs work - and what they require
- The formula and the reserve: AMM prices come from reserve ratios under an invariant - the constant product or its variants - and every trade executes against the pool at the formula's price, with slippage rising as trades consume reserves. The formula replaces the book, and the reserves replace the makers.
- The liquidity provider requirement: AMMs need depositors, not makers - anyone can contribute tokens, earn fees, and bear divergence risk. The requirement is cheaper than maker infrastructure, which is why AMMs cover assets books cannot support.
- Permissionless listing: no approval committee, no maker recruitment - any two tokens can form a pool by anyone depositing into it. The permissionlessness is the design's expansion: listing became a capital decision, not a relationship.
- The composability property: AMM pools are contracts with standard interfaces, and the standardization lets other applications - lenders, aggregators, indexers - integrate with any pool. The book is a venue; the pool is infrastructure.
Where each design wins
- AMMs win on coverage and access: long-tail assets, always-open execution, permissionless listing, and composable infrastructure are AMM territory - the design serves markets books cannot economically support. The pool is the open market.
Reading design claims correctly
The takeaway
Order books and automated market makers are the two exchange designs: books match participant-chosen prices through competitive quoting, and AMMs price trades through reserve formulas with permissionless liquidity. Books win on precision, depth, and professional execution; AMMs win on coverage, access, and composability; and the ecosystem's hybrids combine both because the strengths are complementary. Reading design claims correctly means knowing that volume figures hide different user bases, fee structures encode different payment choices, and every design allocates cost to someone - makers in books, depositors in pools. The exchange question is not which design is better; it is which design matches the market's depth, the users' precision needs, and the liquidity's willingness. The designs compete, and the competition is why both exist and why hybrids keep appearing.