Tradesync
Browse API reference
API reference

Get multiple trade events

GET | QUERYhttps://api.tradesync.com/events/trades

Return a paginated list of trade events.

Last updated

Filters

All filters are optional. See Filtering and Pagination.

idType: integer
Event IDAccepted values / limits: At least 1; up to 10 digits
idsType: string
Event IDsAccepted values / limits: Comma-separated IDs; up to 10,000 entries; up to 10 digits per ID
trade_idType: integer
Trade IDAccepted values / limits: At least 1; up to 10 digits
trade_idsType: string
Trade IDsAccepted values / limits: Comma-separated IDs; up to 10,000 entries; up to 10 digits per ID
account_idType: integer
Account IDAccepted values / limits: At least 1; up to 10 digits
account_idsType: string
Account IDsAccepted values / limits: Comma-separated IDs; up to 10,000 entries; up to 10 digits per ID
magicType: integer
Tradesync linkage identifierAccepted values / limits: At least 1; up to 10 digits
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": 1786080050
    },
    "data": [
        {
            "id": 1786080051,
            "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": 1212851510,
            "ticket": 411142456,
            "type": "buy",
            "symbol": "USDJPY",
            "lots": 1,
            "open_time": "2025-04-25T11:59:24Z",
            "open_price": 143.62,
            "stop_loss": 0,
            "take_profit": 0,
            "close_time": null,
            "close_price": 143.801,
            "commission": 0,
            "swap": 0,
            "profit": 125.87,
            "balance": 20123.99,
            "credit": 0,
            "equity": 20358.76,
            "comment": "",
            "magic": 0,
            "digits": 3,
            "tick_value": 0.69540546,
            "tick_size": 0.001,
            "alt_tick_value": 0.6951585,
            "profit_calc_mode": "forex"
        },
        {
            "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"
        }
    ]
}