/trade
{
"result": "success",
"status": 200,
"code": "SUCCESS",
"message": "Success",
"data": {
"trades": [
{
"id": 277596775,
"created_at": "2020-04-14 10:48:58",
"updated_at": "2020-04-14 10:58:07",
"state": "open",
"account_id": 43811,
"ticket": 4186739,
"type": "buy",
"symbol": "XAUUSD",
"lots": 0.05,
"open_time": "2020-04-14 15:48:58",
"open_price": 1721.07,
"stop_loss": 0,
"take_profit": 0,
"close_time": null,
"close_price": null,
"commission": -0.5,
"swap": 0,
"profit": -1.8,
"magic": 0
}
..... more trades .....
],
"meta": {
"count": 1,
"limit": 1000,
"order": "desc",
"last_id": 123
}
}
}
Key | Value | Description |
---|---|---|
trade_id | single integer | Find a specific trade |
trade_ids | comma separated list of integers | Find multiple trades |
account_id | single integer | Find trades by account |
account_ids | comma separated list of integers | Find trades by multiple accounts |
state | open or closed | Whether trade is open or closed |
open_time_start | datetime (format YYYY-MM-DDTHH:MM:SSZ) | Find trades that were opened after the datetime |
open_time_end | datetime (format YYYY-MM-DDTHH:MM:SSZ) | Find trades that were opened before the datetime |
close_time_start | datetime (format YYYY-MM-DDTHH:MM:SSZ) | Find trades that were closed after the datetime |
close_time_end | datetime (format YYYY-MM-DDTHH:MM:SSZ) | Find trades that were closed before the datetime |
Sign up to our newsletter to keep up-to-date.