private static BaseOrder CreateOrder(OrderType type, int orderId) { BaseOrder trade = null; switch (type) { case OrderType.Buy: case OrderType.Sell: trade = new ExchangeOrder(orderId) { Type = type }; break; case OrderType.Deposit: case OrderType.Withdraw: trade = new TransferOrder(orderId) { Type = type }; break; } return(trade); }
public TaxableBuyOrder(ExchangeOrder order) : base(order) { }
public TaxableBaseOrder(ExchangeOrder order) { SourceOrder = order; OnTaxableAddSource(); }
public TaxableSellOrder(ExchangeOrder order) : base(order) { }