Skip to main content

RequestTradeSessionProfitHistory

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": "RequestTradeSessionProfitHistory"
}

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
BookType of book used to build the request response (Possible values: AllBooks, ABook, BBook). Default is AllBooks.
SymbolsGroupsFilter by symbol groups
ReasonsFilter by terminal
AccountsGroupsFilter by account groups
CountriesFilter by countries
RequestNameType of request

Response ResponseTradeSessionProfitHistory

 {
"Result": [
{
"Timestamp": "2018-03-22 00:05:00:000",
"SessionProfitInUsd": -18420.87
},
{
"Timestamp": "2018-03-22 00:10:00:000",
"SessionProfitInUsd": -45097.9
},
{
"Timestamp": "2018-03-22 00:15:00:000",
"SessionProfitInUsd": -44656.24
},
{
"Timestamp": "2018-03-22 00:20:00:000",
"SessionProfitInUsd": -24490.93
},
{
"Timestamp": "2018-03-22 00:25:00:000",
"SessionProfitInUsd": -38848.88
},
{
"Timestamp": "2018-03-22 00:30:00:000",
"SessionProfitInUsd": -70507.24
},
{
"Timestamp": "2018-03-22 00:35:00:000",
"SessionProfitInUsd": -84311.15
},
{
"Timestamp": "2018-03-22 00:40:00:000",
"SessionProfitInUsd": -71852.18
},
{
"Timestamp": "2018-03-22 00:45:00:000",
"SessionProfitInUsd": -46368.54
},
{
"Timestamp": "2018-03-22 00:50:00:000",
"SessionProfitInUsd": -83818.04
},
{
"Timestamp": "2018-03-22 00:55:00:000",
"SessionProfitInUsd": -69963.04
},
{
"Timestamp": "2018-03-22 01:00:00:000",
"SessionProfitInUsd": -170297.64
},
{
"Timestamp": "2018-03-22 01:05:00:000",
"SessionProfitInUsd": -192251.88
},
{
"Timestamp": "2018-03-22 01:10:00:000",
"SessionProfitInUsd": -183265.01
},
{
"Timestamp": "2018-03-22 02:10:00:000",
"SessionProfitInUsd": -18014.31
},
{
"Timestamp": "2018-03-22 02:15:00:000",
"SessionProfitInUsd": -3263.97
},
{
"Timestamp": "2018-03-22 02:20:00:000",
"SessionProfitInUsd": -2928.76
},
{
"Timestamp": "2018-03-22 02:25:00:000",
"SessionProfitInUsd": -94060.26
},

],
"Errors": [

],
"RequestId": "a3f66ced-727e-44de-bcfd-3a95bbe02826",
"ResponseMaster": "ResponseTradeSessionProfitHistory"
}