From d6f2f4046ae22097615c66e506b1d01392d092d6 Mon Sep 17 00:00:00 2001 From: c9s Date: Sat, 18 Jun 2022 01:57:34 +0800 Subject: [PATCH] max: add limit to the closed order query --- pkg/exchange/max/exchange.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/exchange/max/exchange.go b/pkg/exchange/max/exchange.go index f7493975e..79a7076ac 100644 --- a/pkg/exchange/max/exchange.go +++ b/pkg/exchange/max/exchange.go @@ -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 {