Get data for the Statistics widget
Last updated
Last updated
Use the following two methods to get information for display in the Statistics widget for a specific master or investment account:
GET
[host]/api/v1/investment/widget/detail/{account}
GET
[host]/api/v1/investment/widget/statistics/{account}
GET
[host]/api/v1/investment/widget/detail/{account}
This method returns information about the fee plan created for a master account, number of followers, account return, chart data, profile picture, strategy description, and other relevant information. In the widget, the returned information is displayed as follows:
Headers
Authorization: Bearer <access_token>
Path parameter
Query parameter
Request example
The response includes the object providing details about the requested account for display in the Statistics widget.
GET
[host]/api/v1/investment/widget/statistics/{account}
This method returns information about trading instruments used on a master or investment account and the percentage ratios of their use, as well as some trading statistics. In the widget, the returned information is displayed as follows:
Headers
Authorization: Bearer <access_token>
Path parameter
Query parameter
Request example
The response includes the object providing information about trading instruments used on the requested account for display in the Statistics widget.
See also:
Name | Required | Description |
---|---|---|
Name | Required | Description |
---|---|---|
Name | Required | Description |
---|---|---|
Name | Required | Description |
---|---|---|
account
Yes
The MT login (number) of an account for which you want to get information.
investment_platform_id
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.
account
Yes
The MT login (number) of an account for which you want to get information.
investment_platform_id
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.