kucoin: fix closed orders query

This commit is contained in:
c9s 2022-01-24 23:56:48 +08:00
parent f284c35b81
commit 0bf6e533e0

View File

@ -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)