/commands
Create modify command allows you to make a modification to a trade on any account on the platform. Including the pending price, stop loss and take profit.
To create a command you must target a full account with the desired parameters.
{
"account_id":{account_id},
"command":"modify_take_profit",
"type":"buy",
"symbol":"EURUSD",
"modify_price":1.13550,
"by":"magic",
"trade_id":1213753146
}
{
"result": "success",
"status": 200,
"data": {
"id": 915067825,
"created_at": "2025-04-28T13:14:05Z",
"updated_at": "2025-04-28T13:14:05Z",
"account_id": 1242495,
"application": "mt5",
"group": "user",
"event": null,
"event_id": null,
"copier_id": null,
"lead_id": null,
"command": "modify_take_profit",
"status": "working",
"retry_rate": "second",
"result": null,
"mt_error": null,
"by": "magic",
"trade_id": 1213753146,
"modify_price": 1.1355,
"command_duration": null,
"broker_duration": null,
"total_duration": null
}
}
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 |
Value | Description |
---|---|
modify_stop_loss | Modify stop loss |
modify_take_profit | Modify take profit |
modify_pending_price | Modify pending order price |
modify_price | New price |
Sign up to our newsletter to keep up-to-date.