Messages
"d|s|tk|bp+bi+tm+mp+op+fe|VN30F1M"{
"success": true,
"error": null
}{
"symbol": "41I1G8000",
"matchPrice": 1870.5,
"matchQtty": 2,
"change": -4.5,
"changePercent": -0.24,
"totalVolume": 15234
}{
"symbol": "<string>",
"bidPrice01": 123,
"bidPrice02": 123,
"bidPrice03": 123,
"bidQtty01": 123,
"bidQtty02": 123,
"bidQtty03": 123
}{
"symbol": "<string>",
"offerPrice01": 123,
"offerPrice02": 123,
"offerPrice03": 123,
"offerQtty01": 123,
"offerQtty02": 123,
"offerQtty03": 123
}{
"symbol": "<string>",
"high": 123,
"low": 123,
"avg": 123,
"open": 123
}Websockets
Bảng giá phái sinh
Client xác thực bằng d|a|||<BASE64_JWT>, subscribe bằng d|s|tk|...,
unsubscribe bằng d|u|tk|... và gửi heartbeat d|p||| mỗi 2 giây.
WSS
/
ws
/
thesis
/
v1
/
stream
/
derivative
Messages
"d|s|tk|bp+bi+tm+mp+op+fe|VN30F1M"{
"success": true,
"error": null
}{
"symbol": "41I1G8000",
"matchPrice": 1870.5,
"matchQtty": 2,
"change": -4.5,
"changePercent": -0.24,
"totalVolume": 15234
}{
"symbol": "<string>",
"bidPrice01": 123,
"bidPrice02": 123,
"bidPrice03": 123,
"bidQtty01": 123,
"bidQtty02": 123,
"bidQtty03": 123
}{
"symbol": "<string>",
"offerPrice01": 123,
"offerPrice02": 123,
"offerPrice03": 123,
"offerQtty01": 123,
"offerQtty02": 123,
"offerQtty03": 123
}{
"symbol": "<string>",
"high": 123,
"low": 123,
"avg": 123,
"open": 123
}Lệnh điều khiển bảng giá phái sinh
type:string
Examples:
d|s|tk|bp+bi+tm+mp+op+fe|VN30F1M, d|p|||Kết quả xác thực Thesis
type:object
Trên wire server gửi d|0|{JSON_PAYLOAD}; payload dưới đây là phần JSON đã tách prefix.
Giao dịch khớp phái sinh
type:object
Trên wire server gửi s|21|{JSON_PAYLOAD}.
Sổ lệnh mua phái sinh
type:object
Trên wire server gửi s|23|{JSON_PAYLOAD}.
Sổ lệnh bán phái sinh
type:object
Trên wire server gửi s|24|{JSON_PAYLOAD}.
Thông tin phiên phái sinh
type:object
Trên wire server gửi s|27|{JSON_PAYLOAD}.