Update command .

PATCH
Endpoint
/commands/{command_id}
Description

Cancel any working commands that are yet to be executed on an account. I.e. command in the working state.

Request example
{
    "status":"cancelled"
}
Response example
{
    "result": "success",
    "status": 200,
    "data": {
        "id": 915073839,
        "created_at": "2025-04-28T13:18:22Z",
        "updated_at": "2025-04-28T13:18:33Z",
        "account_id": 1242495,
        "application": "mt5",
        "group": "user",
        "event": null,
        "event_id": null,
        "copier_id": null,
        "lead_id": null,
        "command": "open",
        "status": "cancelled",
        "retry_rate": "millisecond",
        "result": "success",
        "mt_error": null,
        "symbol": "EURUSD",
        "open_price": 1.1355,
        "lots": 0.01,
        "type": "buy",
        "stop_loss": 0,
        "take_profit": 0,
        "comment": null,
        "magic": null,
        "command_duration": null,
        "broker_duration": null,
        "total_duration": null
    }
}

Parameters

Field Required Accepted Description
status no cancelled Cancel a command that is still processable
Fail codes
Code Status Description
command_can_not_be_cancelled 422 The command is either complete, abandoned or cancelled

Stay in the loop.

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