Skip to main content

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:

NameDescription
FromHistory start date and time
ToDate and time of the end of history
AccountIdsAccounts to aggregate
AgentsAgents of accounts to aggregate
EmailsEmails of accounts to aggregate
CountriesCountries of accounts to aggregate
AccountsGroupsAccounts Groups of accounts to aggregate
IpsIPs of accounts to aggregate
IdsIDs of accounts to aggregate
CidsCIDs of accounts to aggregate
FullNamesFull names of accounts to aggregate
PageSizeNumber of entries per page
PageNumPage number (first page: 1)
NodesList of nodes that participate in the request. If the list is empty, then all available nodes are used.
RequestIdUnique request GUID
RequestNameRequest 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"
}