bbgo: fix order store RemoveCancelled

This commit is contained in:
c9s 2021-12-26 15:47:39 +08:00
parent 65da02af2c
commit 770c1067fc

View File

@ -128,9 +128,7 @@ func (s *OrderStore) handleOrderUpdate(order types.Order) {
case types.OrderStatusCanceled:
if s.RemoveCancelled {
if order.Status != types.OrderStatusPartiallyFilled {
s.Remove(order)
}
s.Remove(order)
}
case types.OrderStatusRejected: