mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-10 09:11:55 +00:00
grid2: add grid order debug logs
This commit is contained in:
parent
ea34b3a962
commit
943912f6bf
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user