Skip to main content

RequestActiveOrders

Request for a list of all open orders

Request format

{
"RequestId": "0f4760f7-a57c-4dfb-8f1f-2b8ccca9d550",
"Search": "usa",
"Symbols": [
"EURUSD"
],
"Reasons": [
"Robot",
"Client"
],
"AccountsGroups": [
"real",
"demo"
],
"Countries": [
"Russia",
"USA"
],
"PageSize": 100,
"PageNum": 1,
"Nodes": [
"node1",
"node2"
],
"RequestName": "RequestActiveOrders"
}

Request parameters:

NameDescription
RequestIdUnique request GUID
SearchOrder filter, works for the fields Order, Login, Group, Country, Currency, Symbol, Comment
SymbolsList of instruments
ReasonsTradeReason List
AccountsGroupsList of account groups
CountriesList of countries
PageSizeNumber of records per page
PageNumPage number (first page - 1)
NodesList of nodes that participate in the request. If the list is empty, then all available nodes are called.
RequestNameRequest type

Response ResponseActiveOrders

{
"Result": {
"Orders": {
"Page": [
{
"Node": "Node2",
"Platform": "Mt4",
"Order": 10,
"Login": 100001,
"Group": "real",
"Country": "Russia",
"Currency": "USD",
"Symbol": "EURUSD",
"Digits": 0,
"Cmd": "Buy",
"State": "OpenNormal",
"Activation": "None",
"Reason": "Client",
"Volume": 0.2,
"OpenTime": "2017-04-12 21:48:32:193",
"OpenPrice": 11.2,
"CloseTime": "0001-01-01 00:00:00:000",
"Expiration": "0001-01-01 00:00:00:000",
"Commission": 0.15,
"CommissionAgent": 0.0,
"Swaps": 1.15,
"Profit": 10.0,
"ProfitWithTaxesUsd": 15.3,
"Taxes": 4.0,
"Timestamp": "0001-01-01 00:00:00:000",
"OpenPriceFromMarketInPoints": -11
},
{
"Node": "Node2",
"Platform": "Mt4",
"Order": 11,
"Login": 100001,
"Group": "real",
"Country": "Russia",
"Currency": "USD",
"Symbol": "EURUSD",
"Digits": 0,
"Cmd": "Buy",
"State": "OpenNormal",
"Activation": "None",
"Reason": "Client",
"Volume": 0.2,
"OpenTime": "2017-04-12 21:49:32:193",
"OpenPrice": 12.2,
"CloseTime": "0001-01-01 00:00:00:000",
"Expiration": "0001-01-01 00:00:00:000",
"Commission": 0.15,
"CommissionAgent": 0.0,
"Swaps": 1.15,
"Profit": 10.0,
"ProfitWithTaxesUsd": 15.3,
"Taxes": 4.0,
"Timestamp": "0001-01-01 00:00:00:000",
"OpenPriceFromMarketInPoints": -12
},

],
"PageSize": 15,
"PageNum": 1,
"TotalRecords": 46
},
},
"Errors": [

],
"RequestId": "36e49ce7-ac9b-400b-9a80-e9f3b934bbc1",
"ResponseMaster": "ResponseActiveOrders"
}

The ProfitWithTaxesUsd field contains the profit in USD AT THE EXCHANGE RATE CURRENT AT THE TIME OF THE REQUEST.

Errors either an empty list or a list of node responses ResponseNodeError