mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 23:05:15 +00:00
strategy: fix typo
This commit is contained in:
parent
c2747ca9e4
commit
8f4ba971f1
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user