mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
kucoin: fix closed orders query
This commit is contained in:
parent
f284c35b81
commit
0bf6e533e0
|
@ -309,8 +309,6 @@ func (e *Exchange) QueryClosedOrders(ctx context.Context, symbol string, since,
|
|||
// If you specify the end time only, the system will automatically calculate the start time as end time minus 7*24 hours, and vice versa.
|
||||
if until.Sub(since) < 7*24*time.Hour {
|
||||
req.EndAt(until)
|
||||
} else {
|
||||
req.EndAt(since.Add(7*24*time.Hour - time.Minute))
|
||||
}
|
||||
|
||||
orderList, err := req.Do(ctx)
|
||||
|
|
Loading…
Reference in New Issue
Block a user