grid2: add grid order debug logs

This commit is contained in:
c9s 2022-12-04 18:32:17 +08:00
parent ea34b3a962
commit 943912f6bf

View File

@ -690,8 +690,16 @@ func (s *Strategy) openGrid(ctx context.Context, session *bbgo.ExchangeSession)
if err2 != nil {
return err
}
// debug info
s.logger.Infof("GRID ORDERS: [")
for _, order := range submitOrders {
s.logger.Info(" - ", order.String())
}
s.logger.Infof("] END OF GRID ORDERS")
for _, order := range createdOrders {
s.logger.Infof(order.String())
s.logger.Info(order.String())
}
}