Create modify command .

POST

Request

/command

Body

{
    "account_id": 43809,
    "command": "modify_pending_price",
    "by": "magic",
    "trade_id": 2,
    "modify_price": 1.01
}

Response

{
    "result": "success",
    "status": 200,
    "code": "SUCCESS",
    "message": "Success",
    "data": {
        "command": {
            "id": 37298741,
            "created_at": "2020-04-17 12:26:06",
            "updated_at": "2020-04-17 12:26:06",
            "reason": "user",
            "account_id": 43809,
            "command": "modify_pending_price",
            "status": "working",
            "priority": 2,
            "result": null,
            "mt_error": null,
            "by": "magic",
            "trade_id": 2,
            "modify_price": 1.01
        }
    }
}

Attributes

Field Required Accepted Description
account_id yes integer Account ID
command yes string A valid command (see below)
by yes ticket or magic Target trade by ticket number or magic ID
trade_id yes integer The ticket number or magic ID
modify_price yes double The modify price for the chosen command

command

Value Description
modify_stop_loss Modify stop loss
modify_take_profit Modify take profit
modify_pending_price Modify pending order price

Stay in the loop..

Sign up to our newsletter to keep up-to-date.