mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 08:45:16 +00:00
use debugOrders
This commit is contained in:
parent
f987c85f17
commit
ffdc242f66
|
@ -1429,7 +1429,7 @@ func (s *Strategy) recoverGridWithOpenOrdersByScanningTrades(ctx context.Context
|
||||||
return errors.Wrapf(err, "verify grid with error")
|
return errors.Wrapf(err, "verify grid with error")
|
||||||
}
|
}
|
||||||
|
|
||||||
s.logger.Debugf("emit filled orders %+v", filledOrders)
|
s.debugOrders("emit filled orders", filledOrders)
|
||||||
|
|
||||||
// 5. emit the filled orders
|
// 5. emit the filled orders
|
||||||
activeOrderBook := s.orderExecutor.ActiveMakerOrders()
|
activeOrderBook := s.orderExecutor.ActiveMakerOrders()
|
||||||
|
@ -1453,7 +1453,7 @@ func (s *Strategy) recoverGridWithOpenOrdersByScanningTrades(ctx context.Context
|
||||||
func (s *Strategy) verifyFilledGrid(pins []Pin, pinOrders PinOrderMap, filledOrders []types.Order) error {
|
func (s *Strategy) verifyFilledGrid(pins []Pin, pinOrders PinOrderMap, filledOrders []types.Order) error {
|
||||||
s.logger.Debugf("pins: %+v", pins)
|
s.logger.Debugf("pins: %+v", pins)
|
||||||
s.logger.Debugf("open pin orders: %+v", pinOrders)
|
s.logger.Debugf("open pin orders: %+v", pinOrders)
|
||||||
s.logger.Debugf("filled orders: %+v", filledOrders)
|
s.debugOrders("filled orders", filledOrders)
|
||||||
|
|
||||||
for _, filledOrder := range filledOrders {
|
for _, filledOrder := range filledOrders {
|
||||||
price := s.Market.FormatPrice(filledOrder.Price)
|
price := s.Market.FormatPrice(filledOrder.Price)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user