max: add limit to the closed order query

This commit is contained in:
c9s 2022-06-18 01:57:34 +08:00
parent ee1ba417cd
commit d6f2f4046a
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -230,6 +230,7 @@ func (e *Exchange) queryClosedOrdersByLastOrderID(ctx context.Context, symbol st
}
req.FromID(lastOrderID)
req.Limit(1000)
maxOrders, err := req.Do(ctx)
if err != nil {