RequestWinnersLosersByPeriod
Request for a list of top winners and top losers for the specified period (day, week, month, full, specified by the user), taking into account the results of the current session for the specified filter
Request format
{
"MinAmount": 50.0,
"Top":3,
"TimePeriod":"Month",
"From" : "2021-02-20 15:21:31:964",
"To" : "2021-02-24 15:21:31:964",
"AccountsGroups": [
"demo-stand-usd",
"demo-real-eur"
],
"Countries": [
"Russia",
"Indonesia"
],
"RequestId": "bb0c322b-5b74-4df9-bd83-6530e3aa4c90",
"RequestName": "RequestWinnersLosersByPeriod"
}
Request parameters:
| Name | Description |
|---|---|
| MinAmount | Minimum volume |
| Top | If the parameter is specified, then the answer will be limited by the number of Top Winners, and Top Losers |
| TimePeriod | Desired period (Day, Week, Month, Entire, Custom) |
| From | Date and time of the beginning of the period specified by the user (if TimePeriod-> Custom, only within the current month) |
| To | Date and time of the end of the period specified by the user (if TimePeriod-> Custom, only within the current month) |
| AccountsGroups | List of account groups |
| Countries | List of countries |
| RequestId | Unique request GUID |
| Nodes | List of nodes that participate in the request. If the list is empty, then all available nodes are requested. |
| RequestName | Type of request |
Response ResponseWinnersLosers response in the Winners and Losers lists contains a DtoAccountInfo structure
{
"Result": {
"Winners": [
{
"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": ""
},
{
"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": ""
}
],
"Losers": [
{
"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": ""
},
{
"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": ""
}
],
"WinnersSummary": {
"Accounts": 4,
"Lots": 0.0,
"EquitiesInUsd": 0.0,
"UnrealizedProfitInUsd": 0.0,
"TotalProfitInUsd": 0.0,
"TotalSessionProfitInUsd": 300.0
},
"LosersSummary": {
"Accounts": 2,
"Lots": 0.0,
"EquitiesInUsd": 0.0,
"UnrealizedProfitInUsd": 0.0,
"TotalProfitInUsd": 0.0,
"TotalSessionProfitInUsd": -200.0
},
"TimePeriod":"Month",
"From" : "2021-02-20 15:21:31:964",
"To" : "2021-02-24 15:21:31:964"
},
"Errors": [
],
"RequestId": "bb0c322b-5b74-4df9-bd83-6530e3aa4c90",
"ResponseMaster": "ResponseWinnersLosersByPeriod"
}
Errors or an empty list or a list of responses of the ResponseNodeError nodes