Esempio n. 1
0
        public int NumberOfStocksInIndex(string inIndexName)
        {
            string     unifiedIndexName = unifyName(inIndexName);
            StockIndex stockIndex       = getStockIndexFromStockExchange(unifiedIndexName);

            return(stockIndex.NumberOfStocksInIndex());
        }
Esempio n. 2
0
        public decimal GetIndexValue(string inIndexName, DateTime inTimeStamp)
        {
            DateTime   roundedTS        = roundTimestamp(inTimeStamp);
            string     unifiedIndexName = unifyName(inIndexName);
            StockIndex stockIndex       = getStockIndexFromStockExchange(unifiedIndexName);

            return(stockIndex.GetIndexValue(roundedTS));
        }
Esempio n. 3
0
        public bool IsStockPartOfIndex(string inIndexName, string inStockName)
        {
            string unifiedName      = unifyName(inStockName);
            string unifiedIndexName = unifyName(inIndexName);

            StockIndex stockIndex = getStockIndexFromStockExchange(unifiedIndexName);

            return(stockIndex.IsStockPartOfIndex(unifiedName));
        }