From a0a7b0ffdcd709aa0370a73bf16ecdbbce9f7e76 Mon Sep 17 00:00:00 2001 From: c9s Date: Wed, 11 Oct 2023 17:33:07 +0800 Subject: [PATCH] grid2: set max retries --- pkg/strategy/grid2/strategy.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/strategy/grid2/strategy.go b/pkg/strategy/grid2/strategy.go index 90af91cba..32c3dc528 100644 --- a/pkg/strategy/grid2/strategy.go +++ b/pkg/strategy/grid2/strategy.go @@ -1888,6 +1888,7 @@ func (s *Strategy) Run(ctx context.Context, _ bbgo.OrderExecutor, session *bbgo. bbgo.Sync(ctx, s) }) orderExecutor.ActiveMakerOrders().OnFilled(s.newOrderUpdateHandler(ctx, session)) + orderExecutor.SetMaxRetries(5) if s.logger != nil { orderExecutor.SetLogger(s.logger)