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:
| Name | Description |
|---|---|
| RequestId | Unique request GUID |
| Nodes | One node is indicated on which the account is registered |
| Login | Login by which the history is needed |
| 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 |
| RequestName | Request type |
| PageSize | Number of records per page |
| PageNum | Page 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"
}