do not remove order if it's partially filled

This commit is contained in:
c9s 2021-10-08 14:17:47 +08:00
parent 9e93cd66de
commit 9e1d28f3b3

View File

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