Stock[] Load(DextopReadFilter filter) { var data = StockDataProvider.GetStockData(); return(data.ToArray()); }
private static IStockDataProvider GetDataProvider(StockDataProvider dataProviderType) { IStockDataProvider dataProvider = null; switch (dataProviderType) { case StockDataProvider.ABC: dataProvider = new ABCDataProvider(); break; case StockDataProvider.Yahoo: dataProvider = new YahooDataProvider(); break; case StockDataProvider.YahooIntraday: dataProvider = new YahooIntradayDataProvider(); break; case StockDataProvider.Google: dataProvider = new GoogleDataProvider(); break; case StockDataProvider.GoogleIntraday: dataProvider = new GoogleIntradayDataProvider(); break; case StockDataProvider.CommerzBankIntraday: dataProvider = new CommerzBankIntradayDataProvider(); break; case StockDataProvider.CBOE: dataProvider = new CBOEDataProvider(); break; case StockDataProvider.FINRA: dataProvider = new FINRADataProvider(); break; case StockDataProvider.Harpex: dataProvider = new HarpexDataProvider(); break; case StockDataProvider.COT: dataProvider = new COTDataProvider(); break; case StockDataProvider.Portofolio: dataProvider = new PortfolioDataProvider(); break; case StockDataProvider.Generated: dataProvider = new GeneratedDataProvider(); break; case StockDataProvider.Breadth: dataProvider = new BreadthDataProvider(); break; case StockDataProvider.Rydex: dataProvider = new RydexDataProvider(); break; case StockDataProvider.AAII: dataProvider = new AAIIDataProvider(); break; case StockDataProvider.Ratio: dataProvider = new RatioDataProvider(); break; case StockDataProvider.NASDACQShortInterest: //dataProvider = new NASDACQShortInterestDataProvider(); break; case StockDataProvider.BarChart: dataProvider = new BarChartDataProvider(); break; case StockDataProvider.BarChartIntraday: dataProvider = new BarChartIntradayDataProvider(); break; case StockDataProvider.Test: break; default: break; } return dataProvider; }