示例#1
0
        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);
        }
示例#2
0
 public TaxableBuyOrder(ExchangeOrder order)
     : base(order)
 {
 }
示例#3
0
 public TaxableBaseOrder(ExchangeOrder order)
 {
     SourceOrder = order;
     OnTaxableAddSource();
 }
 public TaxableSellOrder(ExchangeOrder order)
     : base(order)
 {
 }