grid2: fix log format

This commit is contained in:
c9s 2022-12-05 19:43:58 +08:00
parent c4544cf8b2
commit a67d01e821

View File

@ -735,7 +735,7 @@ func (s *Strategy) openGrid(ctx context.Context, session *bbgo.ExchangeSession)
for i, order := range submitOrders {
if i > 0 && lastPrice.Compare(order.Price) >= 0 && lastPrice.Compare(submitOrders[i-1].Price) <= 0 {
s.logger.Info(" - LAST PRICE: %f", lastPrice.Float64())
s.logger.Infof(" - LAST PRICE: %f", lastPrice.Float64())
}
s.logger.Info(" - ", order.String())