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:
| Name | Description |
|---|---|
| RequestId | Unique GUID request identifier |
| Nodes | List of nodes included in the request. If empty, all available nodes are used. |
| DealerSide | Invert profit to view from dealer’s perspective |
| Symbol | Specified symbol |
| CollectSuffixes | Include all symbol’s contracts and symbols with identical descriptions in the result |
| Reasons | Filter by terminal |
| AccountsGroups | Filter by account groups |
| Countries | Filter by countries |
| RequestName | Type 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"
}