Skip to main content

RequestTradeSessionProfit

Get the profit of the current trade session with division by components: trade reasons, accounts groups, symbols groups

Request format:

{
"Nodes": [],
"DealerSide":false,
"RequestId": "01a3a577-4edd-443e-acdd-95dc42b537fe",
"RequestName": "RequestTradeSessionProfit"
}

Request parameters:

NameDescription
RequestIdUnique GUID request identifier
NodesList of nodes included in the request. If empty, all available nodes are used.
DealerSideInvert profit to view from dealer’s perspective
RequestNameType of request

Response ResponseTradeSessionProfit

{
"Result": {
"TotalProfit": 8192372.49,
"ProfitBySymbolsGroups": [
{
"Category": "Forex",
"Profit": 4773112.29
},
{
"Category": "Classic",
"Profit": 484.97
},
{
"Category": "CFD",
"Profit": 292.28
},
{
"Category": "Cryptopairs",
"Profit": -898060.37
}
],
"ProfitByAccountsGroups": [
{
"Category": "demoforex",
"Profit": 4790766.1
},
{
"Category": "demoClassic",
"Profit": -530.64
},
{
"Category": "demoDirect",
"Profit": -166460.94
}
],
"ProfitByTradeReasons": [
{
"Category": "Client",
"Profit": 8170507.68
},
{
"Category": "MobileDevice",
"Profit": 62882.92
},
{
"Category": "Robot",
"Profit": 25410.35
},
{
"Category": "WebTerminal",
"Profit": -66428.46
}
]
},
"Errors": [ ],
"RequestId": "7435b960-5df3-4099-9fa5-778aeaa183c0",
"ResponseMaster": "ResponseTradeSessionProfit"
}