Skip to content

Close Trade

MngCloseTrade

Description: Allows a manager to close an existing trade order. Supports full and partial close operations, and provides optional parameters for trade close control.

Request Parameters

Name Type Required Description
login int Yes Account login to which the trade belongs
order int Yes Order ID of the trade to close
volume int No Volume to close (for partial close)
close_price double No Custom closing price
close_time int64 No Closing time (epoch)
expiration int64 No Expiration time for pending orders
comment string No Optional comment to include with the trade
__access object Yes Access object with type field

Request Example

{
  "login": 123456,
  "order": 1001234,
  "volume": 500,
  "close_price": 1.2050,
  "close_time": 1629987890,
  "expiration": 0,
  "comment": "partial close by manager",
  "__access": {
    "type": 1
  }
}

Response Parameters

Name Type Description
data string Always returns "OK" if successful

Response Example

{
  "data": "OK"
}