Skip to main content

RequestTradeSessionBalanceOperationsSummary

Request for statistics summary on withdrawals-deposits in the current session with a breakdown into account groups

Request format

Request format:

{
"BalanceOperations" : [
"CREDIT"
],
"AccountsGroups": [
"demo-stand-usd",
"demo-real-eur"
],
"Countries": [
"Russia",
"Indonesia"
],
"Nodes": [
Node1
],
"RequestId": "bb0c322b-5b74-4df9-bd83-6530e3aa4c90",
"RequestName": "RequestTradeSessionBalanceOperationsSummary"
}

Request parameters:

NameDescription
BalanceOperationsList of balance operation types to filter. If empty, all types are included.
AccountsGroupsList of account groups for which statistics are requested. If empty, all groups are included.
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 BalanceOperations : int  
{  
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
}

Response ResponseTradeSessionBalanceOperationsSummary

{
"Result": {
"Deposits": {
"Count": 10,
"AmountInUsdSummary": 50000.0,
"Operations": [{
"Node": "Second",
"Platform": "Mt4",
"TicketType": "BalanceOrder",
"TicketId": 34340455,
"Login": 630190,
"Group": "demoforex",
"Country": "Romania",
"Currency": "USD",
"BalanceType": "BALANCE",
"Time": "2019-08-10 01:01:39:000",
"Amount": 5000.0,
"AmountInUsd": 5000.0,
"Comment": "Deposit"
}, {
"Node": "Second",
"Platform": "Mt4",
"TicketType": "BalanceOrder",
"TicketId": 34340456,
"Login": 630191,
"Group": "demoforex",
"Country": "Romania",
"Currency": "USD",
"BalanceType": "BALANCE",
"Time": "2019-08-10 01:09:50:000",
"Amount": 5000.0,
"AmountInUsd": 5000.0,
"Comment": "Deposit"
}, {
"Node": "Second",
"Platform": "Mt4",
"TicketType": "BalanceOrder",
"TicketId": 34340458,
"Login": 630202,
"Group": "demoforex",
"Country": "South Africa",
"Currency": "USD",
"BalanceType": "BALANCE",
"Time": "2019-08-10 02:10:52:000",
"Amount": 5000.0,
"AmountInUsd": 5000.0,
"Comment": "Deposit"
}, {
"Node": "Second",
"Platform": "Mt4",
"TicketType": "BalanceOrder",
"TicketId": 34340468,
"Login": 630203,
"Group": "demoforex",
"Country": "South Africa",
"Currency": "USD",
"BalanceType": "BALANCE",
"Time": "2019-08-10 05:51:38:000",
"Amount": 5000.0,
"AmountInUsd": 5000.0,
"Comment": "Deposit"
}, {
"Node": "Second",
"Platform": "Mt4",
"TicketType": "BalanceOrder",
"TicketId": 34340474,
"Login": 630204,
"Group": "demoforex",
"Country": "Korea",
"Currency": "USD",
"BalanceType": "BALANCE",
"Time": "2019-08-10 07:08:16:000",
"Amount": 5000.0,
"AmountInUsd": 5000.0,
"Comment": "Deposit"
}, {
"Node": "Second",
"Platform": "Mt4",
"TicketType": "BalanceOrder",
"TicketId": 34340477,
"Login": 630205,
"Group": "demoforex",
"Country": "Russia",
"Currency": "USD",
"BalanceType": "BALANCE",
"Time": "2019-08-10 08:16:45:000",
"Amount": 5000.0,
"AmountInUsd": 5000.0,
"Comment": "Deposit"
}, {
"Node": "Second",
"Platform": "Mt4",
"TicketType": "BalanceOrder",
"TicketId": 34340478,
"Login": 630206,
"Group": "demoforex",
"Country": "Algeria",
"Currency": "USD",
"BalanceType": "BALANCE",
"Time": "2019-08-10 08:28:32:000",
"Amount": 5000.0,
"AmountInUsd": 5000.0,
"Comment": "Deposit"
}]
},
"Withdraws": {
"Count": 0,
"AmountInUsdSummary": 0.0,
"Operations": []
}
},
"RequestId": "23da5725-b2ef-4679-905a-4569ed0ea1aa",
"Errors": [],
"ResponseMaster": "ResponseBalanceOperationsTradeSession"
}

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

The following structure is returned in Result:

public class DtoBalanceOperationsTotal : IEntity
{
public DtoBalanceOperationItem Deposits { get; set; } - вводы
public DtoBalanceOperationItem Withdraws { get; set; } - выводы

}

public class DtoBalanceOperationItem
{
public int Count { get; set; } - количество операций
public decimal AmountInUsdSummary { get; set; } - суммарный объем операций в долларах

public IEnumerable<BalanceOperation> Operations { get; set; } - список балансовых операций

}

Balance transaction:

public class BalanceOperation: INodeInfoEntity
{
public string Node { get; set; }
public Platform Platform { get; set; }

public TicketTypes TicketType { get; set; }
public ulong TicketId { get; set; }
public ulong Login { get; set; }
public string Group { get; set; }
public string Country { get; set; }
public string Currency { get; set; }
public BalanceOperations BalanceType { get; set; }
public DateTime Time { get; set; }
public decimal Amount { get; set; }
public decimal AmountInUsd { get; set; }
public string Comment { get; set; }
}