Skip to content

Reopen Trade

MngRestoreTrade

Description: Allows a manager to reopen a closed trade order by its order ID.

This method follows the common Trade Request Lifecycle. A successful response means the restore request was accepted into runtime processing.

Warning

this method work only for close trades

Request Parameters

Name Type Required Description
order int Yes ID of the trade order to cancel
__access object Yes Access object containing session type information

Request Example

{
  "order": 1001234,
  "__access": {
    "type": 1
  }
}

Response Semantics

If the request is accepted:

  • the restore request passed validation
  • the order was accepted into runtime processing
  • final restore application is resolved asynchronously

The response should be treated as an acknowledgment object.

Response Parameters

Name Type Description
accepted bool Always true on successful acknowledgment
order int Order identifier being restored
state int Accepted request state, typically TS_RESTORE_REQUEST

Response Example

{
  "accepted": true,
  "order": 1001234,
  "state": 13
}

Lifecycle Notes

  • The immediate response is an acknowledgment, not a final restore report.
  • The trade should be tracked by order.
  • Final resulting state is resolved later in runtime processing.