Exemplo n.º 1
0
        public static Order Sell(DateTime timestamp, double price, int quantity, IBroker broker)
        {
            double fee = broker.CalculateCommission(quantity, price);

            return(new Order(OrderType.Sell, timestamp, price, quantity, fee));
        }
Exemplo n.º 2
0
        internal double GetValue(double price)
        {
            double fee = myBroker.CalculateCommission(myQuantity, price);

            return(myQuantity * price - fee + myCash);
        }
Exemplo n.º 3
0
Arquivo: Order.cs Projeto: bg0jr/Maui
 public static Order Sell( DateTime timestamp, double price, int quantity, IBroker broker )
 {
     double fee = broker.CalculateCommission( quantity, price );
     return new Order( OrderType.Sell, timestamp, price, quantity, fee );
 }