grid2: set max retries

This commit is contained in:
c9s 2023-10-11 17:33:07 +08:00
parent 0a3baea316
commit a0a7b0ffdc
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

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)