Skip to main content

RequestOrder

Request to get the status of the specified order

Request format

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

Request parameters:

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

Response ResponseOrder

{
"Result": [
{
"Node": "Node1",
"Platform": "Mt4",
"Result": {
"Node": "Node1",
"Platform": "Mt4",
"Type": "OrderRecord",
"TicketId": 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-06-10 05:03:53:636",
"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
},
"ResponseNode": "ResponseNodeOrder"
}
],
"RequestId": "1c214839-02fc-4bed-83c3-4f8cff7575a5",
"ResponseMaster": "ResponseOrder"
}

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