mirror of
https://github.com/injoyai/tdx.git
synced 2025-11-26 21:25:35 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ad0abbe6ba |
@@ -457,7 +457,7 @@ func (this *Client) GetHistoryTradeBefore(code string, w *Workday, before time.T
|
||||
start := time.Date(resp.List[0].Time.Year(), resp.List[0].Time.Month(), 1, 0, 0, 0, 0, resp.List[0].Time.Location())
|
||||
var res *protocol.TradeResp
|
||||
w.Range(start, before, func(t time.Time) bool {
|
||||
res, err = this.GetHistoryTradeDay(start.Format("20060102"), code)
|
||||
res, err = this.GetHistoryTradeDay(t.Format("20060102"), code)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user