Tradesync
Browse API reference
API reference

Get trade

GEThttps://api.tradesync.com/trades/{trade_id}

Return an individual trade.

Last updated

Path parameters

trade_idType: integer
Tradesync trade ID belonging to the authenticated user

Response example

{
    "result": "success",
    "status": 200,
    "data": {
        "id": 1212071730,
        "created_at": "2025-04-24T15:38:22Z",
        "updated_at": "2025-04-25T14:36:32Z",
        "state": "open",
        "account_id": 1241451,
        "ticket": 411112094,
        "type": "buy",
        "symbol": "EURUSD",
        "lots": 0.01,
        "open_time": "2025-04-24T17:38:22Z",
        "open_price": 1.13553,
        "stop_loss": 0,
        "take_profit": 0,
        "close_time": null,
        "close_price": 1.13706,
        "commission": 0,
        "swap": -0.07,
        "profit": 1.53,
        "comment": "",
        "magic": 1212071728,
        "digits": 5,
        "tick_value": 1,
        "tick_size": 0.00001,
        "alt_tick_value": 1,
        "profit_calc_mode": "forex"
    }
}

Response fields

Field Type Description
id integer Tradesync trade ID used in resource paths
ticket integer Trade identifier on the connected trading platform
lots number Trade volume in Tradesync lots
close_time string or null Close timestamp in UTC; null for open trades
comment string or null Trade comment; null when no comment is reported
magic number Tradesync linkage identifier. Copied trades use the lead Tradesync trade ID; other trades may use a platform- or client-supplied value.