Skip to main content

RequestActiveOrdersSummary

Request for summary information of the list of all open positions (without pending orders)

Request format

{

"OrderStatus": "Unrealized",
"Search": "usa",
"Symbols": [
"EURUSD"
],
"SymbolsGroups": [

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

],
"Countries": [

],
"Nodes": [

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

Request parameters:

NameDescription
RequestIdUnique request GUID
SearchOrder filter, works for the fields Order, Login, Group, Country, Currency, Symbol, Comment
SymbolsList of symbols
SymbolsGroupsGroups of symbols
ReasonsTradeReason List
AccountsGroupsList of account groups
CountriesList of countries
OrderStatusOrder status (by default OrderStatus.Unrealized)
NodesList of nodes that participate in the request. If the list is empty, then all available nodes are called.
RequestNameRequest type

Response ResponseActiveOrdersSummary

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

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

ProfitUsd field contains profit in USD AT THE RATE AT THE TIME OF REQUEST

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