API reference
Get multiple commands
GET | QUERY
https://api.tradesync.com/commandsReturn a paginated list of commands.
Last updated
Filters
All filters are optional. See Filtering and Pagination.
- groupType: string
- Command origin groupAccepted values / limits: account, command, copier, trade, user
- idType: integer
- Command IDAccepted values / limits: 1 to 4294967295
- idsType: string
- Command IDsAccepted values / limits: Comma-separated IDs; up to 10,000 entries; up to 10 digits per ID
- copier_idType: integer
- Copier IDAccepted values / limits: 1 to 4294967295
- copier_idsType: string
- Copier IDsAccepted values / limits: Comma-separated IDs; up to 10,000 entries; up to 10 digits per ID
- lead_idType: integer
- Lead account IDAccepted values / limits: 1 to 4294967295
- lead_idsType: string
- Lead account IDsAccepted values / limits: Comma-separated IDs; up to 10,000 entries; up to 10 digits per ID
- account_idType: integer
- Account IDAccepted values / limits: 1 to 4294967295
- account_idsType: string
- Account IDsAccepted values / limits: Comma-separated IDs; up to 10,000 entries; up to 10 digits per ID
- trade_idType: integer
- Target trade identifier stored on the commandAccepted values / limits: —
- trade_idsType: string
- Target trade identifiers stored on commandsAccepted values / limits: Comma-separated IDs
- created_at_startType: string
- Creation time at or after this timeAccepted values / limits: UTC datetime (YYYY-MM-DDTHH:MM:SSZ)
- created_at_endType: string
- Creation time at or before this time. Must be later than created_at_start when both are supplied.Accepted values / limits: UTC datetime (YYYY-MM-DDTHH:MM:SSZ)
Response example
See response field definitions for field types and conditional fields.
{
"result": "success",
"status": 200,
"meta": {
"count": 2,
"limit": 1000,
"order": "desc",
"last_id": 914925106
},
"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",
"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",
"error": null,
"by": "magic",
"trade_id": 1213537088,
"command_duration": 85,
"broker_duration": 25,
"total_duration": 110
}
]
}