Skip to content

What is a crypto exchange? CEX vs DEX explained

A crypto exchange is a marketplace that matches buyers and sellers of digital assets. Here is how centralized and decentralized exchanges work, what they charge, and where the counterparty risk hides.

Published: Updated: Reading time: 7 min
On this page

A crypto exchange is a marketplace that matches buyers and sellers of digital assets. Most crypto trading happens on one, and it's usually where people swap ordinary money for their first coins. The exchange quotes prices, takes your order, pairs it with someone on the other side, and settles the trade. That happens either through a company that runs the books or through code on a blockchain that no one runs at all.

How a crypto exchange works

Every exchange has to match a buyer with a seller at an agreed price. The two dominant designs do it in opposite ways.

A centralized exchange keeps a central limit order book, a live ledger of every outstanding buy and sell order for a trading pair such as BTC/USD. Its matching engine uses price-time priority: the best price fills first, and among equal prices the earlier order wins. Stock exchanges have run on the same mechanism for decades.

A decentralized exchange drops the order book. Most DEXs use an automated market maker (AMM) that prices trades against a shared pool of tokens using a formula. You aren't trading with a person. You're trading with a pool, and the math sets the price.

CEX vs DEX: centralized vs decentralized exchanges

The CEX vs DEX choice mostly comes down to who holds the keys.

  • Centralized exchanges (CEX) like Coinbase or Binance run the order book, custody user funds in wallets they control, and move fiat in and out. Liquidity is deep and the experience is familiar. You're also trusting a company to hold your money and stay solvent.
  • Decentralized exchanges (DEX) like Uniswap settle swaps through DeFi smart contracts. You keep custody the whole time, with no signup and no gatekeeper. In exchange you usually get no fiat gateway, you pay network gas on every swap, and a shallow pool means worse pricing.
CEXDEX
CustodyThe exchange holds your keysYou keep your keys
Fiat on-rampBank card and bank transferUsually none
KYCRequired at signupUsually none
FeesMaker-taker trading fees plus withdrawalsPool swap fee plus gas
Liquidity and speedDeep books, instant off-chain matchingDepends on pool depth and block times

Which one fits depends on the job. A CEX like our Planetcoin crypto exchange platform is the practical route for buying your first coins with a bank card. A DEX makes more sense when you want self-custody, a token no CEX has listed, or a trade that never touches a company's balance sheet. If you're building one rather than using one, see the guides on crypto exchange development cost, decentralized exchange development, and our blockchain development work.

How an AMM prices a swap

Without an order book, a DEX needs another way to decide what a token is worth. The classic answer, popularized by Uniswap, is the constant-product formula, written as x times y equals k.

Picture a pool holding two tokens. Multiply the two reserves and you get a constant, k, that the contract must preserve. Say the pool holds 100 ETH and 200,000 USDC, so k is 20,000,000 and the spot price is 2,000 USDC per ETH. To take out 1 ETH, the USDC side has to grow until 99 times the new reserve still equals k. That's about 202,020 USDC, so you pay roughly 2,020 for the coin before fees, about 1% above spot. The gap between the quoted price and the price you actually get is called slippage, and it widens fast when a pool is thin or your order is large.

Liquidity providers who fund the pool earn a cut of every swap: a flat 0.30% per trade on Uniswap v2. Uniswap v3 launched with fee tiers of 0.05%, 0.30%, and 1.00%, and governance later added 0.01%, so pools can price risk differently.

Custody and counterparty risk

When you hold funds on a centralized exchange, the exchange holds the keys, not you. That's what "not your keys, not your coins" means: on paper you own a balance, but the exchange decides whether and when you can withdraw it.

