/commands
Create open command allows you to make a open a trade on any account on the platform.
To create a command you must target a full account with the desired parameters.
{
    "account_id":{account_id},
    "command":"open",
    "type":"buy",
    "symbol":"EURUSD",
    "open_price":1.13550,
    "lots":0.01,
    "magic": 123,
    "comment":"nonce"
}
{
    "result": "success",
    "status": 200,
    "data": {
        "id": 914926923,
        "created_at": "2025-04-28T10:16:41Z",
        "updated_at": "2025-04-28T10:16:41Z",
        "account_id": 1242495,
        "application": "mt5",
        "group": "user",
        "event": null,
        "event_id": null,
        "copier_id": null,
        "lead_id": null,
        "command": "open",
        "status": "working",
        "retry_rate": "millisecond",
        "result": null,
        "mt_error": null,
        "symbol": "EURUSD",
        "open_price": 1.1355,
        "lots": 0.01,
        "type": "buy",
        "stop_loss": 0,
        "take_profit": 0,
        "comment": "test",
        "magic": 123,
        "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) | 
| type | yes | string | Trade type | 
| symbol | yes | string | Broker symbol name | 
| lots | yes | double | The real address found in the srv file | 
| open_price | yes | double | Open price for orders and preferred for market trades | 
| slippage | yes | double | Acceptable variance from open price in pips | 
| stop_loss | no | double | Stop loss value if required | 
| take_profit | no | double | Take profit value if required | 
| magic | no | integer | Unique number to identify the trade | 
| comment | no | string | A string for the MT comments column | 
| Value | Description | 
|---|---|
| open | Open a new trade | 
Sign up to our newsletter to keep up-to-date.