public List <IMarketData> GetMarketDataList() { if (CurrentDataSource == null) { return(null); } if (AnalyseType != DistributeAnalyseType.Instrument) { InstrumentList.Clear(); SectorList.ForEach(s => { InstrumentList.AddRange(Instrument.GetInstrumentBySector(s, AnalyseType)); }); } return(CurrentDataSource.GetDataList(InstrumentList, StartTime, EndTime, Grade)); }