Messages
"subscribe|eyJ0b3BpYyI6IlNUT0NLX09SREVSIn0="{
"success": true,
"error": null
}{
"object": "order",
"accountNo": "0001201435",
"orderId": "9202412270000098858",
"execType": "NB",
"orderQtty": 100,
"symbol": "LUT",
"priceType": "LO",
"txTime": "12:04:39",
"orStatus": "8",
"limitPrice": 500,
"remainQtty": 100,
"via": "O"
}Websockets
Thay đổi thông tin lệnh cơ sở
Client xác thực bằng authenticate|<BASE64_JSON>, subscribe topic STOCK_ORDER
và gửi heartbeat ping|1 mỗi 2 giây.
WSS
/
ws
/
aither
Messages
"subscribe|eyJ0b3BpYyI6IlNUT0NLX09SREVSIn0="{
"success": true,
"error": null
}{
"object": "order",
"accountNo": "0001201435",
"orderId": "9202412270000098858",
"execType": "NB",
"orderQtty": 100,
"symbol": "LUT",
"priceType": "LO",
"txTime": "12:04:39",
"orStatus": "8",
"limitPrice": 500,
"remainQtty": 100,
"via": "O"
}Lệnh điều khiển luồng lệnh
type:string
Xác thực, subscribe hoặc heartbeat.
Examples:
subscribe|eyJ0b3BpYyI6IlNUT0NLX09SREVSIn0=, ping|1Kết quả xác thực luồng lệnh
type:object
Trên wire server gửi authenticate|{JSON_PAYLOAD}; payload dưới đây là phần JSON đã tách prefix.
Thay đổi lệnh cơ sở
type:object
Trên wire server gửi message_proto|STOCK_ORDER|{JSON_PAYLOAD}.