public int NumberOfStocksInIndex(string inIndexName) { string unifiedIndexName = unifyName(inIndexName); StockIndex stockIndex = getStockIndexFromStockExchange(unifiedIndexName); return(stockIndex.NumberOfStocksInIndex()); }
public decimal GetIndexValue(string inIndexName, DateTime inTimeStamp) { DateTime roundedTS = roundTimestamp(inTimeStamp); string unifiedIndexName = unifyName(inIndexName); StockIndex stockIndex = getStockIndexFromStockExchange(unifiedIndexName); return(stockIndex.GetIndexValue(roundedTS)); }
public bool IsStockPartOfIndex(string inIndexName, string inStockName) { string unifiedName = unifyName(inStockName); string unifiedIndexName = unifyName(inIndexName); StockIndex stockIndex = getStockIndexFromStockExchange(unifiedIndexName); return(stockIndex.IsStockPartOfIndex(unifiedName)); }