Messages
{
"action": "subscribe",
"channels": [
{
"name": "tick.G1.json",
"symbols": [
"HPG"
]
}
]
}{
"T": "t",
"boardId": "G1",
"grossTradeAmount": 205.111605,
"highestPrice": 21.2,
"isin": "VN000000HPG4",
"lowestPrice": 20.9,
"marketId": "STO",
"matchPrice": 21.05,
"matchQtty": 90,
"multicastReceiveTime": {
"Nanos": 687300758,
"Seconds": 1787120768
},
"openPrice": 21.1,
"symbol": "HPG",
"time": {
"Nanos": 35000000,
"Seconds": 1787120771
},
"totalVolumeTraded": 976440,
"tradingSessionId": "40"
}Websockets
Khớp lệnh
Gửi cập nhật khớp lệnh theo danh sách mã chứng khoán trong một nhóm thị trường.
WSS
/
v1
/
stream
Messages
{
"action": "subscribe",
"channels": [
{
"name": "tick.G1.json",
"symbols": [
"HPG"
]
}
]
}{
"T": "t",
"boardId": "G1",
"grossTradeAmount": 205.111605,
"highestPrice": 21.2,
"isin": "VN000000HPG4",
"lowestPrice": 20.9,
"marketId": "STO",
"matchPrice": 21.05,
"matchQtty": 90,
"multicastReceiveTime": {
"Nanos": 687300758,
"Seconds": 1787120768
},
"openPrice": 21.1,
"symbol": "HPG",
"time": {
"Nanos": 35000000,
"Seconds": 1787120771
},
"totalVolumeTraded": 976440,
"tradingSessionId": "40"
}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 khớp lệnh
type:object
Đăng ký topic tick.{market_group}.{encoding}.
Cập nhật khớp lệnh
type:object
Bản cập nhật giao dịch khớp lệnh của một mã chứng khoán.