Skip to content

Lesson 2 · 3 min · Beginner

CEX vs DEX, order types, liquidity and slippage

On this page

CEX vs DEX: who holds the keys?

AspectCEXDEX
CustodyExchange holds your fundsYou keep your own keys
KYCUsually requiredUsually not
Order matchingOrder book (like a stock exchange)Liquidity pools / AMMs
Fiat on/off-rampYes (cards, bank)Usually no (crypto-to-crypto)
Failure riskExchange can fail / be hackedSmart-contract bugs can be exploited
RecoveryCustomer support existsNo support — code is final

Order types: market vs. limit, in plain English

  • Market order — buy/sell immediately at the best available price. Fast, but you may pay the spread.
  • Limit order — set a price; the order fills only if the market reaches it.
  • Stop-loss — auto-sell if the price falls to a level you set (common on CEXs).

Liquidity, slippage & spread: why your price slips

Liquidity is how easily you can trade without moving the price. A liquid market has tight spreads and small slippage; a thin market can move a lot on a single trade. Slippage is the gap between the price you expect and the price you actually get — common on DEXes for large trades.

The same buy, deep and thin

Liquid marketPRICESIZE100.04 × 8100.03 × 6100.02 × 5asks · sell ordersspread 0.02100.00 × 699.99 × 7bids · buy ordersmarket buy · 3fills at 100.02slippage 0.00Thin marketPRICESIZE101.50 × 2100.60 × 1100.10 × 1asks · sell ordersspread 0.3099.80 × 199.20 × 2bids · buy ordersmarket buy · 3fills at 100.10, 100.60, 101.50average 100.73slippage +0.63
A market buy takes the cheapest asks first. In a deep book it fills near the best price; in a thin one it walks up the book, and the gap between the price you expected and the average you paid is slippage. Prices are illustrative.
Educational only, not financial or legal advice.