mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
历史分时成交sz000001在20241116只能查到3141天数据
This commit is contained in:
@@ -253,7 +253,9 @@ func (this *Client) GetMinuteTradeAll(code string) (*protocol.MinuteTradeResp, e
|
|||||||
return resp, nil
|
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) {
|
func (this *Client) GetHistoryMinuteTrade(date, code string, start, count uint16) (*protocol.HistoryMinuteTradeResp, error) {
|
||||||
f, err := protocol.MHistoryMinuteTrade.Frame(date, code, start, count)
|
f, err := protocol.MHistoryMinuteTrade.Frame(date, code, start, count)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -267,6 +269,7 @@ func (this *Client) GetHistoryMinuteTrade(date, code string, start, count uint16
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GetHistoryMinuteTradeAll 获取历史分时全部交易,通过多次请求来拼接,只能获取昨天及之前的数据
|
// GetHistoryMinuteTradeAll 获取历史分时全部交易,通过多次请求来拼接,只能获取昨天及之前的数据
|
||||||
|
// 历史数据sz000001在20241116只能查到21111112,13年差几天,3141天,或者其他规则
|
||||||
func (this *Client) GetHistoryMinuteTradeAll(date, code string) (*protocol.HistoryMinuteTradeResp, error) {
|
func (this *Client) GetHistoryMinuteTradeAll(date, code string) (*protocol.HistoryMinuteTradeResp, error) {
|
||||||
resp := &protocol.HistoryMinuteTradeResp{}
|
resp := &protocol.HistoryMinuteTradeResp{}
|
||||||
size := uint16(2000)
|
size := uint16(2000)
|
||||||
|
|||||||
Reference in New Issue
Block a user