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
Name | Required | Description |
---|---|---|
| Yes | The MT login (number) of an account for which you want to get information. |
Query parameter
Name | Required | Description |
---|---|---|
| Yes | The identifier of the investment platform instance.
|
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
Name | Required | Description |
---|---|---|
| Yes | The MT login (number) of an account for which you want to get information. |
Query parameter
Name | Required | Description |
---|---|---|
| Yes | The identifier of the investment platform instance.
|
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: