Endpoint
/commands/{command_id}
Description
Returns an individual command.
Response
{
"result": "success",
"status": 200,
"data": {
"id": 914925107,
"created_at": "2025-04-28T10:11:50Z",
"updated_at": "2025-04-28T10:11:50Z",
"account_id": 1241451,
"application": "mt5",
"group": "trade",
"event": "position_close",
"event_id": 1786890952,
"copier_id": 1311250,
"lead_id": 1242495,
"command": "close_full",
"status": "abandoned",
"retry_rate": "millisecond",
"result": "not_found",
"mt_error": null,
"by": "magic",
"trade_id": 1213554740,
"command_duration": null,
"broker_duration": null,
"total_duration": null
}
}
Attributes
Group
Value |
Description |
trade |
Created by trade event for a copier |
user |
Created by user |
copier |
Created by copier event |
account |
Created by account event |
Status
Value |
Description |
complete |
Command has been completed |
working |
Command has not been completed |
paused |
Command paused |
abandoned |
Command abandoned |
cancelled |
Command cancelled by user |
Result
Value |
Description |
success |
Completed successfully |
mt_error |
MT4 error code returned from broker |
not_found |
Trade not found by ID |
trade_closed |
Trade already closed |
cancelled_by_copier |
Trade cancelled by the copier |
cancelled_by_user |
Trade cancelled by the user |
trade_exists |
Trade already exists |
symbol_not_found |
Could not match symbol |
out_of_range |
Open price beyond slippage setting |
trade_not_allowed |
Trade not allowed by broker |
open_volume_less_than_minimum |
Lot size less than broker minimum |
close_volume_less_than_minimum |
Close lot size less than broker minimum |
no_valid_filling_mode |
MT5 error for no valid filling mode |
stop_loss_missing |
Stop loss required to open trade |
invalid_risk_configuration |
Bad risk configuration on copier |
Command
Value |
Description |
open |
Open trade command |
close_full |
Close trade fully command |
close_partial |
Close trade partially command |
modify_stop_loss |
Modify stop loss command |
modify_take_profit |
Modify take profit command |
modify_pending_price |
Modify pending order price command |