# 如何使用MDEX合約計算器

用戶可以使用MDEX合約計算器，來計算每個委托的起始保證金，收益和回報率。

1.點擊【計算器】圖標，如下圖。

<figure><img src="/files/4YktG1rApWx9297UDvyL" alt=""><figcaption></figcaption></figure>

2.用戶可以使用計算器來計算【收益】、【目標價格】或【強平價格】。

<figure><img src="/files/eEFslkOBBw5wAkh0RUj9" alt=""><figcaption></figcaption></figure>

3.選好選項後用戶可以選擇【做多】或【做空】，輸入開倉價格、平倉價格和成交數量。此外，您也可以靈活調整杠桿倍數。填寫完成後，點擊【計算】。MDEX就會自動計算起始保證金、收益及回報率。

#### USDT永續合約

&#x20;起始保證金=開倉數量 x 開倉價格 x 起始保證金率

起始保證金率=1/杠桿倍數

收益計算：

多單=（平倉價格-開倉價格）x 開倉數量

空單=（開倉價格-平倉價格）x 開倉數量

回報率=收益/起始保證金=方嚮 x （1-開倉價格/平倉價格）/起始保證金率


---

# 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://mdexdoc.gitbook.io/doc/chinese/yong-hu-zhi-nan/he-yue-jiao-yi-xin-shou-zhi-nan/ru-he-shi-yong-mdex-he-yue-ji-suan-qi.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.
