Academy · Beginner · 8 min
CEX and DEX
Order books versus automated market makers, and where each one hurts you.
A centralised exchange runs an order book: buyers and sellers post limit orders, and a matching engine pairs them. Price is discovered by the interaction of those orders, and depth is visible.
A decentralised exchange usually runs an automated market maker instead. There is no order book; a formula prices the trade against a pool of two assets. You always get a fill, but the price you get degrades with size — that degradation is slippage, and on a thin pool it is brutal.
The practical difference: on a CEX you compete with other traders for liquidity, on a DEX you consume it mathematically. A $50,000 order that barely moves a CEX book can move a small AMM pool by double digits.
Key points
- AMMs guarantee a fill but not a price
- Pool depth, not market cap, determines your real execution cost
- DEX trades are public before they settle, which enables front-running
The mistake this produces
Sizing a DEX trade off market cap. What matters is the depth of the specific pool you are routing through.