GetLastTradeRequests

GetLastTradeRequests - getting status of last trading requests

Example:

{"id": 11, "type":"GetLastTradeRequests", "body": {}}

Request Body Fields: n/a

Responce Type - GetLastTradeRequests.

Responce Body Fields: json object with statuses of trading requests

  • object - id of trade request:

Parameter
Always returned
Type
Description

type

string

trade request type

id

int64

identificator

body

object

empty if request was not executed or result of execution

Parameters of body:

Parameter
Always returned
Type
Description

result

int

result of operation Meta Trader server

ticket

unsigned long long

the ticket of the opened/closed orderMeta Trader Server

price

double

price of order execution, in case of pending, limit, stop orders price is 0

time

int64

time of order execution

Example:

{
    "type": "GetLastTradeRequests",
    "id": 11,
    "body": {
        "11": {
            "type": "CloseOrder",
            "id": 11,
            "body": {
                "result": 10009,
                "ticket": 11798934,
                "price": 1.08663,
                "time": 1688057943899
            }
        }
    }
}

Last updated