diff --git a/pkg/bbgo/active_book.go b/pkg/bbgo/active_book.go index 4a86c8cc5..9fa306c2a 100644 --- a/pkg/bbgo/active_book.go +++ b/pkg/bbgo/active_book.go @@ -146,6 +146,9 @@ func (b *LocalActiveOrderBook) Add(orders ...types.Order) { case types.SideTypeSell: b.Asks.Add(order) + default: + log.Errorf("unexpected order side %s, order: %#v", order.Side, order) + } } }