Get trade .

GET

Request

/trades/{trade_id}

Response

{
    "result": "success",
    "status": 200,
    "data": {
            "id": 622291,
            "created_at": "2021-08-04T11:36:08.000000Z",
            "updated_at": "2021-08-04T11:36:08.000000Z",
            "account_id": 761,
            "group": "trade",
            "event": "position_open",
            "event_id": null,
            "trade_id": 123456,
            "ticket": 123456789,
            "type": "buy",
            "symbol": "USDCHF",
            "lots": 0.01,
            "open_time": "2021-08-04T13:36:08.000000Z",
            "open_price": 0.90435,
            "stop_loss": 0,
            "take_profit": 0,
            "close_time": null,
            "close_price": 0.90424,
            "commission": 0,
            "swap": 0,
            "profit": -0.09,
            "balance": 226.12,
            "credit": 0,
            "equity": 210.27,
            "comment": "",
            "magic": 0,
            "digits": 5,
            "tick_value": 0.79373,
            "tick_size": 1.0e-5
        }
}

Attributes

Key|Value|Description| |---|---| magic|single integer|The magic number corresponds to the master's trade_id for this copied trade. If this is the master it will be 0|

Stay in the loop..

Sign up to our newsletter to keep up-to-date.