Skip to main content

RequestAccountsBalanceHistory

Query the history of balance 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,
"RequestId": "15bc135c-a4eb-45a9-9f98-822c1ba0830c",
"RequestName": "RequestAccountsBalanceHistory"
}

Request parameters:

NameDescription
RequestIdUnique request GUID
NodesOne node is indicated on which the account is registered
LoginLogin by which the history is needed
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
RequestNameRequest type
PageSizeNumber of records per page
PageNumPage number (first page - 1)

ResponseAccountsBalanceHistory response

{
"Result": {
"Page": [
{
"Deal": 33999,
"Timestamp": "2023-12-21 00:00:00:000",
"TimeMsc": "2023-12-21 12:37:25:202",
"Login": 10001,
"AccountGroup": "group1",
"Action": "BALANCE",
"Profit": 5,
"ProfitInUsd": 5,
"ClientCommissionInUsd": 0,
"BrokerCommissionInUsd": 0,
"Comment": "test",
"IsReal": true,
"UpdateTimeUtc": "2023-12-21 22:00:27:266",
"Reason": "Dealer",
"CloseTime": "2023-12-21 12:37:25:202",
"Currency": "USD",
"IsIncludedToSessionPnL": false,
"Node": "node1",
"Platform": "Mt5"
},
{
"Deal": 33998,
"Timestamp": "2023-12-21 00:00:00:000",
"TimeMsc": "2023-12-21 12:02:29:895",
"Login": 10001,
"AccountGroup": "group1",
"Action": "CORRECTION",
"Profit": 123,
"ProfitInUsd": 123,
"ClientCommissionInUsd": 0,
"BrokerCommissionInUsd": 0,
"Comment": "Correction",
"IsReal": true,
"UpdateTimeUtc": "2023-12-21 22:00:27:266",
"Reason": "Dealer",
"CloseTime": "2023-12-21 12:02:29:895",
"Currency": "USD",
"IsIncludedToSessionPnL": true,
"Node": "node1",
"Platform": "Mt5"
}
],
"PageSize": 15,
"PageNum": 1,
"TotalRecords": 152
},
"RequestId": "15bc135c-a4eb-45a9-9f98-822c1ba0830c",
"Errors": [],
"ResponseMaster": "ResponseAccountsBalanceHistory"
}