Chapter 3

How Centralized Exchanges Work

When you buy Bitcoin on a centralized exchange, the transaction you see in the app is not an on-chain transfer between two wallets. It is an update to the exchange's internal database — a credit to your account and a debit from a counterparty or the exchange's inventory. The blockchain only gets involved when assets move in or out of the platform.

The matching engine is the performance core. It maintains order books per trading pair, applies price-time priority, and executes trades in microseconds. Market makers and the exchange itself often provide liquidity by quoting both sides of the book. Fees — maker/taker schedules, spread capture, and listing charges — fund operations and profit.

Reconciliation between the internal ledger and on-chain wallets is a continuous operational burden. Deposits must be credited after enough confirmations; withdrawals must queue when hot wallet balances run low and cold storage must be accessed. When these systems drift out of sync, users see delayed credits, stuck withdrawals, or worse — evidence that liabilities exceeded assets.