Messages
{
"method": "SUBSCRIBE",
"channel": "TRADING",
"topics": [
"order.1231991",
"order.1231996-1231998",
"order.*"
]
}{
"method": "UNSUBSCRIBE",
"channel": "TRADING",
"topics": [
"order.1231991",
"order.*"
]
}{
"channel": "TRADING",
"topic": "order.0901351.ORD123456.",
"data": {
"eventType": "orderEvent",
"notifyId": 123456789,
"connectionId": "conn-001",
"clientRequestId": "req-20240226-001",
"orderId": "ORD123456",
"symbol": "VNM",
"side": "B",
"orderType": "LO",
"accountNo": "0901351",
"price": "72000",
"avgPrice": "0",
"quantity": 1000,
"cancelQty": 0,
"osQty": 1000,
"filledQty": 0,
"inputTime": "2026/03/01 14:20:55",
"modifiedTime": "2026/03/01 14:20:55",
"orderStatus": "PD",
"rejectReason": "",
"errorCode": "",
"errorMessage": ""
}
}{
"eventType": "orderMatchEvent",
"notifyId": 1061597,
"connectionId": "connection_id_value",
"clientRequestId": "91530521",
"orderId": "26022601219922",
"symbol": "MSR",
"side": "S",
"accountNo": "Q276811",
"matchPrice": "43100.0",
"matchQty": 500,
"matchTime": "2026/03/01 14:20:55"
}{
"type": "fcoEvent",
"data": {
"fcoId": "7528ac20-a340-4233-8bb7-a2379fc3c638",
"notifyID": 1249008,
"processStatus": "INIT",
"matchedQuantity": 0,
"isPlaceOrder": false,
"instrumentID": "ssi",
"quantity": 4000,
"price": "MP",
"account": "1231496",
"updatedTime": "1751966448000",
"status": "200",
"message": "Success",
"username": "123149"
}
}Websockets
Sự kiện lệnh
Cập nhật trạng thái lệnh, khớp lệnh và sự kiện lệnh điều kiện (FCO).
FCO được trả về trên cùng topic order.
WSS
/
ws
/
v3
Messages
{
"method": "SUBSCRIBE",
"channel": "TRADING",
"topics": [
"order.1231991",
"order.1231996-1231998",
"order.*"
]
}{
"method": "UNSUBSCRIBE",
"channel": "TRADING",
"topics": [
"order.1231991",
"order.*"
]
}{
"channel": "TRADING",
"topic": "order.0901351.ORD123456.",
"data": {
"eventType": "orderEvent",
"notifyId": 123456789,
"connectionId": "conn-001",
"clientRequestId": "req-20240226-001",
"orderId": "ORD123456",
"symbol": "VNM",
"side": "B",
"orderType": "LO",
"accountNo": "0901351",
"price": "72000",
"avgPrice": "0",
"quantity": 1000,
"cancelQty": 0,
"osQty": 1000,
"filledQty": 0,
"inputTime": "2026/03/01 14:20:55",
"modifiedTime": "2026/03/01 14:20:55",
"orderStatus": "PD",
"rejectReason": "",
"errorCode": "",
"errorMessage": ""
}
}{
"eventType": "orderMatchEvent",
"notifyId": 1061597,
"connectionId": "connection_id_value",
"clientRequestId": "91530521",
"orderId": "26022601219922",
"symbol": "MSR",
"side": "S",
"accountNo": "Q276811",
"matchPrice": "43100.0",
"matchQty": 500,
"matchTime": "2026/03/01 14:20:55"
}{
"type": "fcoEvent",
"data": {
"fcoId": "7528ac20-a340-4233-8bb7-a2379fc3c638",
"notifyID": 1249008,
"processStatus": "INIT",
"matchedQuantity": 0,
"isPlaceOrder": false,
"instrumentID": "ssi",
"quantity": 4000,
"price": "MP",
"account": "1231496",
"updatedTime": "1751966448000",
"status": "200",
"message": "Success",
"username": "123149"
}
}Yêu cầu đăng ký sự kiện lệnh
type:object
Đăng ký các topic order trên channel TRADING.
Yêu cầu hủy sự kiện lệnh
type:object
Hủy đăng ký các topic order trên channel TRADING.
Sự kiện lệnh
type:object
Trạng thái lệnh khi đặt, sửa, hủy hoặc thay đổi trạng thái.
Sự kiện khớp lệnh
type:object
Sự kiện phát sinh khi lệnh được khớp một phần hoặc toàn bộ.
Sự kiện lệnh điều kiện
type:object
Cập nhật trạng thái lệnh điều kiện FastConnect Conditional Order.