Messages
"d|st|C001+C002S60+C002S900|TCB"{
"success": true,
"error": null
}{
"symbol": "<string>",
"closePrice": 123,
"closeVol": 123,
"change": 123,
"reference": 123,
"totalTrading": 123,
"totalTradingValue": 123,
"timeSec": "<string>",
"action": "<string>",
"unitTimeFrame": "<string>",
"tradingValue": 123,
"buyUpAcc": 123,
"sellDownAcc": 123,
"bidPrice": 123,
"bidVol": 123,
"askPrice": 123,
"askVol": 123,
"prevChange": 123
}{
"symbol": "<string>",
"timeSec": "<string>",
"totalBUVol": 123,
"totalBUVolAcc": 123,
"totalSDVol": 123,
"totalSDVolAcc": 123,
"bsAccRatio": 123,
"unitTimeFrame": "<string>"
}{
"symbol": "<string>",
"timeSec": "<string>",
"totalBUVol": 123,
"totalBUVolAcc": 123,
"totalSDVol": 123,
"totalSDVolAcc": 123,
"bsAccRatio": 123,
"unitTimeFrame": "<string>"
}Websockets
Lịch sử giá khớp và cung cầu
Client xác thực bằng d|a|||<BASE64_JWT>, subscribe bằng d|st|...,
unsubscribe bằng d|ut|... và gửi heartbeat d|po mỗi 2 giây.
WSS
/
ws
/
ouranos
/
v1
/
stream
Messages
"d|st|C001+C002S60+C002S900|TCB"{
"success": true,
"error": null
}{
"symbol": "<string>",
"closePrice": 123,
"closeVol": 123,
"change": 123,
"reference": 123,
"totalTrading": 123,
"totalTradingValue": 123,
"timeSec": "<string>",
"action": "<string>",
"unitTimeFrame": "<string>",
"tradingValue": 123,
"buyUpAcc": 123,
"sellDownAcc": 123,
"bidPrice": 123,
"bidVol": 123,
"askPrice": 123,
"askVol": 123,
"prevChange": 123
}{
"symbol": "<string>",
"timeSec": "<string>",
"totalBUVol": 123,
"totalBUVolAcc": 123,
"totalSDVol": 123,
"totalSDVolAcc": 123,
"bsAccRatio": 123,
"unitTimeFrame": "<string>"
}{
"symbol": "<string>",
"timeSec": "<string>",
"totalBUVol": 123,
"totalBUVolAcc": 123,
"totalSDVol": 123,
"totalSDVolAcc": 123,
"bsAccRatio": 123,
"unitTimeFrame": "<string>"
}Lệnh điều khiển luồng lịch sử
type:string
Examples:
d|st|C001+C002S60+C002S900|TCB, d|poKết quả xác thực Ouranos
type:object
Trên wire server gửi d|0|{JSON_PAYLOAD}; payload dưới đây là phần JSON đã tách prefix.
Lịch sử giá khớp một phút
type:object
Trên wire server gửi C001|<SYMBOL>|{JSON_PAYLOAD}.
Cung cầu một phút
type:object
Trên wire server gửi C002S60|<SYMBOL>|{JSON_PAYLOAD}.
Dòng tiền khối ngoại 15 phút
type:object
Trên wire server gửi C002S900|<SYMBOL>|{JSON_PAYLOAD}.