Logo

    ORDER_INFO

    Description

    Get the status of a pending or opened order using .

    Important

    All JSON commands you send to MetaSocket should be in a single line format similar to the examples below. Additionally, example replies in this page are presented in a "beautified" format for presentation purposes. Actual replies are always returned in a single line.

    Example

    {"MSG": "ORDER_INFO","TICKET": 51544405}

    Reply

    {
    "MSG": "ORDER_INFO",
    "OPENED": [
    {
    "TICKET": 51544405,
    "OPEN_TIME": "2025.09.18 15:28:59.626",
    "TIME_UPDATE": "2025.09.18 15:28:59.626",
    "TYPE": "ORDER_TYPE_BUY",
    "MAGIC": 12345,
    "IDENTIFIER": 51544405,
    "REASON": 3,
    "VOLUME": 0.1,
    "PRICE_OPEN": 1.1819,
    "SL": 1.095,
    "TP": 1.205,
    "PRICE_CURRENT": 1.18067,
    "SWAP": 0,
    "PROFIT": -12.3,
    "SYMBOL": "EURUSD.s",
    "COMMENT": "Buy market order",
    "EXTERNAL_ID": null,
    "CHANGE": 0
    }
    ],
    "PENDING": [],
    "ERROR_ID": 0,
    "ERROR_DESCRIPTION": "The operation completed successfully"
    }