FastQuant.FileDataServer.GetDataSeries C# (CSharp) Method

GetDataSeries() public method

public GetDataSeries ( Instrument instrument, byte type, BarType barType = BarType.Time, long barSize = 60 ) : DataSeries
instrument Instrument
type byte
barType BarType
barSize long
return DataSeries
        public override DataSeries GetDataSeries(Instrument instrument, byte type, BarType barType = BarType.Time, long barSize = 60)
        {
            if (type == DataObjectType.Bar)
                return GetBarDataSeriesInCache(instrument, barType, barSize, false);

            var series = this.byType[type][instrument.Id];
            if (series == null)
            {
                string name = DataSeriesNameHelper.GetName(instrument, type);
                series = (this.dataFile.Get(name) as DataSeries);
                this.byType[type][instrument.Id] = series;
            }
            return series;
        }

Same methods

FileDataServer::GetDataSeries ( string name ) : DataSeries