Modify an order (WebSocket)

Send REPLACE_ORDER after login. Both the new price and quantity are required. The response event is REPLACE_ORDER_ACK.

Arguments

FieldTypeRequiredDescription
brokerClientIdstringYesAccount ID identifying the client account for the request.
orderNostringYesOrder number returned by Place an order.
pricestringYesNew price. Send together with qty.
qtyintegerYesNew quantity.

Request

{
  "action": "REPLACE_ORDER",
  "id": "req-004",
  "args": {
    "brokerClientId": "client001",
    "orderNo": "23818",
    "price": "183.00",
    "qty": 200
  }
}

Response

{
  "event": "REPLACE_ORDER_ACK",
  "id": "req-004",
  "code": 0,
  "message": "success",
  "data": {
    "orderNo": "23818",
    "status": "0"
  }
}