Merge pull request #1338 from c9s/fix/add-grid2-max-retires

FIX: [grid2] set max retries to 5
This commit is contained in:
c9s 2023-10-11 17:44:24 +08:00 committed by GitHub
commit d617bf8ae5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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