Tradesync
Browse API reference
API reference

Update command

PATCHhttps://api.tradesync.com/commands/{command_id}

Request cancellation of a command. Cancellation cannot undo a trade that has already executed.

Last updated

Path parameters

command_idType: integer
Command id returned by the corresponding list endpoint

Request body

statusType: string
Set the command status to cancelled and request its removal from the execution queueAccepted values / limits: cancelled

Response example

See response field definitions for field types and conditional fields.

{
    "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",
        "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,
        "error": null
    }
}