RequestBalanceOperationsTradeSession
Request for a list of balance transactions with top deposits and withdrawals for the current session, taking into account the specified filter
Request format
{
"TypeOperations": "Deposits",
"BalanceOperations" : [
"BALANCE"
],
"AccountsGroups": [
"demo-stand-usd",
"demo-real-eur"
],
"Countries": [
"Russia",
"Indonesia"
],
"Nodes": [
Node1
],
"PageSize": 15,
"PageNum": 1,
"RequestId": "bb0c322b-5b74-4df9-bd83-6530e3aa4c90",
"RequestName": "RequestBalanceOperationsTradeSession"
}
Request parameters:
| Name | Description |
|---|---|
| BalanceOperations | List of balance operation types to filter (enumeration defined below). If empty, all types are included. |
| PageSize | Number of records per page |
| PageNum | Page number |
| TypeOperations | BalanceOperationsFilter enumeration (defined below) – filter for which operation types to include in response. If not specified, the full list is returned. |
| AccountsGroups | List of account groups |
| Countries | List of countries |
| RequestId | Unique GUID request identifier |
| Nodes | List of nodes included in the request. If empty, all available nodes are used. |
| RequestName | Type of request |
public enum BalanceOperationsFilter
{
All,
Deposits,
Withdraws
}
public enum BalanceOperations
{
BALANCE = 1, // deposit operation
CHARGE = 2, // additional charges
CORRECTION = 3, // correction deals
BONUS = 4, // bonus
COMMISSION = 5, // commission
COMMISSION_DAILY = 6, // daily commission
COMMISSION_MONTHLY = 7, // monthly commission
AGENT_DAILY = 8, // daily agent commission
AGENT_MONTHLY = 9, // monthly agent commission
INTERESTRATE = 10, // interest rate charges
DIVIDEND = 11, // dividend
DIVIDEND_FRANKED = 12, // franked dividend
TAX = 13, // taxes
AGENT = 14, // instant agent commission
SO_COMPENSATION = 15, // negative balance compensation after stop-out
CREDIT = 16,
DIVIDEND_FOR_INDEX = 17, // dividend for index
INNER_TRANSFER = 18,
CONTRACT_EXPIRATION = 19,
SO_COMPENSATION_CREDIT = 20,
}
Response ResponseBalanceOperationsTradeSession
{
"Result": {
"Summary": {
"Count": 207,
"AmountInUsdSummary": 8490676.3
},
"Page": [{
"Node": "Node1",
"Platform": "Mt4",
"Deal": 34309,
"Timestamp": "2024-01-16 00:00:00:000",
"TimeMsc": "2024-01-16 11:19:00:441",
"Login": 3004133,
"AccountGroup": "real\\demoDirect",
"Action": "BALANCE",
"Profit": 100,
"ProfitInUsd": 100,
"ClientCommissionInUsd": 0,
"BrokerCommissionInUsd": 0,
"Comment": "demo start balance",
"IsReal": true,
"Reason": "Dealer",
"CloseTime": "2020-06-17 00:04:09:000",
"Currency": "USD",
"IsIncludedToSessionPnL": false,
"Country": "IRAN (ISLAMIC REPUBLIC OF)"
}, {
"Node": "Node1",
"Platform": "Mt4",
"Deal": 34312,
"Timestamp": "2024-01-16 00:00:00:000",
"TimeMsc": "2024-01-16 12:24:15:704",
"Login": 3004134,
"AccountGroup": "demoDirect",
"Action": "BALANCE",
"Profit": 250,
"ProfitInUsd": 250,
"ClientCommissionInUsd": 0,
"BrokerCommissionInUsd": 0,
"Comment": "demo start balance",
"IsReal": true,
"UpdateTimeUtc": "0001-01-01 00:00:00:000",
"Reason": "Dealer",
"CloseTime": "2024-01-16 12:24:15:704",
"Currency": "USD",
"IsIncludedToSessionPnL": false,
"Country": "UGANDA"
}],
"PageSize": 15,
"PageNum": 1,
"TotalRecords": 207
},
"RequestId": "078bac25-7958-4191-9378-51ca80c68cf0",
"Errors": [],
"ResponseMaster": "ResponseBalanceOperationsTradeSession"
}
Errors or an empty list or a list of responses of the ResponseNodeError nodes