Skip to main content

RequestWidgetTradeSessionSummary

Get general statistics of trading during a trading session for a widget

Request format

{
"Nodes": [],
"DealerSide": true,
"Reasons": [
"Robot",
"Client"
],
"AccountsGroups": [
"real",
"demo"
],
"SymbolsGroups": [
"Crypto",
"Forex"
],
"Countries": [
"Russia",
"USA"
],
"RequestId": "01a3a577-4edd-443e-acdd-95dc42b537fe",
"RequestName": "RequestWidgetTradeSessionSummary"
}

Request parameters:

NameDescription
RequestIdUnique request GUID
DealerSidetrue - display data from the dealer's side (false - from the traders side)
ReasonsTradeReason List
AccountsGroupsList of account groups
SymbolsGroupsList of character groups
CountriesList of countries
NodesList of nodes that participate in the request. If the list is empty, then all available nodes are called.
RequestNameRequest type

Response ResponseTradeSessionSummary

{
"Result": {
"SessionProfitInUsd": -21438.14121,
"SessionNetDepositInUsd": 448103.88,
"SessionUnrealizedProfitInUsd": -48225.21,
"RealizedProfitInUsd": 26787.18,
"SessionRealizedProfitInUsd": 8461.36
},
"RequestId": "01a3a577-4edd-443e-acdd-95dc42b537fe",
"Errors": [],
"ResponseMaster": "ResponseWidgetTradeSessionSummary"
}