grid2: another fix

This commit is contained in:
c9s 2022-12-04 18:28:34 +08:00
parent 01b013fcc7
commit ea34b3a962

View File

@ -804,7 +804,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
} }
session.UserDataStream.OnStart(func() { session.UserDataStream.OnStart(func() {
if !s.TriggerPrice.IsZero() { if s.TriggerPrice.IsZero() {
if err := s.openGrid(ctx, session); err != nil { if err := s.openGrid(ctx, session); err != nil {
s.logger.WithError(err).Errorf("failed to setup grid orders") s.logger.WithError(err).Errorf("failed to setup grid orders")
} }