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:
| Name | Description |
|---|---|
| RequestId | Unique request GUID |
| Search | Order filter, works for the fields Order, Login, Group, Country, Currency, Symbol, Comment |
| Symbols | List of symbols |
| SymbolsGroups | Groups of symbols |
| Reasons | TradeReason List |
| AccountsGroups | List of account groups |
| Countries | List of countries |
| OrderStatus | Order status (by default OrderStatus.Unrealized) |
| Nodes | List of nodes that participate in the request. If the list is empty, then all available nodes are called. |
| RequestName | Request 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