# AMM 市場 (Automated Market Maker)

<sub>平台支持基於恆定乘積模型 (x \* y = k) 的自動做市商 (AMM)，以實現二元結果（例如「是/否」或「贊成/反對」）的去中心化交易。每個市場都有兩種結果代幣（例如「是」和「否」），AMM 池持有這兩種結果代幣的儲備。儲備的乘積 (YES\_reserves \* NO\_reserves = k) 保持不變，從而確保流動性。</sub>

<sub>1 .  購買結果份額</sub>

<sub>步驟 1：將抵押品（例如 USDT）拆分成兩種等量的結果代幣（比例為 1:1）。例如：10 美元 USDT → 10 個「是」 + 10 個「否」。</sub>\ <sub>步驟2：透過AMM池將不需要的結果份額（例如，NO）兌換為所需的份額（YES）。</sub>\ <sub>最終金額：拆分後的所需份額 + 從交換中購買的份額總和 = 購買的YES份額總數。</sub>

<sub>2 .  出售結果份額</sub>

<sub>步驟 1：將部分持有的代幣（例如，YES）交換為 AMM 池中的互補結果（NO）。</sub>\ <sub>步驟 2：將剩餘持有的代幣（YES）和新獲得的 NO 代幣合併回 USDT（1:1）。</sub>

***

{% hint style="warning" %}

## <sub><mark style="color:orange;">**Tips | 注意事項 :**<mark style="color:orange;"></sub>

### <sub>**為什麼AMM不支援限價訂單**</sub>

<sub>我們平台上使用的諸如恆定乘積做市商 (CPMM) 之類的 AMM 與基於訂單簿的系統有著根本的不同，因此它們本身並不支持限價訂單。它們用演算法流動性池取代了訂單簿。</sub>

1. <sub>自動做市商 (AMM) 中的價格會隨著每筆交易而改變。 「限價訂單」需要一個靜態價格點，這與 AMM 的運作方式相矛盾。</sub>
2. <sub>AMM 沒有掛單機制。 AMM 僅以目前池子決定的價格立即執行交易。然而，在訂單簿中，限價單處於閒置狀態，直到市場達到其價格。</sub>

{% endhint %}


---

# 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://foregate.gitbook.io/foregate-docs/zh-tw/shi-chang-lei-xing-yu-ji-zhi/jiao-yi-ji-chu-zhi-shi/amm-shi-chang-automated-market-maker.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.
