Inside crypto exchanges

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.

On this page

A crypto exchange is a marketplace that matches buyers and sellers of digital assets. It's the on-ramp between ordinary money and crypto, and the venue where most trading actually happens. So what is a crypto exchange in plain terms? It quotes prices, takes your order, pairs it with someone on the other side, and settles the trade, 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 solves one problem, matching a buyer with a seller at an agreed price. The two dominant designs solve 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 pairs those orders under price-time priority, the best price gets filled first, and among equal prices the order that arrived earlier wins. An incoming market order eats through resting liquidity from the best price outward until it's filled. It's the same mechanism a stock exchange has used for decades, just pointed at digital assets.

A decentralized exchange throws the order book out. Instead of matching two people, 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 counterparty, you're trading with a pool, and the math sets the price.

Centralized vs decentralized exchanges

The CEX vs DEX split is the first fork every user hits, and it 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 bridge fiat in and out. They're fast, liquid, and familiar, but you're 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, and there's no signup or gatekeeper. The trade-offs are real, though, there's usually no fiat gateway, you pay network gas on every swap, and a shallow pool means worse pricing.

Neither wins outright. A CEX is the practical choice for buying your first coins with a bank card. A DEX shines when you want self-custody, access to a token no CEX has listed, or a trade that never touches a company's balance sheet.

How an AMM prices a swap

Because a DEX has no order book, it 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 their two reserves together and you get a constant, k, that the contract must preserve. When you buy one token, its reserve shrinks and the other grows, and to keep the product fixed the price slides along a curve. That's why a big trade moves the price more than a small one, you're walking further up the curve. The gap between the price you were quoted 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 deposit both tokens into the pool and earn a cut of every swap in return. On Uniswap v2 that cut is a flat 0.30% per trade. Uniswap v3 later added tiers of 0.01%, 0.05%, 0.30%, and 1.00% so pools can price risk differently. The fee goes to the people funding the pool, not to a company.

Custody and counterparty risk

Here is the part that costs people the most money. When you hold funds on a centralized exchange, the exchange holds the keys, not you. That is what the saying "not your keys, not your coins" means, on paper you own a balance, but the exchange controls whether and when you can withdraw it.

That control is counterparty risk. If the platform gets hacked, freezes withdrawals, or simply fails, you stop being an owner and become an unsecured creditor waiting in a bankruptcy line. This isn't a hypothetical. Mt. Gox collapsed in 2014 after losing roughly 850,000 bitcoin, of which only about 200,000 were ever recovered. FTX imploded in November 2022 with an estimated 8 billion dollars in customer funds missing, according to the exchange's own figures reported at the time.

A DEX sidesteps this specific risk, since you never hand over custody. But it swaps one danger for another, a bug in the underlying smart contract can drain a pool just as fast, and there's no support desk to call. The rule of thumb that survives every cycle, keep on an exchange only what you're actively trading, and move the rest to a wallet you control.

Fees and liquidity

Exchanges don't charge one flat price, and the headline number is rarely 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, since they consume liquidity, while makers often get a discount or a rebate. Retail fees commonly land somewhere between roughly 0.0% and 0.2% per trade, dropping as your volume climbs. On top of that, CEXs earn from listing fees, withdrawal fees, and products like staking, lending, and margin.

On a DEX the cost breaks down differently, a swap fee to the liquidity pool plus network gas to the blockchain plus slippage from price impact. A 0.30% swap fee simply means 0.3% of your input is kept for the liquidity providers and the remaining 99.7% goes into the trade.

Liquidity ties it all together. Deep liquidity means large orders fill near the quoted price, thin liquidity means every trade shoves the price against you. It also compounds, liquidity attracts traders, and traders deepen liquidity, which is why the biggest venues are so hard to unseat.

Regulation and choosing an exchange

The rules around crypto exchanges have hardened considerably. In the EU, the Markets in Crypto-Assets (MiCA) regulation set a single licensing regime for crypto-asset service providers, and its provisions for exchanges became applicable on 30 December 2024. In the US, a centralized exchange typically registers with FinCEN as a money services business and falls under the Bank Secrecy Act, which mandates identity verification, sanctions screening, and suspicious-activity reporting, the familiar KYC and AML checks you meet at signup.

When you pick one, weigh a short list. Security and proof of reserves. Regulatory standing where you live. The exact coins and pairs you want to trade. The full fee schedule, withdrawals included. 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 sensible front door, with a self-custody wallet waiting for anything you plan to hold.

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 buying, selling, and trading assets, and a custodial one holds your coins for you. A wallet stores the private keys that prove ownership on-chain. Money you leave on a centralized exchange sits in the exchange's custody, not yours, which is why many people move long-term holdings to a self-custody wallet after trading.

  • A reputable, regulated exchange is fine for active trading, but it carries counterparty risk that a wallet does not. If the platform is hacked, freezes withdrawals, or fails, you become a creditor rather than an owner. Mt. Gox lost roughly 850,000 bitcoin in 2014, and FTX collapsed in 2022 with about 8 billion dollars in customer funds missing. The lesson holds up, do not store more than you are actively trading.

  • Mostly through 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 route a swap fee to the people who supply liquidity to the pool rather than to a company, so no single operator captures the spread.

  • Weigh five things, security track record and proof of reserves, regulatory standing in your country, the specific coins and trading pairs you need, the full fee schedule including withdrawals, and available liquidity so large orders do not move the price. For beginners buying with a bank card, a regulated centralized exchange is usually the practical starting point.

Related expertise