예제 #1
0
 public double OrderTotals(string symbol, OrderDirection oDir)
 {
     if (orderBook.ContainsKey(symbol))
     {
         SecurityOrders symbolOrders = orderBook[symbol];
         return(symbolOrders.OrderQuantity(oDir));
     }
     return(0);
 }
예제 #2
0
        public void NewOrder(OrderDetails details, OrderType oType, OrderDirection oDir)
        {
            if (!orderBook.ContainsKey(details.Symbol))
            {
                orderBook[details.Symbol] = new SecurityOrders();
            }
            SecurityOrders symbolOrders = orderBook[details.Symbol];

            symbolOrders.NewOrder(details, oType, oDir);
        }