Skip to main content

RequestTradeSessionRealizedOrdersSummary

Request for summary information of the list of all closed positions for the current session

Request format

{
"Search": "usa",
"Symbols": [
"EURUSD"
],
"SymbolsGroups": [

],
"Reasons": [
"Client"
],
"AccountsGroups": [

],
"Countries": [

],
"Book": "BBook",
"Nodes": [

],
"RequestId": "ef813e4f-850e-4230-9de3-f09f12d9ed3d",
"RequestName": "RequestTradeSessionRealizedOrdersSummary"
}

Request parameters:

NameDescription
RequestIdUnique GUID request identifier
SearchOrder filter — applies to fields: Order, Login, Group, Country, Currency, Symbol, Comment
SymbolsList of symbols
SymbolsGroupsList of symbol groups
ReasonsList of TradeReason
AccountsGroupsList of account groups
CountriesList of countries
BookValue from [ABook, BBook, CBook, AllBooks] — determines for which book the result is retrieved
NodesList of nodes included in the request. If empty, all available nodes are used.
RequestNameType of request

Response ResponseTradeSessionRealizedOrdersSummary

{
"Result": {
"Total": 46,
"Lots": 11.2,
"ProfitUsd": 30.6,
"TotalVolumeInUsd": 1408000.0,
"Accounts": 2
},
"Errors": [

],
"RequestId": "ef813e4f-850e-4230-9de3-f09f12d9ed3d",
"ResponseMaster": "ResponseTradeSessionRealizedOrdersSummary"
}

The ProfitUsd field contains the profit in USD AT THE RATE AT THE MOMENT OF THE REQUEST

Errors or an empty list or a list of responses of the ResponseNodeError nodes