RequestAccountsBonusesHistory
Request the history of bonuses transactions of specified accounts filters to aggregate accounts
Request format
{
"AccountIds": [
{
"Login": 10001,
"Node": "node1",
"Platform": "Mt5"
},
{
"Login": 10002,
"Node": "node2",
"Platform": "Mt5"
}
],
"Agents": [
{
"Agent": 1234,
"Node": "node2",
"Platform": "Mt4"
}
],
"Emails": [
"mail@mail.net",
"mail2@mail.net"
],
"Countries": [
"USA",
"Germany"
],
"AccountsGroups": [
"group1",
"group3"
],
"Ips": [
"192.158.1.38"
],
"Ids": [
"id123"
],
"Cids": [
"15bc135c-a4eb-45a9-9f98-822c1ba0830c",
"25bc135c-a4eb-45a9-9f98-822c1ba0830c"
],
"FullNames": [
"James Heatfield"
],
"From": "2022-01-06",
"To": "2022-01-14",
"PageSize": 100,
"PageNum": 1,
"Nodes": [
"Node1"
],
"RequestId": "e10fbea8-7a2a-41c4-b2ec-90b6bdcfeb3b",
"RequestName": "RequestAccountsBonusesHistory"
}
Request parameters:
| Name | Description |
|---|---|
| From | History start date and time |
| To | Date and time of the end of history |
| AccountIds | Accounts to aggregate |
| Agents | Agents of accounts to aggregate |
| Emails | Emails of accounts to aggregate |
| Countries | Countries of accounts to aggregate |
| AccountsGroups | Accounts Groups of accounts to aggregate |
| Ips | IPs of accounts to aggregate |
| Ids | IDs of accounts to aggregate |
| Cids | CIDs of accounts to aggregate |
| FullNames | Full names of accounts to aggregate |
| PageSize | Number of entries per page |
| PageNum | Page number (first page: 1) |
| Nodes | List of nodes that participate in the request. If the list is empty, then all available nodes are used. |
| RequestId | Unique request GUID |
| RequestName | Request type |
Response ResponseAccountsBonusesHistory
{
"Result": {
"Page": [
{
"Deal": 33187,
"Timestamp": "2023-12-05 00:00:00:000",
"TimeMsc": "2023-12-05 11:21:48:158",
"Login": 10001,
"AccountGroup": "demo",
"Action": "BALANCE",
"Profit": 20000,
"ProfitInUsd": 20000,
"ClientCommissionInUsd": 0,
"BrokerCommissionInUsd": 0,
"Comment": "Deposit",
"IsReal": true,
"UpdateTimeUtc": "2023-12-05 22:00:09:324",
"Reason": "Dealer",
"CloseTime": "2023-12-05 11:21:48:158",
"Currency": "USD",
"IsIncludedToSessionPnL": false,
"Node": "node1",
"Platform": "Mt5"
},
{
"Deal": 33166,
"Timestamp": "2023-12-04 00:00:00:000",
"TimeMsc": "2023-12-04 14:55:24:424",
"Login": 10001,
"AccountGroup": "demo",
"Action": "BONUS",
"Profit": 10,
"ProfitInUsd": 10,
"ClientCommissionInUsd": 0,
"BrokerCommissionInUsd": 0,
"Comment": "Credit bonus",
"IsReal": true,
"UpdateTimeUtc": "2023-12-04 22:00:06:534",
"Reason": "Dealer",
"CloseTime": "2023-12-04 14:55:24:424",
"Currency": "USD",
"IsIncludedToSessionPnL": false,
"Node": "node1",
"Platform": "Mt5"
},
{
"Deal": 33165,
"Timestamp": "2023-12-04 00:00:00:000",
"TimeMsc": "2023-12-04 14:55:24:388",
"Login": 10001,
"AccountGroup": "demo",
"Action": "BALANCE",
"Profit": 5000,
"ProfitInUsd": 5000,
"ClientCommissionInUsd": 0,
"BrokerCommissionInUsd": 0,
"Comment": "Deposit",
"IsReal": true,
"UpdateTimeUtc": "2023-12-04 22:00:06:534",
"Reason": "Dealer",
"CloseTime": "2023-12-04 14:55:24:388",
"Currency": "USD",
"IsIncludedToSessionPnL": false,
"Node": "node2",
"Platform": "Mt5"
}
],
"PageSize": 15,
"PageNum": 1,
"TotalRecords": 153
},
"RequestId": "11bc135c-a4eb-45a9-9f98-822c1ba0830c",
"Errors": [],
"ResponseMaster": "ResponseAccountsBalanceHistory"
}