Logo

    ORDER_MODIFY

    Description

    Modify Stop Loss(SL) or Take Profit(TP) of open orders

    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_MODIFY","TICKET": 51550587,"SL": 1.094,"TP": 0}

    Reply

    {
    "MSG": "ORDER_MODIFY",
    "TICKET": 51550587,
    "TYPE": "TP_AND_SL_UPDATED",
    "RETCODE": 10009,
    "DEAL": 0,
    "ORDER": 0,
    "VOLUME": 0,
    "PRICE": 0,
    "BID": 0,
    "ASK": 0,
    "REQUEST_ID": 268199110,
    "RETCODE_EXTERNAL": 0,
    "ERROR_ID": 0,
    "ERROR_DESCRIPTION": "The operation completed successfully"
    }