public void Cancel(string orderId) { var operation = Find(orderId); if (operation == null) { return; } BalancePriceToQuantityMap(operation); if (operation.OperationType == OperationType.Buy) { BuyOperations.Remove(operation); } else { SellOperations.Remove(operation); } }
public void CancelBuyOperation(BuySellOperation operation) { BalancePriceToQuantityMap(operation); BuyOperations.Remove(operation); }