# What Is DEX ?

There are two types of cryptocurrency trading——centralized exchanges and decentralized exchanges. At present, centralized exchanges play an dominant role in the trading market. However, the development of decentralized exchanges cannot be ignored, which is commonly known as **DEX**. Its main feature is the exchange that provide swap services without KYC, registration and login.

As a blockchain-based exchange, DEX does not store user funds and personal information on the server, but only serves as an pool to match buyers and sellers who want to buy and sell digital assets. With the help of the matching mechanism, transactions occur directly between participants (peer-to-peer). Therefore, users of decentralized exchanges must keep their public keys, private keys, and mnemonics safe. Once they are lost, their assets cannot be recovered.

There are two types of DEX. The first is an P2P exchange based on order books, which uses a bid mode to complete transactions. The second is an exchange based on a liquidity pool, which completes transactions through automatic market makers. The algorithm behind the DEX based on the liquidity pool is called Automated Market Maker (AMM). For example, Uniswap uses an AMM mode that allows everyone to provide liquidity to the exchange to earn fees. The fees that users earn by providing liquidity are the share of trading on Uniswap.

Although DEX are complete decentralization, transparency and openness, it also has the disadvantages of low transaction efficiency, small scale, etc.&#x20;

Currently, the commonly used DEXs include [**Transit Swap**](https://www.transit.finance/)、Uniswap, PancakeSwap, MDEX, JustSwap, SushiSwap, and so on.


---

# Agent Instructions: 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:

```
GET https://help.tokenpocket.pro/es/blockchain-basics/what-is-dex.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
