diff --git a/pkg/bbgo/order_executor_general.go b/pkg/bbgo/order_executor_general.go index 40b63c9ee..751366b2b 100644 --- a/pkg/bbgo/order_executor_general.go +++ b/pkg/bbgo/order_executor_general.go @@ -218,6 +218,10 @@ func (e *GeneralOrderExecutor) SubmitOrders(ctx context.Context, submitOrders .. } createdOrders, errIdx, err := BatchPlaceOrder(ctx, e.session.Exchange, formattedOrders...) + if err != nil { + log.WithError(err).Errorf("place order error, will retry orders: %v", errIdx) + } + if len(errIdx) > 0 { createdOrders2, err2 := BatchRetryPlaceOrder(ctx, e.session.Exchange, errIdx, formattedOrders...) if err2 != nil { diff --git a/pkg/strategy/grid2/strategy.go b/pkg/strategy/grid2/strategy.go index 6044e37d9..25c04c3ae 100644 --- a/pkg/strategy/grid2/strategy.go +++ b/pkg/strategy/grid2/strategy.go @@ -826,11 +826,11 @@ func (s *Strategy) openGrid(ctx context.Context, session *bbgo.ExchangeSession) return err } - s.logger.Infof("grid orders submitted:") for _, order := range createdOrders { s.logger.Info(order.String()) } + s.logger.Infof("ALL GRID ORDERS SUBMITTED") return nil }