Get trade .

GET

Returns info of a single trade of a specific account.

Request
/trades/{trade_id}
Response
{
    "result": "success",
    "status": 200,
    "data": {
        "id": 841112345,
        "created_at": "2023-04-13T12:09:41Z",
        "updated_at": "2023-04-13T12:13:34Z",
        "state": "open",
        "account_id": 123456,
        "ticket": 123456789,
        "type": "buy",
        "symbol": "EURCHF",
        "lots": 0.1,
        "open_time": "2023-04-13T15:09:41Z",
        "open_price": 0.1234,
        "stop_loss": 0,
        "take_profit": 0,
        "close_time": null,
        "close_price": 0,
        "commission": 0,
        "swap": 0,
        "profit": -0.07,
        "comment": "trade comment",
        "magic": 12345678,
        "digits": 5,
        "tick_value": 1.11613,
        "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.