Skip to content

Update Open Trade

MngUpdateOpenTrade

Description: Allows a manager to update an already open trade. Updates fields such as SL/TP, volume, price, symbol, and time. The trade must be in an open state.

Request Parameters

Name Type Required Description
order int Yes ID of the trade order to update
login int Yes User login ID associated with the trade
cmd int Yes Trade command (e.g., OP_BUY = 0)
volume int Yes New trade volume in minimal lots
symbol string Yes Trading symbol (e.g., "EURUSD")
open_price double No New open price
open_time int64 No New open time (epoch format)
sl double No Stop Loss value
tp double No Take Profit value
expiration int64 No Order expiration time (epoch)
comment string No Optional trade comment
__access object Yes Session object with permission type

Request Example

{
  "order": 1001234,
  "login": 123456,
  "cmd": 0,
  "volume": 2000,
  "symbol": "EURUSD",
  "sl": 1.1050,
  "tp": 1.2150,
  "open_price": 1.1045,
  "open_time": 1629981234,
  "expiration": 0,
  "comment": "Adjusted SL/TP",
  "__access": {
    "type": 1
  }
}

Response Parameters

Name Type Description
data string Returns "OK" on success

Response Example

{
  "data": "OK"
}