FastQuant.DataManager.GetHistoricalFundamentals C# (CSharp) Méthode

GetHistoricalFundamentals() public méthode

public GetHistoricalFundamentals ( IHistoricalDataProvider provider, Instrument instrument, System.DateTime dateTime1, System.DateTime dateTime2 ) : List
provider IHistoricalDataProvider
instrument Instrument
dateTime1 System.DateTime
dateTime2 System.DateTime
Résultat List
        public List<Fundamental> GetHistoricalFundamentals(IHistoricalDataProvider provider, Instrument instrument, DateTime dateTime1, DateTime dateTime2)
        {
            if (provider.IsDisconnected)
            {
                provider.Connect();
            }
            var @class = new DataNotifier();
            var guid = Guid.NewGuid().ToString();
            lock (this.dictionary_0)
            {
                this.dictionary_0.Add(guid, @class);
            }
            provider.Send(new HistoricalDataRequest(instrument, dateTime1, dateTime2, DataObjectType.Fundamental)
            {
                RequestId = guid
            });
            @class.ReadyEvent.WaitOne();
            lock (this.dictionary_0)
            {
                this.dictionary_0.Remove(guid);
            }
            return @class.Data.SelectMany(current => current.Objects).Cast<Fundamental>().ToList();
        }