增加了获取股票数量的接口

This commit is contained in:
injoyai
2024-10-28 17:03:33 +08:00
parent fc478d7d85
commit 791bd4bfac
8 changed files with 75 additions and 6 deletions

View File

@@ -10,12 +10,13 @@ func main() {
c, err := tdx.Dial("124.71.187.122:7709")
logs.PanicErr(err)
resp, err := c.GetStockList(protocol.ExchangeSH)
logs.PrintErr(err)
resp, err := c.GetStockList(protocol.ExchangeSH, 200)
logs.PanicErr(err)
for _, v := range resp.List {
logs.Debug(v)
}
logs.Debug("总数:", resp.Count)
select {}
}