Create a master or investment account using the existing MT account
Last updated
Was this helpful?
Last updated
Was this helpful?
Use the method described below to create a master or investment account for a client from their existing MT account.
To create a master or investment account for a client, the client must be already registered on the B2COPY investment platform and assigned the client ID. For details on how to register a client in a standalone B2COPY solution, refer to the articles: Seamless authorization and Register a client and create their payment account.
POST
[host]/api/v2/b2copy/accounts/create
Headers
Authorization: Bearer <access_token>
To get the access token, use the method to authorize in the Back Office.
Body
In the request body, specify the following parameters:
Name | Type | Required | Description |
---|---|---|---|
Request example
The response includes the object providing information about the created master or investment account.
Response example
clientID
ineger
Yes
The identifier of a client for whom you want to create a master or investment account.
investmentPlatformId
ineger
Yes
The identifier of the investment platform instance.
If only one MT server is connected to your B2COPY investment platform, specify 1.
If you have more than one MT server connected to your B2COPY investment platform, contact the Support team for assistance.
accountNumber
string
Yes
The MT login (number) of a client account that exists on MT. This account will be registered as a master or investment account on the B2COPY investment platform.
productCurrencyId
ineger
Yes
The identifier of a product currency. Contact the Support team for assistance.
isMaster
ineger
Yes
Specify 1 to create a master account; and 0 to create an investment account.
accountName
string
No
The name assigned to a master or investment account.
accountDescription
string
No
The description of a trading strategy used on the account.