Foundations · Exchanges, DEX & DeFi

Centralized Exchanges (CEX)

A centralized exchange is a company that runs a crypto market: it holds customers' funds, records their balances in its own ledger and matches their buy and sell orders.

  • Beginner
  • 5 min read
  • Updated
Watch in 60 seconds

Centralized exchanges

0:54 · captioned

1/4A company doing three jobs

CustodyHolds customers' coins and cash
Record keepingA private ledger of balances
MatchingPairs buyers with sellers
  • Custody · record keeping · matching

What a centralized exchange does, what happens between deposit and withdrawal, and why an exchange balance is a claim, not coins.

0:00 / 0:54

Transcript
  1. A company doing three jobs
  2. A centralized exchange is a company that runs a crypto market.
  3. It does three jobs at once: it holds customers' funds, records their balances, and matches their orders.
  4. From deposit to withdrawal
  5. A crypto deposit is a normal blockchain transfer to an address the exchange controls.
  6. After that, trading does not touch the blockchain. The exchange lowers one balance and raises another.
  7. That is why trades are fast and carry no network fee.
  8. How orders are matched
  9. Most exchanges use an order book: a real-time list of prices at which people are willing to buy and sell.
  10. A balance is a claim
  11. Here is what beginners get wrong: an exchange balance is not coins in your own wallet.
  12. The exchange holds the keys. The balance is its record of what it owes you.
  13. So if the exchange fails, is hacked, or pauses withdrawals, customers may be unable to get their funds out.

Educational explainer with hypothetical data. Not financial advice.

Why it matters

For most people, a centralized exchange is the first place they meet crypto: an app or website where money goes in, a price is shown and a balance appears. A large share of all crypto trading takes place on venues of this kind.

It is the starting page of this shelf because everything else is easier to understand by comparison. A decentralized exchange, a lending protocol and a liquidity pool each replace one of the jobs that a centralized exchange does as a company.

How it works

CEX vs DEX

CENTRALISED EXCHANGE

A company runs the market and holds customer funds.

  • Account, usually with identity checks
  • Order book matching
  • Custodial: the exchange holds the keys
  • Risk: the company itself

DECENTRALISED EXCHANGE

Smart contracts run the market. Users keep their keys.

  • Wallet connection, no account
  • Often liquidity pools instead of an order book
  • Non-custodial
  • Risk: contract bugs, bad approvals, fake tokens

A centralized exchange, often shortened to CEX, is a business that does three jobs at once:

  • Custody. It holds customers’ coins and cash. The exchange controls the private keys, which makes it a custodial service.
  • Record keeping. It keeps a private ledger of who is owed what. A customer’s balance is a line in that ledger.
  • Matching. It runs the market, pairing buyers with sellers and charging a fee on each trade.

In plain words

Think of a cloakroom. You hand over a coat and receive a ticket. The ticket is not the coat: it is a promise that the coat will be returned when you ask. An exchange balance works the same way, and it is only as good as the cloakroom that issued it.

From deposit to withdrawal

Where the blockchain is involved, and where it is not
  1. DepositAn on-chain transfer to an address the exchange controls.
  2. Balance creditedA number in the exchange's own database.
  3. TradeOrders are matched internally. Nothing moves on-chain.
  4. WithdrawThe exchange sends coins on-chain, if it approves the request.
Between deposit and withdrawal, a customer holds a claim on the exchange, not coins in a wallet of their own.

A deposit is a normal blockchain transfer to an address the exchange controls, or a bank transfer in the case of ordinary money. Once it arrives, the exchange credits the account in its own database.

From then on, trading does not touch the blockchain. When one customer buys from another, the exchange lowers one balance and raises the other. That is why trades on a CEX are fast and carry no network fee. Coins move on-chain again only when someone withdraws, and a withdrawal is a request that the exchange approves and sends.

Exchanges commonly pool customer coins in wallets they manage, keeping a small part online to serve withdrawals and the rest offline, but practices differ and customers usually cannot verify them.

How orders are matched

