Get trade event .

GET

Trade events show the different stages in the lifecycle of a trade from open to close for example 'position_close' and 'order_filled'.

Request

/events/trades/{event_id}

Trade Response

{
    "result": "success",
    "status": 200,
    "data": {
        "id": 577,
        "created_at": "2021-06-01T11:41:34.000000Z",
        "updated_at": "2021-06-01T11:41:34.000000Z",
        "account_id": 16,
        "group": "trade",
        "event": "position_open",
        "event_id": 264,
        "trade_id": 3657,
        "ticket": 244611362,
        "type": "sell",
        "symbol": "USDCHF",
        "lots": 3.5,
        "open_time": "2021-06-01T14:41:34.000000Z",
        "open_price": 0.89861,
        "stop_loss": 0,
        "take_profit": 0,
        "close_time": null,
        "close_price": 0.89874,
        "commission": 0,
        "swap": 0,
        "profit": -50.63,
        "balance": 5003288.74,
        "credit": 0,
        "equity": 5003238.11,
        "comment": "3655",
        "magic": 3655,
        "digits": 5,
        "tick_value": 1.11283,
        "tick_size": 1.0e-5
    }
}

Attributes

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

Stay in the loop..

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