修复分时K线,时间不对的问题

This commit is contained in:
injoyai
2024-11-11 08:56:13 +08:00
parent 5ff96b9d4a
commit 420a83dbc2
3 changed files with 31 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
package main
import (
"github.com/injoyai/logs"
"github.com/injoyai/tdx"
"github.com/injoyai/tdx/example/common"
)
func main() {
common.Test(func(c *tdx.Client) {
resp, err := c.GetKlineMinute("sz000001", 0, 800)
logs.PanicErr(err)
for _, v := range resp.List {
logs.Debug(v)
}
logs.Debug("总数:", resp.Count)
})
}