# 什么是DEX

加密货币交易所有两种类型，中心化交易所和去中心化交易所。目前，中心化交易所在交易市场上保持着重要的主导地位。但去中心化交易所的发展也不能忽视，即俗称的 DEX，全称 Decentralized exchange，简单来说就无许可非托管的交易所。主要特点就是大部分无 KYC、无需注册登录，即用即走提供交易兑换服务的交易所。

DEX作为一个基于区块链的交易所，它不将使用者资金和个人资料储存在服务器上，而只是作为一种基础设施来匹配希望买卖数字资产的买家和卖家。在匹配引擎的帮助下，这种交易直接发生在参与者(点对点)之间。因此，去中心化交易所的用户必须保存好自己的公钥、私钥、助记词，一旦丢失，资产就无法收回。

DEX 有两种类型。第一种是订单式 P2P 交易所，它采用竞价模式来完成交易。第二种 DEX 类型是基于流动性池的交易所，通过自动做市商来完成交易。基于流动性池 DEX 背后的算法被称为自动做市商（AMM）。例如，Uniswap 采用自动做市商模式，允许所有人向交易所提供流动性来赚取 Uniswap 的费用。用户在 Uniswap 上提供流动性赚取的费用就是他们从 Uniswap 上的交易活动中赚取的份额。

DEX去中心化交易所是DeFi生态系统的重要组成部分，DeFi生态系统的角色中心化交易所（CEX）相当于整个加密货币市场的角色。虽然DEX具有完全去中心化、透明度和开放的特性，但是它也存在交易效率低，用户规模较小的缺点。

目前，比较常用的 DEX 有 [**Transit Swap**](https://www.transit.finance/)、Uniswap、PancakeSwap、MDEX、JustSwap和SushiSwap等等。


---

# 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/cn/the-basics/about-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.
