Skip to main content

RequestPendingOrder

Request for a specified pending order

Request format

{
"TicketId": 10,
"Nodes": [
"Node1"
],
"RequestId": "1c214839-02fc-4bed-83c3-4f8cff7575a5",
"RequestName": "RequestPendingOrder"
}

Request parameters:

NameDescription
RequestIdUnique request GUID
TicketIdID of the requested order
NodesOne node, on which the pending order is located, must be indicated
RequestNameRequest type

Response ResponsePendingOrder from MT4 node

{
"Result": [
{
"Node": "Node1",
"Platform": "Mt4",
"Result": {
"Node": "Node1",
"Platform": "Mt4",
"Type": "Mt4Order",
"TicketType":"PendingOrder",
"TicketId": 10,
"Login": 100,
"Group": "AllgroupTEST",
"Country": "Russia",
"Currency": "USD",
"Symbol": "EURUSD",
"Digits": 5,
"Status": "Pending",
"Cmd": "SellLimit",
"State": "OpenNormal",
"Activation": "None",
"Reason": "Client",
"Volume": 1.0,
"VolumeInUsd": 117065.0,
"OpenTime": "2018-08-30 01:19:02:000",
"OpenPrice": 1.17245,
"Commission": 0.0,
"CommissionAgent": 0.0,
"Swaps": 0.0,
"ClosePrice": 1.17074,
"Profit": 0.0,
"ProfitWithTaxesUsd": 0.0,
"Taxes": 0.0,
"Comment": "",
"Timestamp": "2018-08-30 01:19:02:000",
"OpenPriceFromMarketInPoints": 17.1
},
"ResponseNode": "ResponseNodePendingOrder"
}
],
"RequestId": "a36801f3-91f3-495c-bdce-3aff24e4bff2",
"ResponseMaster": "ResponsePendingOrder"
}

ResponsePendingOrder from MT5 node

 {
"Result": [
{
"Node": "Node1",
"Platform": "Mt5",
"Result": {
"Node": "Node1",
"Platform": "Mt5",
"Type": "Mt5Order",
"TicketType":"PendingOrder",
"TicketId": 10,
"ExternalID": "",
"Login": 100,
"Dealer": 0,
"Symbol": "EURUSD",
"ContractSize": 100000.0,
"State": "Placed",
"Reason": "Client",
"TimeSetup": "2018-08-27 21:13:58:000",
"TimeExpiration": "1970-01-01 00:00:00:000", - nullable
"TimeDone": "1970-01-01 00:00:00:000", - nullable
"OrderType": "Buy Limit",
"TypeFill": "Return In Queue",
"TypeTime": "Good Till Cancel",
"PriceOrder": 1.16185,
"PriceTrigger": 0.0,
"PriceCurrent": 1.17079,
"PriceSL": 0.0,
"PriceTP": 0.0,
"VolumeInitial": 0.2,
"VolumeCurrent": 0.2,
"ExpertID": 0,
"PositionID": 0,
"Comment": "",
"ActivationMode": "None",
"ActivationTime": "1970-01-01 00:00:00:000", - nullable
"ActivationPrice": 0.0,
"ActivationFlags": "No flags",
"TimeSetupMsc": "2018-08-27 21:13:58:174",
"TimeDoneMsc": "1970-01-01 00:00:00:000", - nullable
"RateMargin": 1.16185,
"PositionByID": 0,
"ModificationFlags": "No flags"
},
"ResponseNode": "ResponseNodePendingOrder"
}
],
"RequestId": "a36801f3-91f3-495c-bdce-3aff24e4bff2",
"ResponseMaster": "ResponsePendingOrder"
}

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