order.amend
Amend an existing order. Identify the order to amend via orderId OR clientRequestId (exactly
one must be supplied — supplying both or neither is rejected). Same fast-ack PD flow as
order.place. Requires a signature.
Required scope: tradingws:order:put.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Exactly one of `orderId`/`clientRequestId` must be supplied to identify the order to amend.
Client-generated amend identifier. Auto-generated by the system when omitted.
The original order's client-generated identifier from when it was placed. Used XOR with `orderId`.
The original order's identifier generated by the SSI system. Used XOR with `clientRequestId`.
Trading account number.
Trading symbol.
Order side.
Order type.
The order's amended price.
The order's amended quantity.
Identifier of the device submitting the amend request.
Information about the browser/application sending the request.
RSA+SHA256 signature (base64). Required.
Response Body
application/json
application/json
Sample Request
wscat -c wss://api.ssi.com.vn/ws/v3/trading -x '{
"id": "req-0002",
"method": "order.amend",
"params": {
"orderId": "ORD123456",
"accountNo": "0901351",
"price": "46.00",
"quantity": 500,
"deviceId": "MAC-AABBCCDDEEFF"
},
"signature": "base64(RSA-SHA256(...))",
"timestamp": 1755000001000
}'Sample Response
{
"id": "req-0002",
"method": "order.amend",
"status": 200,
"result": {
"clientRequestId": "req-0001",
"orderId": "ORD123456",
"orderStatus": "PD",
"clientModifyId": "req-0002"
},
"rateLimit": {
"limit": 50,
"remaining": 46,
"resetMs": 880
}
}order.placeWS
Place a new order. The system **responds immediately** (`orderStatus: "PD"`) to confirm the order was accepted — the real fill status arrives later via the `order.{accountNo}` notification channel (see "Place/amend/cancel orders: fast acknowledgment, result arrives later" at the top of this document). Requires a `signature` (RSA+SHA256) per UBCKNN's data-integrity regulation for trading operations. Required scope: `tradingws:order:post`.
order.cancelWS
Cancel an existing order. Identify the order to cancel via `orderId` OR `clientRequestId` (exactly one must be supplied). Same fast-ack `PD` flow as `order.place`. Requires a `signature`. Required scope: `tradingws:order:delete`.