From a8ec5c19a2bc1ab0dac2681c167ac35e67e7393c Mon Sep 17 00:00:00 2001 From: injoyai <1113655791@qq.com> Date: Wed, 30 Oct 2024 15:29:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0GetStockAll=E5=AE=9E=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/GetStockAll/main.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 example/GetStockAll/main.go diff --git a/example/GetStockAll/main.go b/example/GetStockAll/main.go new file mode 100644 index 0000000..b8d9224 --- /dev/null +++ b/example/GetStockAll/main.go @@ -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) + }) +}