Skip to main content

Update Limit order

Authorization

The WebSocket connection being used must be pre-authorized with authorization request.

Alternative request

The same operation can be performed using HTTP request.

Exchange restrictions

Due to restriction imposed by the Exchange, the parameters side and symbol will not be included in the change of orders related to the derivatives market. The restriction does not apply to initial placing of derivatives orders and change of orders at other markets.

The request creates a new limit order with changed characteristics, automatically canceling the previously created one. To specify the order to be canceled, use its number in the orderid parameter.


Request

To modify an order, send a message to the established WebSocket connection with the operation code update:limit containing the new order details.

{
"opcode": "update:limit",
"guid": "c328fcf1-e495-408a-a0ed-e20f95d6b813",
"orderId": "18995978560",
"side": "buy",
"quantity": 300,
"price": 142.52,
"instrument": {
"symbol": "SBER",
"exchange": "MOEX",
"instrumentGroup": "TQBR"
},
"comment": "First order",
"user": {
"portfolio": "D39004"
},
"allowMargin": false,
"icebergFixed": 100,
"checkDuplicates": true
}

Responses

According to the results of processing the received request, the server will return a message with the corresponding code to the WebSocket connection.

Messages

Successful request processing report

{
"requestGuid": "c328fcf1-e495-408a-a0ed-e20f95d6b813",
"httpCode": 200,
"message": "An order has been updated. New order ID is '12346'.",
"orderNumber": "12346"
}