修改漏掉的方法名称,增加注释

This commit is contained in:
钱纯净
2024-11-12 21:10:35 +08:00
parent 3b109d8f3a
commit 90e782eecd

View File

@@ -317,12 +317,12 @@ func (this *Client) GetKlineAll(Type uint8, code string) (*protocol.KlineResp, e
return resp, nil return resp, nil
} }
// GetKlineMinute 获取一分钟k线数据 // GetKlineMinute 获取一分钟k线数据,每次最多800条,最多只能获取24000条数据
func (this *Client) GetKlineMinute(code string, start, count uint16) (*protocol.KlineResp, error) { func (this *Client) GetKlineMinute(code string, start, count uint16) (*protocol.KlineResp, error) {
return this.GetKline(protocol.TypeKlineMinute, code, start, count) return this.GetKline(protocol.TypeKlineMinute, code, start, count)
} }
// GetKlineMinuteAll 获取一分钟k线全部数据 // GetKlineMinuteAll 获取一分钟k线全部数据,最多只能获取24000条数据
func (this *Client) GetKlineMinuteAll(code string) (*protocol.KlineResp, error) { func (this *Client) GetKlineMinuteAll(code string) (*protocol.KlineResp, error) {
return this.GetKlineAll(protocol.TypeKlineMinute, code) 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) return this.GetKlineAll(protocol.TypeKlineWeek, code)
} }
// GetStockKlineMonth 获取月k线数据 // GetKlineMonth 获取月k线数据
func (this *Client) GetStockKlineMonth(code string, start, count uint16) (*protocol.KlineResp, error) { func (this *Client) GetKlineMonth(code string, start, count uint16) (*protocol.KlineResp, error) {
return this.GetKline(protocol.TypeKlineMonth, code, start, count) return this.GetKline(protocol.TypeKlineMonth, code, start, count)
} }