How Do Crypto Exchanges Work? CEXs, DEXs, Order Books and Fees Explained


Read time 11 min
Quick Answer:
A crypto exchange is a platform that matches buyers and sellers of cryptocurrency, either through a centralized order book (CEX) or a decentralized, automated system running on a blockchain (DEX).
What Is a Crypto Exchange?
A cryptocurrency exchange is a platform where users buy, sell and trade digital assets. These exchanges exist to connect a user who wants to sell Bitcoin and with the one who wants to buy it, at a price both parties agree to. The process of matching is automated either by running a centralized order book or by using smart-contract-based liquidity pools.
Exchanges fall into two categories, often shortened as CEX and DEX: centralized and decentralized exchanges. Centralized exchanges operate like traditional trading platforms with a company mediating, while decentralized exchanges run on blockchain smart contracts without a central operator holding user funds. CEX and DEX differ in custody, compliance and mechanics and must be explained separately before making a decision on where to trade.
What is a CEX?
A centralized exchange, or CEX, is a company-operated platform that holds custody of user funds and matches trades through an internal order book. CEX typically requires an account, identity verification, and a deposit before trading can begin. CEX trades some decentralization for convenience, deep liquidity, and, on regulated platforms, consumer protections that decentralized alternatives generally do not offer in the same form.
Key Exchange Terminology
Order book: A live list of outstanding buy and sell orders for a trading pair, organized by price.
Liquidity: The ease with which an asset can be bought or sold without significantly moving its price.
Automated market maker (AMM): A DEX pricing mechanism that uses liquidity pools instead of matching individual orders.
Maker/taker fee: Fees charged based on whether a trade adds or removes liquidity from the order book.
Trading pair: Two assets that can be exchanged for one another on a platform, such as BTC/USDT.
Slippage: The difference between an order’s expected price and its actual execution price, often caused by low liquidity or fast-moving markets.
How Centralized Exchanges (CEXs) Work
A centralized exchange operates similarly to a traditional brokerage:
- A user creates and verifies an account. Most CEXs require identity verification (KYC) before trading is enabled.
- Funds are deposited. Users can deposit fiat currency (via an on-ramp) or transfer existing crypto into their exchange account.
- Orders are placed. Users submit buy or sell orders specifying a price and quantity, or choose to trade instantly at the current market price.
- The order book matches trades. The exchange’s matching engine pairs compatible buy and sell orders and executes the trade.
- The exchange holds the resulting balance. Funds remain in the exchange’s custody until the user withdraws them to an external wallet or off-ramps to fiat.
Exchange itself holds user funds during this process, which might become a vulnerability due to a counterparty risk. The platform could be hacked, become insolvent, or freeze withdrawals, which is why many experienced users move meaningful holdings to a personal wallet after trading.
What is a DEX?
A decentralized exchange, or DEX, is a trading platform that runs on blockchain smart contracts rather than a company-managed matching mechanism. Instead of depositing funds into a platform’s custody, a user connects their own wallet directly to the DEX and trades from it. Popular examples of DEX crypto platforms include Uniswap and dYdX, which operate across different blockchain networks and asset types.
The defining feature of a DEX is that no single company ever takes custody of user funds. Trades settle directly on-chain, between the trader’s wallet and a smart contract, which removes a major point of counterparty risk but shifts more responsibility onto the user to manage their own wallet security correctly.
How Decentralized Exchanges (DEXs) Work
Most DEX platforms use an Automated Market Maker (AMM) model rather than a traditional order book:
- Liquidity providers deposit paired assets (for example, ETH and USDC) into a smart contract-based liquidity pool.
- A pricing algorithm sets the exchange rate based on the ratio of assets in the pool, rather than matching individual buy and sell orders.
- A trader connects their own wallet directly to the DEX, without creating an account or depositing funds with a third party.
- The trade executes on-chain, swapping one asset for another directly through the smart contract.
- Liquidity providers earn a share of trading fees in exchange for supplying assets to the pool.
Trades settle directly from the user’s own wallet, thus a DEX exchange removes custodial risk but requires a working understanding of wallets, gas fees and blockchain networks. Some newer DEX designs also use order-book models on-chain, but AMMs remain the dominant approach across most DEX crypto platforms today.
CEX vs DEX
The choice between CEX and DEX depends on whether a user prioritizes fiat on-ramps and account-based support (CEX) or self-custody and permissionless access (DEX). Our full CEX vs DEX comparison covers this trade-off in more depth.
Cryptocurrency Exchange Platforms and Apps
Most major cryptocurrency exchange platforms now offer both a web-based dashboard and a dedicated cryptocurrency exchange app, and the choice between them affects how a trader actually experiences the order book, fees, and account controls described elsewhere in this guide.
For most casual users, the mobile app covers day-to-day needs like checking prices and making simple trades, while the web platform remains preferable for anything requiring a detailed view of the order book or trade history.
Security Considerations: CEX vs DEX Risks
The security trade-offs between a CEX and a DEX mirror their custody models, and therefore, some traders use both types of platform for different purposes.
CEX risk profile. Because a centralized exchange holds user funds, the biggest risks are platform-level: exchange hacks, insolvency, mismanagement, or regulatory action that freezes withdrawals. Choosing an exchange with a strong security track record, transparent reserves, and clear regulatory standing reduces, though never eliminates, this category of risk.
DEX risk profile. Since a DEX never takes custody, platform-level insolvency is not a concern in the same way, but risk shifts to the user and to the underlying smart contracts. Smart contract bugs, malicious token contracts, and user error, such as approving the wrong transaction, are the more common failure points on DEX crypto platforms.
For this reason, many active traders treat CEXs and DEXs as complementary rather than competing tools. A CEX for fiat on/off-ramping and larger, established assets, and a DEX for accessing newer tokens or trading directly from self-custody.
Common Features to Compare Across Exchange Platforms
Beyond fees and liquidity, several other features distinguish one cryptocurrency exchange platform from another and are worth checking before committing significant funds:
- Supported trading pairs. Not every exchange lists every asset, and pair availability affects how directly you can trade between two specific tokens.
- Order types. Advanced traders may look for stop-loss, limit, and conditional order types beyond simple market orders.
- API access. Platforms that support API trading make it possible to connect third-party tools, bots, or portfolio trackers.
- Mobile app parity. Some cryptocurrency exchange apps offer a reduced feature set compared to the web platform, which matters if you plan to trade primarily from a phone.
- Customer support responsiveness. Particularly relevant for CEXs, since a frozen withdrawal or account issue depends entirely on how quickly support can resolve it.
Understanding Order Books
An order book is the core mechanism most centralized exchanges use to match trades. It is a live, continuously updated list of all outstanding buy orders (bids) and sell orders (asks) for a given trading pair, organized by price.
A tighter spread and greater depth generally indicate a more liquid market, meaning larger trades can be executed with less impact on price. This is one reason why established assets on major exchanges tend to have more stable, predictable pricing than smaller or newly listed tokens.
How Exchange Fees Work
Exchanges generate revenue primarily through trading fees, although the structure varies by platform and trade type.
Maker-taker fee models are designed to reward traders who add liquidity to the order book (makers) over those who remove it (takers), since deeper liquidity benefits all participants on the platform.
Choosing the Best Cryptocurrency Exchange
There is no single best cryptocurrency exchange for every trader, since the right choice depends on trading volume, preferred assets, and whether custody or self-custody is the priority. It is useful to score any candidate exchange, CEX or DEX, against the same core criteria used elsewhere in this guide:
Evaluated this way, the “best” exchange is really the one that best matches an individual trader’s situation, rather than a single platform that outperforms every competitor on every dimension.
Getting Started on a Cryptocurrency Exchange
For someone opening their first account on a cryptocurrency exchange platform, whether a CEX or a DEX, the practical onboarding steps are consistent across providers:
- Compare a shortlist of exchanges using the criteria above: fees, supported assets, and custody model.
- Create an account and complete verification if using a CEX, or connect an existing wallet if using a DEX.
- Deposit funds, either fiat via an on-ramp or crypto transferred from another wallet or exchange.
- Place a small test trade before committing larger amounts, to confirm the platform behaves as expected.
- Decide where funds will live long-term, whether that means keeping a trading balance on the exchange or withdrawing to a personal wallet between trades.
Why Prices Can Differ Between Exchanges
The same asset can trade at slightly different prices across different exchanges at the same moment, due to differences in liquidity, regional demand, and how quickly each platform’s order book adjusts. This gap, sometimes exploited through arbitrage trading, is covered in more detail in our guide on why crypto prices differ across exchanges.
Staying Informed About Exchange Changes
The exchange landscape shifts often enough that following cryptocurrency exchange news is worthwhile for anyone trading regularly, since fee schedules, supported assets, and even a platform’s regulatory status can change quickly. New listings can affect liquidity and price discovery, while regulatory actions or security incidents at a major CEX or DEX can influence markets well beyond that single platform. Checking news periodically before making significant trades is usually enough to catch major changes.
Choosing Between Exchange Types
If you want on-ramp/off-ramp support, account-based recovery options, and customer support, choose CEX. However, if you prioritize self-custody and want access to a broader range of tokens, including newly launched ones, choose DEX.
Compare maker/taker fee tiers if you plan to trade frequently, since fees compound over many transactions. Then, check withdrawal fees and supported networks before depositing funds on any exchange.
If you would rather skip the order book altogether and buy crypto directly, Utorg makes it straightforward. Buy Bitcoin →
Frequently Asked Questions
FAQ title
What is the difference between a CEX and a DEX?
A centralized exchange (CEX) is operated by a company that holds user funds and matches trades through an order book. A decentralized exchange (DEX) runs on blockchain smart contracts, letting users trade directly from their own wallet without a central custodian.
What is DEX in simple terms?
A DEX, or decentralized exchange, is a trading platform where swaps happen directly between users’ wallets through smart contracts, rather than through a company-operated order book.
How does an order book work?
An order book lists all current buy orders (bids) and sell orders (asks) for a trading pair, organized by price. When a bid and ask match, or a market order is placed, the exchange’s matching engine executes the trade.
Are crypto exchange fees the same everywhere?
No. Fee structures vary by platform, trade type (maker vs taker), and asset. Comparing fee schedules across exchanges is worthwhile, especially for frequent traders.
Do I need an account to use a crypto exchange?
Centralized exchanges require an account with identity verification. Decentralized exchanges do not require an account, which means that users connect a personal wallet directly to trade.
Why do exchanges show different prices for the same coin?
Prices can vary slightly between exchanges due to differences in liquidity, regional demand and how quickly each platform’s order book updates. Arbitrage trading tends to narrow, but not fully eliminate, these gaps.

