existing MT account からクライアントのマスター アカウントまたは投資アカウントを作成します。アカウントは MT と同じログイン番号で B2COPY に登録されます。
前提条件
クライアントはプラットフォームにすでに登録されており、クライアント ID を持っている必要があります。スタンドアロン ソリューションについては、Seamless authorization および Register a client and create their payment account を参照してください。
終点
POST [host]/api/v2/b2copy/accounts/createリクエストボディ
| 名前 | タイプ | 必須 | 説明 |
|---|---|---|---|
| clientId | integer | Yes | The client for whom the account is created. |
| investmentPlatformId | integer | Yes | The investment platform instance (1 for a single MT server). |
| accountNumber | string | Yes | The MT login that exists on MT and will be registered on B2COPY. |
| productCurrencyId | integer | Yes | Product currency identifier — contact Support for assistance. |
| isMaster | integer | Yes | 1 → create a master account; 0 → create an investment account. |
| accountName | string | No | Name assigned to the account. |
| accountDescription | string | No | Description of the trading strategy on the account. |
curl --location --request POST 'https://host.name/api/v2/b2copy/accounts/create' \
--header 'Authorization: Bearer <access_token>' \
--data-raw '{
"clientId": 4406,
"investmentPlatformId": 1,
"accountNumber": "2121882154",
"productCurrencyId": 10,
"isMaster": 0,
"accountName": "MAM investor",
"accountDescription": "The trading strategy applied on the account"
}'応答
作成されたアカウント オブジェクト (id、タイプ、可視性フラグ、タイムスタンプを含む)。
{
"is_master": false,
"show_in_client_ui": true,
"status": true,
"id": 12574,
"account_description": "The trading strategy applied on the account",
"account_name": "MAM investor",
"type": 8,
"show_in_leaderboard": false,
"active_since": "2024-04-01T15:06:41.000000Z",
"created_at": "2024-04-01T15:06:41.000000Z"
}