A simple order book
Hypothetical order book: asks above the spread, bids below it.
PriceSizeDepth
Asks: sellers waiting (lowest ask at the bottom)
100.30420
100.20260
100.10180
Spread: 0.10 between best bid (100.00) and best ask (100.10)
100.00210
99.90340
99.80510
Bids: buyers waiting (highest bid at the top)
Limit orders wait in the book. A market order trades immediately against the best waiting price on the other side. Hypothetical numbers.

Most centralized exchanges use an order book: a live list of the prices at which people are willing to buy and sell. A limit order waits in the book. A market order trades at once against the best waiting price. The exchange’s matching engine pairs orders by price, then by time of arrival.

Stock exchanges use the same model, described in exchanges and brokers. One difference is that a crypto exchange usually acts as exchange, broker and custodian together. In traditional markets those roles are commonly held by separate firms.

Going deeper

What it charges

Cost When it applies
Trading fee On every fill, usually as a percentage. See maker and taker fees
Spread The gap between the best buy and sell prices, paid by anyone who trades at once
Withdrawal fee When coins leave the exchange, often a fixed amount per asset
Deposit or conversion fee On some payment methods and currency conversions

Fee schedules differ between exchanges and change over time.

What else it does

Many exchanges also connect to banks so that ordinary money can be exchanged for crypto, check customers’ identity where the law requires it, decide which assets are listed, and offer margin trading and derivatives.

Some offer products that pay a rate on deposited assets. These involve the exchange lending or otherwise using customer assets, which adds counterparty risk. Quoted rates are variable, are not guaranteed, are often paid in a token whose price can fall, and carry the risks of whatever activity produces them.

Rules and protections vary

Licensing, the separation of customer assets from company assets, and what happens in an insolvency all depend on the jurisdiction and on the company. Protection schemes that cover bank deposits in some countries often do not extend to crypto held on an exchange.

A hypothetical deposit, trade and withdrawalHypothetical illustration

Made-up numbers. A customer deposits 1,000 units of a stablecoin. The exchange’s ledger now shows a balance of 1,000.

  • The customer buys 5 coins at a price of 100. Cost: 5 x 100 = 500.
  • The trading fee is 0.1% of 500 = 0.50.
  • New balances: 5 coins, and 1,000 - 500 - 0.50 = 499.50 of the stablecoin.

Nothing has happened on a blockchain so far. The customer then withdraws the 5 coins, and the exchange charges a fixed withdrawal fee of 0.01 coin. The amount that arrives in the customer’s own wallet is 5 - 0.01 = 4.99 coins.

Only at that last step does the customer hold coins directly. Before it, the customer held a claim on the exchange for 5 coins.

What it does NOT mean

  • A balance on an exchange is not coins in your own wallet. It is the exchange’s record of what it owes you.
  • Large and well known does not mean safe. Size says nothing certain about solvency, security or how customer assets are handled.
  • A trade on a CEX is not a blockchain transaction. It is an entry in a company database, and it cannot be checked on-chain.
  • A license in one country is not protection in every country. Rules and remedies depend on the jurisdiction and on the legal entity a customer actually deals with.
  • This page does not rank exchanges. It describes how the model works, not which company to use.

Common misunderstandings

  1. Treating the exchange as a wallet. A wallet holds keys. An exchange account holds a login and a promise.
  2. Assuming withdrawals are always open. An exchange can pause them during maintenance, network congestion, an investigation or financial trouble.
  3. Looking only at the trading fee. Spread, withdrawal fees and conversion costs can add up to more than the headline rate.
  4. Thinking security is only the exchange’s job. A stolen password or a phished login can empty an account at a healthy exchange. See exchange account security.

Risks and limits

  • Insolvency. Exchange failures have left customers unable to withdraw, sometimes for years, and often with only part of their balance returned, or the value of it at the date of filing rather than the coins themselves.
  • Theft. Pooled customer funds are a large target, and exchanges have been hacked.
  • Freezes and restrictions. Accounts can be frozen or closed, and services can be withdrawn from a country.
  • Opacity. Customers usually cannot verify how their assets are held or whether they have been lent out.
  • Outages. Platforms can slow down or go offline during heavy trading, which is when access matters most.

Key takeaway

A centralized exchange is a company that holds customers’ funds, records their balances and matches their orders. It is fast and convenient because everything happens inside the company, and every risk it carries comes from that same fact.

Sources and further reading