> For the complete documentation index, see [llms.txt](https://docs.pancakeswap.finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pancakeswap.finance/chinese/jiao-yi/limit-orders/how-to-use-limit-orders.md).

# 如何使用限价单

## 什么是限价单

限价单是一种工具，使用户能够以指定价格或更优价格买入或卖出资产，而不是依赖执行时的市场价格。在限价单中，价格虽然有保证，但订单是否执行并不保证——只有当价格满足订单条件时，限价单才会被执行。

## 如何设置限价单

1. 前往兑换 (Swap) 页面，点击"LIMIT"选择限价单选项，或使用此链接：<https://pancakeswap.finance/swap/limit>
2. 选择你希望交易的"From"和"To"代币。在此示例中，我们分别选择了 USDC 和 ETH，意味着我们想用 USDC 买入 ETH。

![](https://raw.githubusercontent.com/pancakeswap/pancake-document/en/.gitbook/assets/image%20%284%29%20%281%29.png)

1. 输入你希望交易的金额。注意限价价格将显示当前市场价格，然后据此估算目标代币 (ETH) 的输出数量
2. 设置所需的限价价格。只有当可用市场价格优于或等于限价价格时，交易才会被执行。目标代币的输出数量将相应更新。

在下面的示例中，我们希望在价格为 1,900 美元或更优时买入 ETH。收到的 ETH 数量将等于或大于 0.037 ETH。只有等于或优于此数量的报价才有资格成交该订单。此数量已计入 gas 成本和手续费。

{% hint style="info" %}
重要提示：由于手续费是从输出代币数量中支付的，限价价格已包含 gas 费和交易费，因此用户在设置价格时应将此考虑在内。例如，一个非常小的订单的 gas 费可能占订单输出的很大比例，从而反映出与现货市场价格相比并不具竞争力的实际限价价格。
{% endhint %}

3. 按"Place order"。仔细核对你的订单详情，接受免责声明并按"Confirm order"。

   <figure><img src="https://raw.githubusercontent.com/pancakeswap/pancake-document/en/.gitbook/assets/image%20%283%29%20%281%29%20%281%29.png" alt="" width="375"><figcaption></figcaption></figure>
4. 交易完成后，你将能够在订单历史记录部分的"Open orders"下看到你的订单。\
   ![](https://raw.githubusercontent.com/pancakeswap/pancake-document/en/.gitbook/assets/image%20%282%29%20%281%29%20%281%29%20%281%29.png)
5. 未成交订单可随时取消，方法是展开订单并点击"Cancel Order"按钮。

需要考虑的事项：

* 如果可用市场价格劣于你设置的限价价格，你的订单可能不会被执行。
* 这些交易基于一个去中心化协议，该协议利用相互竞争以成交订单的链下接单方 (takers)。这些接单方有权要求收取费用，协议会从输出代币中为获胜的接单方扣除该费用。
* 接单方在设置费用时可能会考虑你交易的 gas 费，这可能导致费用金额波动。
* 在指定限价价格时，用户会在 UI 中看到订单成交后他们将收到的目标代币最小数量。只有报价等于或优于此数量的接单方才有资格成交该订单。此数量已计入 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://docs.pancakeswap.finance/chinese/jiao-yi/limit-orders/how-to-use-limit-orders.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.
