Messages
{
"action": "subscribe",
"channels": [
{
"name": "foreign.G1.json",
"symbols": [
"HPG"
]
}
]
}{
"T": "f",
"boardId": "G1",
"buyTradedAmount": 17703665000,
"buyVolume": 842500,
"foreignInvestorTypeCode": "10",
"foreignerBuyPossibleQuantity": 2453576846,
"foreignerOrderLimitQuantity": 2393988233,
"marketId": "STO",
"multicastReceiveTime": {
"Nanos": 601985803,
"Seconds": 1787122808
},
"sellTradedAmount": 47417210000,
"sellVolume": 2257300,
"symbol": "HPG",
"totalBuyTradedAmount": 32616877100,
"totalBuyVolume": 1605324,
"totalSellTradedAmount": 62332478100,
"totalSellVolume": 3020222,
"tradingSessionId": "40",
"transactTime": "070000049"
}Websockets
Giao dịch nhà đầu tư nước ngoài
Cung cấp dữ liệu giao dịch của nhà đầu tư nước ngoài theo từng mã chứng khoán, bao gồm khối lượng và giá trị mua/bán,tổng lũy kế trong ngày và room còn lại. Dữ liệu được cập nhật trong phiên giao dịch khi có thay đổi.
WSS
/
v1
/
stream
Messages
{
"action": "subscribe",
"channels": [
{
"name": "foreign.G1.json",
"symbols": [
"HPG"
]
}
]
}{
"T": "f",
"boardId": "G1",
"buyTradedAmount": 17703665000,
"buyVolume": 842500,
"foreignInvestorTypeCode": "10",
"foreignerBuyPossibleQuantity": 2453576846,
"foreignerOrderLimitQuantity": 2393988233,
"marketId": "STO",
"multicastReceiveTime": {
"Nanos": 601985803,
"Seconds": 1787122808
},
"sellTradedAmount": 47417210000,
"sellVolume": 2257300,
"symbol": "HPG",
"totalBuyTradedAmount": 32616877100,
"totalBuyVolume": 1605324,
"totalSellTradedAmount": 62332478100,
"totalSellVolume": 3020222,
"tradingSessionId": "40",
"transactTime": "070000049"
}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 giao dịch nước ngoài
type:object
Đăng ký topic foreign.{market_group}.{encoding}.
Cập nhật giao dịch nước ngoài
type:object
Bản cập nhật khối lượng mua bán của nhà đầu tư nước ngoài.