Exchanges

How crypto exchanges work: order books, custody and matching engines

A centralized crypto exchange is part marketplace, part bank and part custodian. Learn how order books, matching engines, hot and cold wallets, deposits and withdrawals work behind the trading screen.

Verifeer Editorial Updated 5 min read

To a user, a crypto exchange looks like a simple app: deposit money, press buy, see your balance grow or shrink. Behind that screen sit several systems that behave very differently from a blockchain. Understanding them explains why trades execute instantly while withdrawals take time, why balances are not on-chain and where the real risks of using an exchange lie.

The three roles of an exchange

A centralized exchange combines three businesses in one:

  • Marketplace: it matches buyers and sellers.
  • Custodian: it holds customers' crypto and fiat money.
  • Payment gateway: it connects to banks, card processors and blockchains for deposits and withdrawals.

Each role brings its own risks. Traditional finance usually separates these functions into different regulated companies; many crypto exchanges do all three under one roof, which is one reason regulation increasingly focuses on how exchanges safeguard customer assets.

The order book

Every trading pair, such as BTC/USDT, has an order book: a live list of all open buy orders (bids) and sell orders (asks). Bids are sorted from highest price down, asks from lowest price up. The gap between the highest bid and the lowest ask is the spread.

Bids (buy)PriceAsks (sell)
60,0200.8 BTC
60,0100.5 BTC
0.4 BTC60,000
1.2 BTC59,990

In this example, the best bid is 60,000 and the best ask is 60,010, so the spread is 10. A market buy order would fill first at 60,010.

Makers, takers and market makers

A maker places an order that does not fill immediately and rests in the order book, adding liquidity. A taker places an order that fills against existing orders, removing liquidity. Exchanges often charge takers more than makers to reward liquidity.

Professional market makers continuously place buy and sell orders close to the market price, profiting from the spread and fee rebates. They are the reason popular pairs have tight spreads and deep books. On thin pairs with few market makers, prices can jump significantly with a single large order.

The matching engine

The matching engine is the core software of an exchange. It receives orders, checks that accounts have enough balance and matches compatible orders by price and then by time: the best price wins, and among equal prices, the earliest order fills first. Large exchanges process enormous numbers of orders per second with very low latency.

Importantly, trades on a centralized exchange do not happen on a blockchain. When you buy bitcoin on an exchange, no blockchain transaction occurs. The exchange simply updates two entries in its internal ledger: your USDT balance goes down, your BTC balance goes up, and the opposite happens for the seller.

Internal ledgers and pooled custody

Your exchange balance is a number in the exchange's database. The actual coins are held in wallets the exchange controls, mostly pooled together for all customers. This is why internal transfers between users of the same exchange are instant and free, and why an exchange can show you a balance even if, in a crisis, it does not have enough coins to cover everyone.

Proof of reserves reports try to address this by showing that the exchange's on-chain holdings at least match customer balances. They are a useful signal, though not a full audit of liabilities.

Hot and cold wallets

Exchanges split their crypto between hot wallets, connected to the internet to process withdrawals automatically, and cold wallets, kept offline with strict multi-person approval procedures. Typically only a small share of funds sits in hot wallets. Many historic exchange hacks targeted hot wallets or the systems that control them, which is why the hot-to-cold ratio and the security of signing infrastructure matter.

Deposits

When you deposit crypto, the exchange gives you an address that it controls, often unique to your account. Its systems watch the blockchain and credit your balance after a set number of confirmations. Many exchanges also screen incoming funds with blockchain analytics, and deposits linked to hacks or sanctioned addresses can be frozen for review.

Fiat deposits go through banks or card processors. Card deposits are fast but costly; bank transfers are cheaper but slower and depend on banking partners, which can change by country.

Withdrawals

When you request a withdrawal, the exchange performs security checks: verifying your two-factor code, checking for recent password changes and sometimes applying risk rules for new addresses or unusual amounts. Then it signs and broadcasts a blockchain transaction from its hot wallet. Large withdrawals may require refilling the hot wallet from cold storage, which can add delay.

Withdrawals are the real testAny platform can show balances. The proof that an exchange holds your funds is that it processes withdrawals promptly and consistently. That is why user reviews about withdrawals are the most valuable reviews you can read.

Where the risks are

  • Insolvency: if an exchange lends out or loses customer funds, balances may not be backed.
  • Hacks: attacks on hot wallets or signing systems.
  • Account freezes: compliance reviews can lock withdrawals for days or weeks.
  • Regulatory changes: exchanges may exit countries or restrict products with short notice.
  • Outages: during extreme volatility, platforms can slow down or pause trading.

How to use an exchange wisely

  1. Choose a platform that is licensed where you live and publishes proof of reserves.
  2. Enable app-based 2FA, withdrawal whitelists and anti-phishing codes.
  3. Keep only trading balances on the exchange and move savings to self-custody.
  4. Test withdrawals periodically, even when you do not need the money.
  5. Read recent user reviews, focusing on withdrawals and support.

Key takeaways

  • Exchanges are marketplaces, custodians and payment gateways at once.
  • Trades happen in an internal ledger, not on the blockchain.
  • Order books, makers, takers and market makers determine prices and spreads.
  • Deposits and withdrawals are the points where blockchain and exchange meet.
  • Withdrawal reliability is the best evidence that an exchange really holds your funds.

Frequently asked questions

Does the exchange trade against me?
On a standard order book your orders match other users' orders. Some platforms also run market-making or brokerage desks, and instant-buy features may be priced by the exchange itself, which is why spreads matter.
Why does my deposit take longer than the blockchain transfer?
Exchanges wait for a set number of confirmations and may run compliance checks before crediting deposits.
Is my crypto on the blockchain while it sits on an exchange?
Your balance is an entry in the exchange's internal database. The underlying coins sit in wallets controlled by the exchange, usually pooled with other customers' funds.
What is a matching engine?
It is the system that pairs buy and sell orders according to price and time priority, executing trades in milliseconds.
Share this guide

Keep reading