> For the complete documentation index, see [llms.txt](https://cook-protocol.gitbook.io/chinese/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cook-protocol.gitbook.io/chinese/fund-selectors/buy-sell-funds.md).

# 买入/卖出基金

在本节中，我们将演示作为投资者将如何买入和卖出指数代币。

![](/files/-McSbUrbde-P4FXtLKrh)

首先，您需要点击“兑换”按钮。

![](/files/-McSbY0NH769AGREFfmz)

此时会弹出一个对话框。您可在对话框中输入您希望兑换代币的数量。从WETH到CLI表示您希望用WETH购买CLI。点击向下的箭头可切换买入/卖出的代币。从CLI到WETH表示您希望通过出售CLI来购买WETH。

![](/files/-McSbdyTkyfYgtIxReoi)

一旦您决定了希望出售的代币数量，在对话框中第一行空白处输入数据，可兑换的代币数量就会显示在第二行。

![](/files/-McSbuglqct6H1feREmm)

“兑换”按钮下方显示了您将收到的预估代币数量。由于交易滑点和Gas费的存在，您实际收到的代币数量可能会有所不同。

![](/files/-McSbrdBf_jggpQ_Ctna)

点击“兑换”按钮后，MetaMask钱包将显示Gas费的具体金额，并请求扣费许可。

![](/files/-McSc9gDh1WPgxcW4ftt)

在MetaMask上点击确认后，便会进入交易过程。下图展示了交易正在进行中的状态：

![](/files/-McScDImEH2FJF1c1OkI)

交易成功后，您可以再次打开钱包进行验证，确保余额准确。

## 买入/卖出和发行/赎回的区别

有两种方式可以获得指数代币：一种是在去中心化交易所上进行兑换，第二种是使用标的代币发行指数代币。兑换的Gas费较少，也更为便捷，是首要选择。但是如果您已经拥有了所有标的代币，您也可以选择自行发布指数代币。


---

# 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://cook-protocol.gitbook.io/chinese/fund-selectors/buy-sell-funds.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.
