-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
- control的语意问题
type Response struct {
Prefix uint32 //未知,猜测是帧头
Control uint8 //响应的控制码,目前发现0c是错误,1c是成功,猜测左数右第4位代表是否成功
MsgID uint32 //消息ID
Unknown uint8 //未知,猜测是响应的控制码
Type uint16 //响应类型,对应请求类型,如建立连接,请求分时数据等
ZipLength uint16 //数据长度
Length uint16 //未压缩长度
Data []byte //数据域
}
上面的Control,0c应该指的是 不压缩;1c指的是压缩
2.servertime的解析
type Quote struct {
Exchange Exchange // 市场
Code string // 股票代码 6个ascii字符串
Active1 uint16 // 活跃度
K K //k线
ServerTime string // 时间
ReversedBytes0 int // 保留(时间 ServerTime)
ReversedBytes1 int // 保留 这个等于 负的收盘价格?
TotalHand int // 总手(东财的盘口-总手)
Intuition int // 现量(东财的盘口-现量)现在成交量
Amount float64 // 金额(东财的盘口-金额)
InsideDish int // 内盘(东财的盘口-外盘)(和东财对不上)
OuterDisc int // 外盘(东财的盘口-外盘)(和东财对不上)
ReversedBytes2 int // 保留,未知
ReversedBytes3 int // 保留,未知,基金的昨收净值?
BuyLevel PriceLevels // 5档买盘(买1-5)
SellLevel PriceLevels // 5档卖盘(卖1-5)
ReversedBytes4 uint16 // 保留,未知
ReversedBytes5 int // 保留,未知
ReversedBytes6 int // 保留,未知
ReversedBytes7 int // 保留,未知
ReversedBytes8 int // 保留,未知
ReversedBytes9 uint16 // 保留,未知
Rate float64 // 涨速,好像都是0
Active2 uint16 // 活跃度
}
上面的ServerTime好没有规律, pytdx中有类似的,但是仍旧不对 servertime,是否能研究下
Metadata
Metadata
Assignees
Labels
No labels