> For the complete documentation index, see [llms.txt](https://docs.bitfoot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.bitfoot.com/new-to-crypto/understanding-cexs-and-dexs.md).

# Understanding CEXs and DEXs

Cryptocurrency exchanges come in two main types: **Centralized Exchanges (CEXs)** and **Decentralized Exchanges (DEXs)**. Both allow you to trade crypto, but they differ in how they operate and how much control they give you over your funds.

* **CEXs** (e.g., Coinbase, Binance) are managed by companies that oversee the platform and hold custody of your assets. They’re beginner-friendly, offer fiat on-ramps, and handle security for users. However, users rely on the exchange’s security and custodianship.
* **DEXs** (e.g., Uniswap, Raydium) run on blockchain networks without a central authority. You trade directly from your wallet, maintaining full control over your assets and privacy. DEXs often list new tokens early, though they can be less intuitive for beginners.

## Key Differences

| Feature                 | CEX                                       | DEX                                           |
| ----------------------- | ----------------------------------------- | --------------------------------------------- |
| **Custody of Funds**    | Held by exchange                          | Held by user                                  |
| **Account Requirement** | Yes (usually with KYC)                    | No (trade directly from your wallet)          |
| **Control Over Assets** | Limited, as exchange manages private keys | Full control, as users manage their own keys  |
| **Token Availability**  | Typically established tokens              | Wide range, including new/experimental tokens |
| **Fiat On-Ramps**       | Yes, can deposit and withdraw fiat        | No, requires crypto for trades                |

In summary, **CEXs offer convenience and security**, while **DEXs provide more control and privacy**. Most people use a combination of both: **CEXs for fiat on- and off-ramps** and **DEXs for token trading**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.bitfoot.com/new-to-crypto/understanding-cexs-and-dexs.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
