Get all commands .

GET
Endpoint
/commands
Description

Returns a list of all trade command information.

Response
{
    "result": "success",
    "status": 200,
    "meta": {
        "count": 5,
        "limit": 1000,
        "order": "desc",
        "last_id": 914911888
    },
    "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
        },
        {
            "id": 914925106,
            "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": 1786890951,
            "copier_id": 1311250,
            "lead_id": 1242495,
            "command": "close_full",
            "status": "complete",
            "retry_rate": "millisecond",
            "result": "success",
            "mt_error": null,
            "by": "magic",
            "trade_id": 1213537088,
            "command_duration": 85,
            "broker_duration": 25,
            "total_duration": 110
        },
      ...more commands
    ]
}

Filters

Key Value Description
group string(account, copier, trade or user) Find events by group
id single integer Find a specific command
ids comma separated list of integers Find multiple commands
copier_id single integer Find commands by specific copier
copier_ids comma separated list of integers Find commands by multiple copiers
lead_id single integer Find commands by specific lead account
lead_ids comma separated list of integers Find commands by multiple lead accounts
account_id single integer Find commands by specific account
account_ids comma separated list of integers Find commands by multiple accounts
created_at_start datetime (format YYYY-MM-DDTHH:MM:SSZ) Find commands that were created after the datetime
created_at_end datetime (format YYYY-MM-DDTHH:MM:SSZ) Find commands that were created before the datetime

Stay in the loop.

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