API reference
Create modify command
POST
https://api.tradesync.com/commandsQueue a modify 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 4294967295
- commandType: stringRequired: Yes
- Command to queueAccepted values / limits: modify_stop_loss, modify_take_profit, modify_pending_price
- byType: stringRequired: Yes
- Identifier used to select the tradeAccepted values / limits: ticket, magic
- trade_idType: integerRequired: Yes
- Platform ticket if by is ticket; linkage identifier if by is magic. This is not the Tradesync trade resource ID.Accepted values / limits: 1 to 9999999999999999999
- modify_priceType: numberRequired: Yes
- New price for the selected modificationAccepted values / limits: 0 to 4294967295
Response example
See response field definitions for field types and conditional fields.
{
"result": "success",
"status": 200,
"data": {
"id": 915067825,
"created_at": "2025-04-28T13:14:05Z",
"updated_at": "2025-04-28T13:14:05Z",
"account_id": 1242495,
"application": "mt5",
"group": "user",
"event": null,
"event_id": null,
"copier_id": null,
"lead_id": null,
"command": "modify_take_profit",
"status": "working",
"retry_rate": "second",
"result": null,
"by": "magic",
"trade_id": 1213753146,
"modify_price": 1.1355,
"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.