Get all trades .

GET

Request

/trades

Response

{
    "result": "success",
    "status": 200,
    "meta": {
        "count": 99,
        "limit": 1000,
        "order": "desc",
        "last_id": 4612
    },
    "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
        },
        .....more trades.....
    ]
}

Filters

Key Value Description
id single integer Find a specific trade
ids comma separated list of integers Find multiple trades
account_id single integer Find trades by account
account_ids comma separated list of integers Find trades by multiple accounts
state open or closed Whether trade is open or closed
open_time_start datetime (format YYYY-MM-DDTHH:MM:SSZ) Find trades that were opened after the datetime
open_time_end datetime (format YYYY-MM-DDTHH:MM:SSZ) Find trades that were opened before the datetime
close_time_start datetime (format YYYY-MM-DDTHH:MM:SSZ) Find trades that were closed after the datetime
close_time_end datetime (format YYYY-MM-DDTHH:MM:SSZ) Find trades that were closed before the datetime

Stay in the loop..

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