strategy: fix typo

This commit is contained in:
Andy Cheng 2022-04-02 21:27:52 +08:00
parent c2747ca9e4
commit 8f4ba971f1
No known key found for this signature in database
GPG Key ID: 936427CF651A9D28

View File

@ -599,7 +599,7 @@ func (s *Strategy) Run(ctx context.Context, orderExecutor bbgo.OrderExecutor, se
orderForm := s.trailingStopControl.GenerateStopOrder(s.state.Position.Base) orderForm := s.trailingStopControl.GenerateStopOrder(s.state.Position.Base)
orders, err := s.submitOrders(ctx, orderExecutor, orderForm) orders, err := s.submitOrders(ctx, orderExecutor, orderForm)
if err != nil { if err != nil {
log.WithError(err).Error("submit %s profit trailing stop order error", s.Symbol) log.WithError(err).Errorf("submit %s profit trailing stop order error", s.Symbol)
s.Notify("submit %s profit trailing stop order error", s.Symbol) s.Notify("submit %s profit trailing stop order error", s.Symbol)
} else { } else {
s.trailingStopControl.OrderID = orders.IDs()[0] s.trailingStopControl.OrderID = orders.IDs()[0]