Tradesync
Browse API reference
API reference

Create open command

POSThttps://api.tradesync.com/commands

Queue an open command for a full account. HTTP success confirms creation of the command; inspect its status, result, or command events for execution.

Last updated

Request body

account_idType: integerRequired: Yes
Full account belonging to the authenticated userAccepted values / limits: 1 to 4294967295Default: —
commandType: stringRequired: Yes
Command to queueAccepted values / limits: openDefault: —
typeType: stringRequired: Yes
Requested trade type; execution support depends on the connected platformAccepted values / limits: buy, sell, buy_limit, sell_limit, buy_stop, sell_stop, buy_stop_limitDefault: —
symbolType: stringRequired: Yes
Instrument name on the target accountAccepted values / limits: —Default: —
lotsType: numberRequired: Yes
Trade volume in Tradesync lotsAccepted values / limits: 0.01 to 4294967295Default: —
open_priceType: numberRequired: Yes
Order price or requested reference price for a market tradeAccepted values / limits: 0.00000001 to 4294967295Default: —
slippageType: numberRequired: No
Permitted opening-price difference in pipsAccepted values / limits: —Default: Not set
stop_lossType: numberRequired: No
Stop-loss priceAccepted values / limits: 0 to 4294967295Default: Not set
take_profitType: numberRequired: No
Take-profit priceAccepted values / limits: 0 to 4294967295Default: Not set
magicType: integerRequired: No
Tradesync linkage identifierAccepted values / limits: —Default: Not set
commentType: stringRequired: No
Trade commentAccepted values / limits: Up to 30 charactersDefault: Not set

Response example

See response field definitions for field types and conditional fields.

{
    "result": "success",
    "status": 200,
    "data": {
        "id": 914926923,
        "created_at": "2025-04-28T10:16:41Z",
        "updated_at": "2025-04-28T10:16:41Z",
        "account_id": 1242495,
        "application": "mt5",
        "group": "user",
        "event": null,
        "event_id": null,
        "copier_id": null,
        "lead_id": null,
        "command": "open",
        "status": "working",
        "retry_rate": "millisecond",
        "result": null,
        "symbol": "EURUSD",
        "open_price": 1.1355,
        "lots": 0.01,
        "type": "buy",
        "stop_loss": 0,
        "take_profit": 0,
        "comment": "Example",
        "magic": 123,
        "command_duration": null,
        "broker_duration": null,
        "total_duration": null,
        "error": null
    }
}

Errors

Code HTTP status Condition
account_is_readonly 422 The target account is readonly.

See also common response codes.