Skip to main content

RequestTradeSessionSymbolProfitHistory

Get the PnL on specified symbol of the current trade session with specified filter and with division by components: trade reasons, accounts groups, symbols groups

Request format

{
"DealerSide": false,
"Symbol": "EURUSD",
"CollectSuffixes": true,
"Reasons": [
"Robot",
"Client"
],
"AccountsGroups": [
"real",
"demo"
],
"Countries": [
"Russia",
"USA"
],
"Nodes": [
],
"RequestId": "394cfa30-015d-4a02-971f-03b6c2ce59c7",
"RequestName": "RequestTradeSessionSymbolProfitHistory"
}

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
SymbolSpecified symbol
CollectSuffixesInclude all symbol’s contracts and symbols with identical descriptions in the result
ReasonsFilter by terminal
AccountsGroupsFilter by account groups
CountriesFilter by countries
RequestNameType of request

Response ResponseTradeSessionSymbolProfitHistory

{
"Result": [
{
"Timestamp": "2018-03-22 10:03:00:000",
"SessionProfitInUsd": 12349343.18
},
{
"Timestamp": "2018-03-22 12:03:00:000",
"SessionProfitInUsd": -1047827.63
}
],
"Errors": [
],
"RequestId": "94662f0e-6d1f-4c6b-8ee9-36272fb86adc",
"ResponseMaster": "ResponseTradeSessionSymbolProfitHistory"
}