Skip to main content

RequestAccountsBalanceOperationsTradeSession

Request for a list of accounts for 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": "RequestAccountsBalanceOperationsTradeSession"
}

Request parameters:

NameDescription
BalanceOperationsList of balance operation types to filter (enumeration defined below). If empty, all types are included.
PageSizeNumber of records per page
PageNumPage number
TypeOperationsBalanceOperationsFilter enumeration (defined below) – filter for which operation types to include in response. If not specified, the full list is returned.
AccountsGroupsList of account groups
CountriesList of countries
RequestIdUnique GUID request identifier
NodesList of nodes included in the request. If empty, all available nodes are used.
RequestNameType 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 ResponseAccountsBalanceOperationsTradeSession

{
"Result": {
"Summary": {
"Accounts": 316,
"Lots": 135.88,
"EquitiesInUsd": 3714456.53,
"UnrealizedProfitInUsd": -7352.24,
"TotalProfitInUsd": -17131.42,
"TotalSessionProfitInUsd": -17132.62,
"TotalSessionRealizedProfitInUsd": -9338.01,
"TotalSessionBalanceProfitInUsd": 3731576.85
},
"Page": [{
"Name": "Алла",
"EnableReadOnly": false,
"IsAccountBlocked": false,
"City": "",
"RegDate": "2020-06-17 10:05:32:000",
"Email": "01@gmail.com",
"Phone": "3550565",
"NeedLeverage": 0,
"IsStopoutReachable": false,
"Balance": 10000.0,
"Credit": 0.0,
"Margin": 0.0,
"MarginLevel": 0.0,
"Leverage": 1000,
"Drawdown": 0.0,
"RealizedProfit": 0.0,
"NetVolumeInUsd": 0.0,
"NetVolumeInLots": 0.0,
"Node": "Second",
"Platform": "Mt4",
"Login": 704576,
"Group": "demoDirect",
"Country": "UGANDA",
"Currency": "USD",
"Equity": 10000.0,
"ActualLeverage": 0.0,
"EquityInUsd": 10000.0,
"Lots": 0.0,
"UnrealizedProfitInUsd": 0.0,
"TotalProfit": 0.0,
"TotalProfitInUsd": 0.0,
"TotalSwaps": 0.0,
"TotalSwapsInUsd": 0.0,
"UnrealizedProfit": 0.0,
"SessionProfit": 0.0,
"SessionProfitInUsd": 0.0,
"SessionRealizedProfit": 0.0,
"SessionRealizedProfitInUsd": 0.0,
"SessionOpenedVolumeInLots": 0.0,
"SessionOpenedVolumeInUsd": 0.0,
"SessionClosedVolumeInLots": 0.0,
"SessionClosedVolumeInUsd": 0.0,
"SessionBalanceProfitInUsd": 10000.0,
"SessionTotalVolumeInLots": 0.0,
"SessionTotalVolumeInUsd": 0.0,
"IsSuspicious": false,
"SuspiciousComment": "",
"IsExcluded": false,
"IsABook": false,
"IsMiniAccount": false
}, {
"Name": "Анатольевич",
"EnableReadOnly": false,
"IsAccountBlocked": false,
"City": "",
"RegDate": "2020-06-17 10:05:36:000",
"Email": "b@mail.ru",
"Phone": "027",
"NeedLeverage": 0,
"IsStopoutReachable": false,
"Balance": 5000.0,
"Credit": 0.0,
"Margin": 0.0,
"MarginLevel": 0.0,
"Leverage": 200,
"Drawdown": 0.0,
"RealizedProfit": 0.0,
"NetVolumeInUsd": 0.0,
"NetVolumeInLots": 0.0,
"Node": "Second",
"Platform": "Mt4",
"Login": 704578,
"Group": "demoNDDpro",
"Country": "UGANDA",
"Currency": "USD",
"Equity": 5000.0,
"ActualLeverage": 0.0,
"EquityInUsd": 5000.0,
"Lots": 0.0,
"UnrealizedProfitInUsd": 0.0,
"TotalProfit": 0.0,
"TotalProfitInUsd": 0.0,
"TotalSwaps": 0.0,
"TotalSwapsInUsd": 0.0,
"UnrealizedProfit": 0.0,
"SessionProfit": 0.0,
"SessionProfitInUsd": 0.0,
"SessionRealizedProfit": 0.0,
"SessionRealizedProfitInUsd": 0.0,
"SessionOpenedVolumeInLots": 0.0,
"SessionOpenedVolumeInUsd": 0.0,
"SessionClosedVolumeInLots": 0.0,
"SessionClosedVolumeInUsd": 0.0,
"SessionBalanceProfitInUsd": 5000.0,
"SessionTotalVolumeInLots": 0.0,
"SessionTotalVolumeInUsd": 0.0,
"IsSuspicious": false,
"SuspiciousComment": "",
"IsExcluded": false,
"IsABook": false,
"IsMiniAccount": false
}, ],
"PageSize": 15,
"PageNum": 1,
"TotalRecords": 316
},
"RequestId": "078bac25-7958-4191-9378-51ca80c68cf0",
"Errors": [],
"ResponseMaster": "ResponseAccountsBalanceOperationsTradeSession"
}

Errors or an empty list or a list of responses of the ResponseNodeError nodes