From 1863c20be598971026c5306b20729750b15f35e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=B1=E7=BA=AF=E5=87=80?= <1113655791@qq.com> Date: Sat, 16 Nov 2024 18:39:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E5=88=86=E6=97=B6=E6=88=90?= =?UTF-8?q?=E4=BA=A4sz000001=E5=9C=A820241116=E5=8F=AA=E8=83=BD=E6=9F=A5?= =?UTF-8?q?=E5=88=B03141=E5=A4=A9=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client.go b/client.go index e88d78f..d37984c 100644 --- a/client.go +++ b/client.go @@ -253,7 +253,9 @@ func (this *Client) GetMinuteTradeAll(code string) (*protocol.MinuteTradeResp, e return resp, nil } -// GetHistoryMinuteTrade 获取历史分时交易,,只能获取昨天及之前的数据,服务器最多返回2000条,count-start<=2000,如果日期输入错误,则返回0 +// GetHistoryMinuteTrade 获取历史分时交易 +// 只能获取昨天及之前的数据,服务器最多返回2000条,count-start<=2000,如果日期输入错误,则返回0 +// 历史数据sz000001在20241116只能查到21111112,13年差几天,3141天,或者其他规则 func (this *Client) GetHistoryMinuteTrade(date, code string, start, count uint16) (*protocol.HistoryMinuteTradeResp, error) { f, err := protocol.MHistoryMinuteTrade.Frame(date, code, start, count) if err != nil { @@ -267,6 +269,7 @@ func (this *Client) GetHistoryMinuteTrade(date, code string, start, count uint16 } // GetHistoryMinuteTradeAll 获取历史分时全部交易,通过多次请求来拼接,只能获取昨天及之前的数据 +// 历史数据sz000001在20241116只能查到21111112,13年差几天,3141天,或者其他规则 func (this *Client) GetHistoryMinuteTradeAll(date, code string) (*protocol.HistoryMinuteTradeResp, error) { resp := &protocol.HistoryMinuteTradeResp{} size := uint16(2000)