mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-26 16:55:15 +00:00
bbgo: check order side and log error
This commit is contained in:
parent
5103088675
commit
48cbb7fff6
|
@ -146,6 +146,9 @@ func (b *LocalActiveOrderBook) Add(orders ...types.Order) {
|
||||||
case types.SideTypeSell:
|
case types.SideTypeSell:
|
||||||
b.Asks.Add(order)
|
b.Asks.Add(order)
|
||||||
|
|
||||||
|
default:
|
||||||
|
log.Errorf("unexpected order side %s, order: %#v", order.Side, order)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user