RequestTradeSessionCurrentProfit
Get the PnL of the current trade session with specified filter and with division by components: trade reasons, accounts groups, symbols groups
Request format
{
"DealerSide": false,
"Book" : "BBook",
"SymbolsGroups": [
],
"Reasons": [
"Robot",
"Client"
],
"AccountsGroups": [
"real",
"demo"
],
"Countries": [
"Russia",
"USA"
],
"Nodes": [
],
"RequestId": "394cfa30-015d-4a02-971f-03b6c2ce59c7",
"RequestName": "RequestTradeSessionCurrentProfit"
}
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 |
| Book | Type of book used to build the request response (Possible values: AllBooks, ABook, BBook). Default is AllBooks. |
| SymbolsGroups | Filter by symbol groups |
| Reasons | Filter by terminal |
| AccountsGroups | Filter by account groups |
| Countries | Filter by countries |
| RequestName | Type of request |
Response ResponseTradeSessionCurrentProfit
{
"Result":
{
"Timestamp": "2018-03-22 10:03:00:000",
"SessionProfitInUsd": 12349343.18
},
"Errors": [
],
"RequestId": "94662f0e-6d1f-4c6b-8ee9-36272fb86adc",
"ResponseMaster": "ResponseTradeSessionCurrentProfit"
}
Response ResponseTradeSessionCurrentProfit
{
"Result":
{
"Timestamp": "2018-03-22 10:03:00:000",
"SessionProfitInUsd": 12349343.18
},
"Errors": [
],
"RequestId": "94662f0e-6d1f-4c6b-8ee9-36272fb86adc",
"ResponseMaster": "ResponseTradeSessionCurrentProfit"
}