API reference
Get trade event
GET
https://api.tradesync.com/events/trades/{trade_event_id}Return an individual trade event.
Last updated
Path parameters
- trade_event_idType: integer
- Trade event id returned by the corresponding list endpoint
Response example
{
"result": "success",
"status": 200,
"data": {
"id": 1786080050,
"created_at": "2025-04-25T14:17:24Z",
"updated_at": "2025-04-25T14:17:24Z",
"account_id": 1242495,
"group": "trade",
"event": "position_open",
"event_id": null,
"trade_id": 1212851509,
"ticket": 411142321,
"type": "buy",
"symbol": "GBPUSD",
"lots": 1,
"open_time": "2025-04-25T11:55:33Z",
"open_price": 1.33009,
"stop_loss": 0,
"take_profit": 0,
"close_time": null,
"close_price": 1.33126,
"commission": 0,
"swap": 0,
"profit": 117,
"balance": 20123.99,
"credit": 0,
"equity": 20358.76,
"comment": "",
"magic": 0,
"digits": 5,
"tick_value": 1,
"tick_size": 0.00001,
"alt_tick_value": 1,
"profit_calc_mode": "forex"
}
}
Response fields
These fields can be null in the reported trade state.
| Field | Type | Description |
|---|---|---|
| close_time | string or null | Close timestamp in UTC; null when no close time is reported |
| comment | string or null | Trade comment; null when none is reported |
| event_id | integer or null | Related event ID when recorded; otherwise null |
The updated_at value is currently emitted with the same timestamp as created_at.
Event
| Value | Description |
|---|---|
| position_open | Trade has been opened |
| position_close | Trade has been closed |
| partial_close | Trade has been partially closed |
| order_open | Order opened |
| order_close | Order closed |
| order_filled | Order filled |
| order_price_modified | Order price has been modified |
| stop_loss_modified | The stop loss has been modified |
| take_profit_modified | The take profit has been modified |