修复codes的LastPrice价格不对的问题,只做了简单验证

This commit is contained in:
injoyai
2025-05-29 09:19:34 +08:00
parent c5f62c15b3
commit bc45a72d8d
5 changed files with 56 additions and 14 deletions

View File

@@ -19,7 +19,10 @@ func Test_stockKline_Decode(t *testing.T) {
t.Error(err)
return
}
resp, err := MKline.Decode(bs, 9)
resp, err := MKline.Decode(bs, KlineCache{
Type: 9,
Kind: "",
})
if err != nil {
t.Error(err)
return