Messages
{
"action": "subscribe",
"channels": [
{
"name": "top_price.G1.json",
"symbols": [
"HPG"
]
}
]
}{
"T": "q",
"bid": [
{
"price": 21,
"qtty": 14590
},
{
"price": 20.95,
"qtty": 69990
},
{
"price": 20.9,
"qtty": 121890
}
],
"boardId": "G1",
"isin": "VN000000HPG4",
"marketId": "STO",
"multicastReceiveTime": {
"Nanos": 526432284,
"Seconds": 1787121724
},
"offer": [
{
"price": 21.05,
"qtty": 28710
},
{
"price": 21.1,
"qtty": 13160
},
{
"price": 21.15,
"qtty": 34890
}
],
"symbol": "HPG",
"time": {
"Nanos": 891000000,
"Seconds": 1787121726
}
}Websockets
Độ sâu thị trường
Cung cấp thông tin giá chào mua và chào bán tốt nhất của mã chứng khoán tại bảng giao dịch cụ thể, cập nhật theo thời gian thực trong phiên giao dịch.
- Sàn HOSE hỗ trợ 3 mức giá.
- Sàn HNX, UPCOM hỗ trợ 10 mức giá.
WSS
/
v1
/
stream
Messages
{
"action": "subscribe",
"channels": [
{
"name": "top_price.G1.json",
"symbols": [
"HPG"
]
}
]
}{
"T": "q",
"bid": [
{
"price": 21,
"qtty": 14590
},
{
"price": 20.95,
"qtty": 69990
},
{
"price": 20.9,
"qtty": 121890
}
],
"boardId": "G1",
"isin": "VN000000HPG4",
"marketId": "STO",
"multicastReceiveTime": {
"Nanos": 526432284,
"Seconds": 1787121724
},
"offer": [
{
"price": 21.05,
"qtty": 28710
},
{
"price": 21.1,
"qtty": 13160
},
{
"price": 21.15,
"qtty": 34890
}
],
"symbol": "HPG",
"time": {
"Nanos": 891000000,
"Seconds": 1787121726
}
}method
type:string
GET
query
type:object
encoding
type:string
bắt buộc
Định dạng mã hóa dữ liệu WebSocket (json, msgpack).
Đăng ký luồng độ sâu thị trường
type:object
Đăng ký topic top_price.{market_group}.{encoding}.
Cập nhật độ sâu thị trường
type:object
Bản cập nhật các mức giá mua và bán tốt nhất.