准备解析k线图

This commit is contained in:
injoyai
2024-10-29 16:43:41 +08:00
parent f9c7047f78
commit cbb2aabb7e
6 changed files with 89 additions and 3 deletions

View File

@@ -84,7 +84,7 @@ func (stockMinuteTrade) Decode(bs []byte, code string) (*StockMinuteTradeResp, e
lastPrice := Price(0)
for i := uint16(0); i < resp.Count; i++ {
mt := &StockMinuteTrade{
Time: GetTime([2]byte(bs[:2])),
Time: GetDate([2]byte(bs[:2])),
}
var sub Price
bs, sub = GetPrice(bs[2:])