Home / Forex glossary / CEX (Centralized Exchange)
CEX (Centralized Exchange)
A centralized exchange (CEX) is a company that holds your coins and matches your trades. A decentralized exchange (DEX) is software that swaps coins directly from your own wallet. Each has different risks.
How it works
On a CEX, you open an account, usually verify your identity, deposit money and trade. It is easy to use and often supports bank deposits. The trade-off is custody: the exchange holds your coins, so you rely on it to stay solvent, secure and honest.
On a DEX, you connect your own wallet and swap through smart contracts, with no company holding your funds. You keep custody, but you pay network gas fees, you can face slippage on thin pools, and you must check that a token is genuine, since anyone can create one.
Neither is safe by default. Exchanges have failed or been hacked. Smart contracts can contain bugs, and fake tokens are common. Many people use both: a CEX to buy with cash and a wallet for storage.
A worked example
Hypothetical: you swap $1,000 on a DEX with a 1% slippage tolerance and a $5 gas fee. The worst-case cost is 1,000 × 0.01 + 5 = $15, or 1.5%. If the pool is thin and you set the tolerance at 5%, the worst case rises to $55. On a CEX the same trade might cost a fee of a fraction of a percent, but you would be leaving the coins in the exchange's custody.
Common mistakes
- Leaving large balances on an exchange you have not researched.
- Approving a token or site on a DEX without checking that it is the real one.
- Setting a very high slippage tolerance, which can let a trade fill at a poor price.
Check yourself
Common questions
What is a CEX?
A centralized exchange, a company-run platform that holds your coins and matches buyers and sellers, such as Coinbase or Binance.
What is a DEX?
A decentralized exchange that lets you swap coins from your own wallet through smart contracts, with no company holding your funds.
Which is safer, a CEX or a DEX?
Neither is automatically safer. A CEX adds custody risk, and a DEX adds smart-contract and fake-token risk.
Related terms
Use it on a demo account
The fastest way to make this stick is to use it. PipPath gives you a $10,000 demo account to practice position size, stops and targets with no real money at risk.
Start freeEducational content, not financial advice. Examples use made-up numbers.