Skip to main content

RequestOrderProfitByRates

Request to get the status of the specified order

Request format

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

Request parameters:

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

Respone ResponseOrderProfitByRates

{
"Result": [
{
"Node": "Second",
"Platform": "Mt4",
"Result": [
{
"Timestamp": "2018-10-01 01:00:05:000",
"ProfitInUsd": -46.0,
"Symbol": "EURUSD",
"Bid": 1.16089,
"Ask": 1.16114,
"Spread": 1.1
},
{
"Timestamp": "2018-10-01 00:50:07:000",
"ProfitInUsd": -58.0,
"Symbol": "EURUSD",
"Bid": 1.16083,
"Ask": 1.16125,
"Spread": 4.2
},
],
"ResponseNode": "ResponseNodeOrderProfitByRates"
}
],
"RequestId": "a36801f3-91f3-495c-bdce-3aff24e4bff2",
"ResponseMaster": "ResponseOrderProfitByRates"
}

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