That control is counterparty risk. If the exchange gets hacked or fails, you stop being an owner and become an unsecured creditor in a bankruptcy case. Mt. Gox collapsed in 2014 after losing roughly 850,000 bitcoin, of which only about 200,000 were ever recovered, and the trustee's repayment deadline has been pushed back several times since. FTX failed in November 2022 with an estimated shortfall of about 8 billion dollars in customer funds, as reported at the time. Its estate began repaying creditors in 2025, at dollar values fixed on the bankruptcy petition date rather than at later crypto prices.

A DEX avoids this particular risk, since you never hand over custody. It has its own: a bug in the underlying smart contract can drain a pool just as fast, and there's no support desk to call. In practice, keep on an exchange only what you're actively trading and move the rest to a wallet you control.

Fees and liquidity

Exchange fees come in layers, so the advertised trading fee usually isn't the whole cost.

Centralized venues use a maker-taker model. A maker posts a limit order that adds liquidity to the book. A taker crosses the spread and removes it. Takers usually pay more, while makers often get a discount or a rebate. Rates vary a lot by venue: Binance's standard spot fee is around 0.10%, while Coinbase Advanced starts near 0.40% maker and 0.60% taker. Both drop as your monthly volume climbs. CEXs also earn from listing fees, withdrawal fees, and products like staking, lending, and margin.

On a DEX you pay a swap fee to the pool, network gas to the blockchain, and slippage from price impact. A 0.30% swap fee means 0.3% of your input stays with the liquidity providers and the other 99.7% goes into the trade.

Liquidity matters for both. Deep liquidity means large orders fill near the quoted price. With thin liquidity, every trade pushes the price against you. It feeds itself, too.

Regulation and choosing an exchange

In the EU, the Markets in Crypto-Assets (MiCA) Regulation (EU) 2023/1114 created a single authorization for crypto-asset service providers that can be passported across member states. Its stablecoin rules applied from 30 June 2024 and its exchange provisions from 30 December 2024. National transitional periods ended by 1 July 2026 at the latest. In the US, a centralized exchange typically registers with FinCEN as a money services business and usually needs state money-transmitter licenses too. The Bank Secrecy Act requires identity verification and suspicious-activity reporting, and OFAC rules add sanctions screening. Both follow the international FATF guidance for virtual assets. Together these are the KYC and AML checks you meet at signup.

When you pick an exchange, check security and proof of reserves first, then regulatory standing where you live. After that come the coins and pairs you want, the full fee schedule including withdrawals, and liquidity deep enough that your order doesn't move the market. For most beginners buying with a card, a regulated centralized exchange is the easy place to start.

Frequently asked questions

  • A centralized exchange (CEX) runs an order book, holds your funds, and handles fiat deposits, so you trade through a company you have to trust. A decentralized exchange (DEX) swaps tokens through smart contracts while you keep custody in your own wallet. A CEX is easier for beginners and fiat on-ramps. A DEX removes the middleman but leaves you fully responsible for keys and gas.

  • No. An exchange is a marketplace for trading assets, and a custodial one holds your coins for you. A wallet stores the private keys that prove ownership on-chain. Coins left on a centralized exchange sit in its custody, not yours.

  • A reputable, regulated exchange is fine for active trading, but it carries counterparty risk that a self-custody wallet doesn't. If the exchange fails, you're a creditor, not an owner, and Mt. Gox and FTX customers learned that the slow way. Keep on an exchange only what you're actively trading.

  • Mostly trading fees, a small percentage taken on each buy and sell. Centralized venues also earn from listing fees, withdrawal fees, and add-on products like staking, lending, and margin. Decentralized exchanges send a swap fee to the people who supply liquidity to the pool rather than to a company, so no single operator captures the spread.

  • Start with security track record and proof of reserves, then check regulatory standing in your country. After that it's practical detail. Does it list the coins and pairs you need? What does the full fee schedule look like once withdrawals are included? Is liquidity deep enough that a large order won't move the price? For a beginner buying with a bank card, a regulated centralized exchange is usually where you start, and long-term holdings can move to your own wallet later.

Still unanswered
Ask us directly

A senior engineer replies under 4 hours.

Related expertise