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:
| Name | Description |
|---|---|
| RequestId | Unique GUID request identifier |
| Search | Order filter — applies to fields: Order, Login, Group, Country, Currency, Symbol, Comment |
| Symbols | List of symbols |
| SymbolsGroups | List of symbol groups |
| Reasons | List of TradeReason |
| AccountsGroups | List of account groups |
| Countries | List of countries |
| Book | Value from [ABook, BBook, CBook, AllBooks] — determines for which book the result is retrieved |
| Nodes | List of nodes included in the request. If empty, all available nodes are used. |
| RequestName | Type 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