add verbose log message for movingstop

This commit is contained in:
c9s 2020-12-03 16:46:02 +08:00
parent 17fd6a405b
commit 976a4c6732

View File

@ -141,6 +141,8 @@ func (s *Strategy) place(ctx context.Context, orderExecutor *bbgo.ExchangeOrderE
stopPrice = stopPrice * s.StopPriceRatio.Float64()
}
log.Infof("placing movingstop order %s at stop price %f, quantity %f", s.Symbol, stopPrice, quantity.Float64())
retOrders, err := orderExecutor.SubmitOrders(ctx, types.SubmitOrder{
Symbol: s.Symbol,
Side: types.SideTypeSell,