> For the complete documentation index, see [llms.txt](https://lti.gitbook.io/user_guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lti.gitbook.io/user_guide/zh-cn/xiang-guan-gai-nian/pamm-de-fen-pei-fang-shi/r-ru-jin-he-ti-kuan-shi-chong-xin-fen-pei.md).

# R入金和提款时重新分配

每次执行入金或提款操作时，PAMM 主账户中的未平仓头寸都会按照账户净值比例，重新分配至已订阅该主账户的 PAMM 投资账户。

**示例**

假设 PAMM 投资账户 `#1` 和 `#2` 已订阅一个 PAMM 主账户：

`PAMM 主账户余额 = 0`

`PAMM 投资账户 #1 余额 = 0`

`PAMM 投资账户 #2 余额 = 0`

#### **第 1 步：投资者 #1 将 1,000 USD 转入 PAMM 投资账户 #1。**

在结算过程中，系统执行转账。

结果：PAMM 投资账户 `#1` 和 PAMM 主账户的余额均增加了 1,000 USD。

<figure><img src="https://1963181118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNxwcNnEuBTBq87kginPk%2Fuploads%2Fgit-blob-6aff14aec32cbd988acfbe44b05650146c846c3f%2Fpamm-reallocation-step1.png?alt=media" alt=""><figcaption></figcaption></figure>

#### **第 2 步：PAMM 交易员以 1.1555 的价格建立一个买入 1 手 EUR/USD 的头寸。**

结果：由于只有 PAMM 投资账户 `#1` 的余额为正数，该头寸仅按照以下交易量分配至 PAMM 投资账户 `#1`：

`投资者 #1 的头寸交易量 = 1 手 × 1,000 / 1,000 = 1 手`

<figure><img src="https://1963181118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNxwcNnEuBTBq87kginPk%2Fuploads%2Fgit-blob-71a5fa911f574e11231e5cefcd629ca6f9c56f5b%2Fpamm-reallocation-step2.png?alt=media" alt=""><figcaption></figcaption></figure>

#### **第 3 步：EUR/USD 当前的交易价格为 1.1600。**

结果：账户净值发生以下变化：

`PAMM 主账户净值 = PAMM 投资账户 #1 净值 = 1,000 + 1 手 ×（1.1600 - 1.1555）× 100,000 = 1,450`

<figure><img src="https://1963181118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNxwcNnEuBTBq87kginPk%2Fuploads%2Fgit-blob-7d455d25a5ede724c3eafb83427ea5d4bc136cc6%2Fpamm-reallocation-step3.png?alt=media" alt=""><figcaption></figcaption></figure>

#### **第 4 步：投资者 #2 将 550 USD 转入 PAMM 投资账户 #2。**

在结算过程中，系统执行转账。

结果：PAMM 投资账户 `#2` 和 PAMM 主账户的余额均增加了 550 USD。

`PAMM 主账户余额 = 1,000 + 550 = 1,550`

`PAMM 投资账户 #2 余额 = 0 + 550 = 550`

PAMM 主账户中的未平仓头寸将按照账户净值比例，重新分配至 PAMM 投资账户 `#1` 和 `#2`。

为此，PAMM 投资账户 `#1` 中 1 手 EUR/USD 的未平仓头寸将按当前市场价格 1.1600 平仓。

`平仓 1 手产生的利润（PAMM 投资账户 #1）= 1 手 ×（1.1600 - 1.1555）× 100,000 = 450`

`PAMM 投资账户 #1 余额 = 1,000 + 450 = 1,450`

PAMM 主账户中的头寸将按照以下交易量，重新分配至 PAMM 投资账户 `#1` 和 `#2`：

`投资者 #1 的头寸交易量 = 1 手 × 1,450 / 2,000 = 0.73 手`

`投资者 #2 的头寸交易量 = 1 手 × 550 / 2,000 = 0.27 手`

<figure><img src="https://1963181118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNxwcNnEuBTBq87kginPk%2Fuploads%2Fgit-blob-02d94a94cf0a64a9d26cfcbd15b702e676906d32%2Fpamm-reallocation-step4.png?alt=media" alt=""><figcaption></figcaption></figure>

#### **第 5 步：EUR/USD 当前的交易价格为 1.1700。**

结果：账户净值发生以下变化：

`PAMM 主账户净值 = 1,550 + 1 手 ×（1.1700 - 1.1555）× 100,000 = 3,000`

`PAMM 投资账户 #1 净值 = 1,450 + 0.73 手 ×（1.1700 - 1.1600）× 100,000 = 2,180`

`PAMM 投资账户 #2 净值 = 550 + 0.27 手 ×（1.1700 - 1.1600）× 100,000 = 820`

<figure><img src="https://1963181118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNxwcNnEuBTBq87kginPk%2Fuploads%2Fgit-blob-cebd7d02a42064182389852204838281fed0c652%2Fpamm-reallocation-step5.png?alt=media" alt=""><figcaption></figcaption></figure>

#### **第 6 步：投资者 #2 请求关闭 PAMM 投资账户 #2，并将该账户中的全部资金转入钱包。**

在结算过程中，系统执行关闭账户的请求并进行转账。

结果：PAMM 投资账户 `#2` 中的未平仓头寸已按当前市场价格 1.1700 平仓。

`平仓 0.27 手产生的利润（PAMM 投资账户 #2）= 0.27 手 ×（1.1700 - 1.1600）× 100,000 = 270`

`PAMM 投资账户 #2 余额 = 550 + 270 = 820`

PAMM 投资账户 `#2` 中的全部可用金额 820 USD 已转入投资者的钱包。PAMM 主账户的余额也会按照从 PAMM 投资账户 `#2` 提取的金额相应减少。

`PAMM 主账户余额 = 1,550 - 820 = 730`

`PAMM 投资账户 #2 余额 = 820 - 820 = 0`

PAMM 主账户中的未平仓头寸将按照账户净值比例，重新分配至 PAMM 投资账户 `#1`。

为此，PAMM 投资账户 `#1` 中 0.73 手 EUR/USD 的未平仓头寸将按当前市场价格 1.1700 平仓。

`平仓 0.73 手产生的利润（PAMM 投资账户 #1）= 0.73 手 ×（1.1700 - 1.1600）× 100,000 = 730`

`PAMM 投资账户 #1 余额 = 1,450 + 730 = 2,180`

PAMM 主账户中的头寸将按照以下交易量，重新分配至 PAMM 投资账户 `#1`：

`投资者 #1 的头寸交易量 = 1 手 × 2,180 / 2,180 = 1 手`

<figure><img src="https://1963181118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNxwcNnEuBTBq87kginPk%2Fuploads%2Fgit-blob-2d1ec1841b88e6a2d2ba455e8fe4452817aabde1%2Fpamm-reallocation-step6.png?alt=media" alt=""><figcaption></figcaption></figure>

#### **第 7 步：EUR/USD 当前的交易价格为 1.1650。**

结果：账户净值发生以下变化：

`PAMM 主账户净值 = 730 + 1 手 ×（1.1650 - 1.1555）× 100,000 = 1,680`

`PAMM 投资账户 #1 净值 = 2,180 + 1 手 ×（1.1650 - 1.1700）× 100,000 = 1,680`

<figure><img src="https://1963181118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNxwcNnEuBTBq87kginPk%2Fuploads%2Fgit-blob-52deb543b0d64633dce6f7056387e9f9f3f11bee%2Fpamm-reallocation-step7-1.png?alt=media" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1963181118-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNxwcNnEuBTBq87kginPk%2Fuploads%2Fgit-blob-3d61546f1b35216a73063be8e94d34a2aa73b03d%2Fpamm-reallocation-step7-2.png?alt=media" alt=""><figcaption></figcaption></figure>


---

# 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://lti.gitbook.io/user_guide/zh-cn/xiang-guan-gai-nian/pamm-de-fen-pei-fang-shi/r-ru-jin-he-ti-kuan-shi-chong-xin-fen-pei.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.
