From 705f6e4e3a307fe6f502f228e0c884920cd612f0 Mon Sep 17 00:00:00 2001 From: injoyai <1113655791@qq.com> Date: Wed, 18 Jun 2025 13:50:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96GetTrade=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/GetTrade/main.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 example/GetTrade/main.go diff --git a/example/GetTrade/main.go b/example/GetTrade/main.go new file mode 100644 index 0000000..e5f3d7d --- /dev/null +++ b/example/GetTrade/main.go @@ -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.GetTrade("sz000001", 0, 20) + logs.PanicErr(err) + + for _, v := range resp.List { + logs.Debug(v) + } + + logs.Debug("总数:", resp.Count) + }) +}