/trades
Returns a list of trades.
{
"result": "success",
"status": 200,
"meta": {
"count": 1000,
"limit": 1000,
"order": "desc",
"last_id": 767898156
},
"data": [
{
"id": 1212851507,
"created_at": "2025-04-25T14:17:24Z",
"updated_at": "2025-04-25T14:45:14Z",
"state": "open",
"account_id": 1242495,
"ticket": 411112093,
"type": "buy",
"symbol": "EURUSD",
"lots": 1,
"open_time": "2025-04-24T17:38:22Z",
"open_price": 1.13553,
"stop_loss": 0,
"take_profit": 0,
"close_time": null,
"close_price": 1.13726,
"commission": 0,
"swap": -7.1,
"profit": 173,
"comment": "",
"magic": 0,
"digits": 5,
"tick_value": 1,
"tick_size": 1.0e-5,
"alt_tick_value": 1,
"profit_calc_mode": "forex"
},
{
"id": 1212512280,
"created_at": "2025-04-25T09:55:33Z",
"updated_at": "2025-04-25T14:36:32Z",
"state": "open",
"account_id": 1241451,
"ticket": 411142322,
"type": "buy",
"symbol": "GBPUSD",
"lots": 0.01,
"open_time": "2025-04-25T11:55:33Z",
"open_price": 1.33009,
"stop_loss": 0,
"take_profit": 0,
"close_time": null,
"close_price": 1.3311,
"commission": 0,
"swap": 0,
"profit": 1.01,
"comment": "",
"magic": 1212512279,
"digits": 5,
"tick_value": 1,
"tick_size": 1.0e-5,
"alt_tick_value": 1,
"profit_calc_mode": "forex"
},
.....more trades.....
]
}
Key | Value | Description |
---|---|---|
id | single integer | Find a specific 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.