The system keeps track of key events that occur on accounts, copiers, commands or trades.
Command events occur when a command has been created and they show whether this command has been successful or if there have been any errors.
/events/commands
{
"result": "success",
"status": 200,
"meta": {
"count": 197,
"limit": 1000,
"order": "desc",
"last_id": 3236
},
"data": [
{
"id": 123456,
"created_at": "2021-08-04T11:36:08.000000Z",
"updated_at": "2021-08-04T11:36:08.000000Z",
"account_id": 761,
"group": "trade",
"event": "position_open",
"event_id": null,
"trade_id": 123456,
"ticket": 123456789,
"type": "buy",
"symbol": "USDCHF",
"lots": 0.01,
"open_time": "2021-08-04T13:36:08.000000Z",
"open_price": 0.90435,
"stop_loss": 0,
"take_profit": 0,
"close_time": null,
"close_price": 0.90424,
"commission": 0,
"swap": 0,
"profit": -0.09,
"balance": 226.12,
"credit": 0,
"equity": 210.27,
"comment": "",
"magic": 0,
"digits": 5,
"tick_value": 0.79373,
"tick_size": 1.0e-5
},
.....more events.....
]
}
Key | Value | Description |
---|---|---|
id | single integer | Find a command event |
ids | comma separated list of integers | Find multiple command events |
command_id | single integer | Find a commands events |
command_ids | comma separated list of integers | Find multiple commands events |
account_id | single integer | Find an accounts events |
account_ids | comma separated list of integers | Find multiple accounts events |
created_at_start | datetime (format YYYY-MM-DDTHH:MM:SSZ) | Find events that were created after the datetime |
created_at_end | datetime (format YYYY-MM-DDTHH:MM:SSZ) | Find events that were created before the datetime |
Sign up to our newsletter to keep up-to-date.