From abe39fb2ae240098f5f45e2b34b65501d9e71ac9 Mon Sep 17 00:00:00 2001 From: injoyai <1113655791@qq.com> Date: Tue, 13 May 2025 14:17:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=9B=98=E5=86=85=E4=B8=8B?= =?UTF-8?q?=E5=8D=88(13~15=E7=82=B9)=E6=8B=89=E5=8F=96K=E7=BA=BF=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E7=9A=84=E6=97=B6=E5=80=99,11.30=E7=9A=84=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E4=BC=9A=E5=8F=98=E6=88=9013.00?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/GetKline30MinuteAll/main.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 example/GetKline30MinuteAll/main.go diff --git a/example/GetKline30MinuteAll/main.go b/example/GetKline30MinuteAll/main.go new file mode 100644 index 0000000..603420c --- /dev/null +++ b/example/GetKline30MinuteAll/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.GetKline30Minute("sz000001", 0, 20) + logs.PanicErr(err) + + for _, v := range resp.List { + logs.Debug(v) + } + + logs.Debug("总数:", resp.Count) + }) +}