> For the complete documentation index, see [llms.txt](https://squiddex-official.gitbook.io/squiddex/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://squiddex-official.gitbook.io/squiddex/education-book/what-is-cex-and-dex.md).

# What is Cex & Dex

<figure><img src="/files/SegVmAS8Oa1LuxbGYO4N" alt=""><figcaption></figcaption></figure>

There are two types of trading platforms in the crypto markets:

**CEX  —  Centralized Exchange**

**DEX  —  Decentralized Exchange**

Both kinds of exchange provide vital services and allow users to buy and sell crypto, but they are different in some key elements. Are you curious to know which ones? We'll show you the difference!

**A centralized exchange (CEX),** such as [Binance](https://www.binance.com/en), is a crypto exchange created by centralized organizations that exert control over ownership of the exchange.

* Operated by a centralized organization
* Matching buyers & sellers via the order book
* Matchmaking algorithms regulate supply & demand
* Data exchanged internally goes through centralized security processes
* Users have to deposit their crypto in the central wallet to use services

**A decentralized exchange (DEX)**, such as SquidDex, is a decentralized finance platform based on the blockchain network.

* Operated by users and liquidity providers
* No third-party operators
* Smart contracts allow traders to exchange crypto
* Peer-to-peer trading
* Users trade directly from their wallets

Let's make a short comparison between CEX & DEX:

![](https://biswap.zendesk.com/hc/article_attachments/6762744965777/Screen_Shot_2022-06-11_at_11.41.31_AM.png)

It was just a general overview for a better understanding of the principles of function. Each DEX & CEX has unique features and benefits that attract users to find a perfect match according to your needs and wishes.

Let us give you an example:

SquidDex is a decentralized exchange, but this description is too poor! Behind standard features, you can experience many other unique services & offers :&#x20;

{% hint style="success" %}
*SquidDex DEX provides a wide variety of services with cryptocurrencies, such as Exchange, Farming, Staking, and others*
{% endhint %}

{% hint style="success" %}
*SquidDex DEX has the lowest exchange fee on the BNB chain*&#x20;
{% endhint %}

{% hint style="success" %}
*Squiddex DEX is a leading project with strong partners, high liquidity, and a user-friendly approach*
{% endhint %}


---

# 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://squiddex-official.gitbook.io/squiddex/education-book/what-is-cex-and-dex.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.
