增加GetStockAll实例

This commit is contained in:
injoyai
2024-10-30 15:29:22 +08:00
parent 332218c1ed
commit a8ec5c19a2

View File

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