Tradesync
Browse API reference
API reference

Get multiple command events

GET | QUERYhttps://api.tradesync.com/events/commands

Return a paginated list of command events.

Last updated

Filters

All filters are optional. See Filtering and Pagination.

idType: integer
Event IDAccepted values / limits: At least 1; up to 10 digits
idsType: string
Event IDsAccepted values / limits: Comma-separated IDs; up to 10,000 entries; up to 10 digits per ID
command_idType: integer
Command IDAccepted values / limits: At least 1; up to 10 digits
command_idsType: string
Command IDsAccepted values / limits: Comma-separated IDs; up to 10,000 entries; up to 10 digits per ID
account_idType: integer
Account IDAccepted values / limits: At least 1; up to 10 digits
account_idsType: string
Account IDsAccepted values / limits: Comma-separated IDs; up to 10,000 entries; up to 10 digits per ID
created_at_startType: string
Creation time at or after this timeAccepted values / limits: UTC datetime (YYYY-MM-DDTHH:MM:SSZ)
created_at_endType: string
Creation time at or before this time. Must be later than created_at_start when both are supplied.Accepted values / limits: UTC datetime (YYYY-MM-DDTHH:MM:SSZ)

Response example

See response field definitions for field types and conditional fields.

{
    "result": "success",
    "status": 200,
    "meta": {
        "count": 1,
        "limit": 1000,
        "order": "desc",
        "last_id": 123456
    },
    "data": [
        {
            "id": 123456,
            "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": 0.00001
        }
    ]
}