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,8 +107,10 @@ func (s *OrderStore) handleOrderUpdate(order types.Order) {
case types.OrderStatusCanceled:
if s.RemoveCancelled {
if order.Status != types.OrderStatusPartiallyFilled {
s.Remove(order)
}
}
case types.OrderStatusRejected:
s.Remove(order)