From 90e782eecdc83128a84eeda1dc977d15684da63c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=92=B1=E7=BA=AF=E5=87=80?= <1113655791@qq.com> Date: Tue, 12 Nov 2024 21:10:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=BC=8F=E6=8E=89=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E5=90=8D=E7=A7=B0,=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client.go b/client.go index 032edc0..b3cae5e 100644 --- a/client.go +++ b/client.go @@ -317,12 +317,12 @@ func (this *Client) GetKlineAll(Type uint8, code string) (*protocol.KlineResp, e return resp, nil } -// GetKlineMinute 获取一分钟k线数据 +// GetKlineMinute 获取一分钟k线数据,每次最多800条,最多只能获取24000条数据 func (this *Client) GetKlineMinute(code string, start, count uint16) (*protocol.KlineResp, error) { return this.GetKline(protocol.TypeKlineMinute, code, start, count) } -// GetKlineMinuteAll 获取一分钟k线全部数据 +// GetKlineMinuteAll 获取一分钟k线全部数据,最多只能获取24000条数据 func (this *Client) GetKlineMinuteAll(code string) (*protocol.KlineResp, error) { return this.GetKlineAll(protocol.TypeKlineMinute, code) } @@ -387,8 +387,8 @@ func (this *Client) GetKlineWeekAll(code string) (*protocol.KlineResp, error) { return this.GetKlineAll(protocol.TypeKlineWeek, code) } -// GetStockKlineMonth 获取月k线数据 -func (this *Client) GetStockKlineMonth(code string, start, count uint16) (*protocol.KlineResp, error) { +// GetKlineMonth 获取月k线数据 +func (this *Client) GetKlineMonth(code string, start, count uint16) (*protocol.KlineResp, error) { return this.GetKline(protocol.TypeKlineMonth, code, start, count) }