bbgo: check order side and log error

This commit is contained in:
c9s 2022-01-10 17:26:06 +08:00
parent 5103088675
commit 48cbb7fff6

View File

@ -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)
}
}
}