RequestTopActiveAccountsBySymbols
Request for the top accounts with open positions, ranked by volume in lots, with a breakdown into Sell and Buy orders
{
"RequestId": "0f4760f7-a57c-4dfb-8f1f-2b8ccca9d550",
"Top":100,
"Symbols": [
"EURUSD"
],
"Reasons": [
"Robot",
"Client"
],
"AccountsGroups": [
"real",
"demo"
],
"Countries": [
"Russia",
"USA"
],
"Nodes": [
"node1",
"node2"
],
"RequestName": "RequestTopActiveAccountsBySymbols"
}
Request parameters:
| Name | Description |
|---|---|
| RequestId | Unique request identifier (GUID) |
| Top | Maximum number of records in each section (SellPositions and BuyPositions) in the request result (Default: 100) |
| Symbols | List of symbols (trading instruments) |
| Reasons | List of trade reasons (TradeReason) |
| AccountsGroups | List of account groups |
| Countries | List of countries |
| Nodes | List of nodes involved in the request. If the list is empty, all available nodes are called. |
| RequestName | Request type identifier |
{
"Result": {
"SellPositions": [
{
"OpenPositionsInLots": 2.0,
"ProfitWithTaxesUsd": 1234.0,
"VolumeInUsd": 12345.0,
"OrdersCount": 2.0,
"Symbol": "EURUSD",
"EnableReadOnly": false,
"City": "city",
"RegDate": "0001-01-01 00:00:00:000",
"Balance": 100.0,
"Margin": 100.0,
"MarginLevel": 400.0,
"Leverage": 30,
"Drawdown": 0.0,
"RealizedProfit": -1000.0,
"NetVolumeInUsd": 0.0,
"NetVolumeInLots": 0.0,
"Node": "Node1",
"Platform": "Mt4",
"Login": 2,
"Group": "real",
"Country": "Russia",
"Currency": "USD",
"Equity": 400.0,
"ActualLeverage": 0.0,
"EquityInUsd": 0.0,
"Lots": 0.0,
"UnrealizedProfitInUsd": 0.0,
"TotalProfit": -700.0,
"TotalProfitInUsd": 0.0,
"UnrealizedProfit": 300.0,
"SessionProfit": 100.0,
"SessionProfitInUsd": 100.0,
"IsSuspicious": false,
"SuspiciousComment": ""
},
{
"OpenPositionsInLots": 2.0,
"ProfitWithTaxesUsd": 1234.0,
"VolumeInUsd": 12345.0,
"OrdersCount": 2.0,
"Symbol": "EURUSD",
"EnableReadOnly": false,
"City": "city",
"RegDate": "0001-01-01 00:00:00:000",
"Balance": 100.0,
"Margin": 100.0,
"MarginLevel": 400.0,
"Leverage": 30,
"Drawdown": 0.0,
"RealizedProfit": -1000.0,
"NetVolumeInUsd": 0.0,
"NetVolumeInLots": 0.0,
"Node": "Node1",
"Platform": "Mt4",
"Login": 4,
"Group": "real",
"Country": "Russia",
"Currency": "USD",
"Equity": 400.0,
"ActualLeverage": 0.0,
"EquityInUsd": 0.0,
"Lots": 0.0,
"UnrealizedProfitInUsd": 0.0,
"TotalProfit": -700.0,
"TotalProfitInUsd": 0.0,
"UnrealizedProfit": 300.0,
"SessionProfit": 50.0,
"SessionProfitInUsd": 50.0,
"IsSuspicious": false,
"SuspiciousComment": ""
}
],
"BuyPositions": [
{
"OpenPositionsInLots": 2.0,
"ProfitWithTaxesUsd": 1234.0,
"VolumeInUsd": 12345.0,
"OrdersCount": 2.0,
"Symbol": "EURUSD",
"EnableReadOnly": false,
"City": "city",
"RegDate": "0001-01-01 00:00:00:000",
"Balance": 100.0,
"Margin": 100.0,
"MarginLevel": 400.0,
"Leverage": 30,
"Drawdown": 0.0,
"RealizedProfit": -1000.0,
"NetVolumeInUsd": 0.0,
"NetVolumeInLots": 0.0,
"Node": "Node2",
"Platform": "Mt4",
"Login": 3,
"Group": "real",
"Country": "Russia",
"Currency": "USD",
"Equity": 400.0,
"ActualLeverage": 0.0,
"EquityInUsd": 0.0,
"Lots": 0.0,
"UnrealizedProfitInUsd": 0.0,
"TotalProfit": -700.0,
"TotalProfitInUsd": 0.0,
"UnrealizedProfit": 300.0,
"SessionProfit": -100.0,
"SessionProfitInUsd": -100.0,
"IsSuspicious": false,
"SuspiciousComment": ""
},
{
"OpenPositionsInLots": 2.0,
"ProfitWithTaxesUsd": 1234.0,
"VolumeInUsd": 12345.0,
"OrdersCount": 2.0,
"Symbol": "EURUSD",
"EnableReadOnly": false,
"City": "city",
"RegDate": "0001-01-01 00:00:00:000",
"Balance": 100.0,
"Margin": 100.0,
"MarginLevel": 400.0,
"Leverage": 30,
"Drawdown": 0.0,
"RealizedProfit": -1000.0,
"NetVolumeInUsd": 0.0,
"NetVolumeInLots": 0.0,
"Node": "Node1",
"Platform": "Mt4",
"Login": 3,
"Group": "real",
"Country": "Russia",
"Currency": "USD",
"Equity": 400.0,
"ActualLeverage": 0.0,
"EquityInUsd": 0.0,
"Lots": 0.0,
"UnrealizedProfitInUsd": 0.0,
"TotalProfit": -700.0,
"TotalProfitInUsd": 0.0,
"UnrealizedProfit": 300.0,
"SessionProfit": -100.0,
"SessionProfitInUsd": -100.0,
"IsSuspicious": false,
"SuspiciousComment": ""
}
],
"SellSummary": {
"Total": 120,
"Lots": 13.0,
"ProfitUsd": 1350.0,
"Accounts": 100.0,
"TotalVolumeInUsd": 30000.0
},
"BuySummary": {
"Total": 102,
"Lots": 10.0,
"ProfitUsd": 120.0,
"Accounts": 100.0,
"TotalVolumeInUsd": 20000.0
}
},
"Errors": [
],
"RequestId": "36e49ce7-ac9b-400b-9a80-e9f3b934bbc1",
"ResponseMaster": "ResponseTopActiveAccountsBySymbols"
}
The ProfitWithTaxesUsd field contains the profit in USD AT THE EXCHANGE RATE CURRENT AT THE TIME OF THE REQUEST.
The Errors field is either an empty list or a list of node responses of type ResponseNodeError.