mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
fix kline sync query
This commit is contained in:
parent
a5c7ffa134
commit
8bf5c5f778
|
@ -158,9 +158,8 @@ func (e *Exchange) QueryKLines(ctx context.Context, symbol string, interval type
|
|||
req.Interval(toLocalInterval(interval))
|
||||
if options.StartTime != nil {
|
||||
req.StartAt(*options.StartTime)
|
||||
}
|
||||
|
||||
if options.EndTime != nil {
|
||||
req.EndAt(options.StartTime.Add(1500 * interval.Duration()))
|
||||
} else if options.EndTime != nil {
|
||||
req.EndAt(*options.EndTime)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user