Source/NFX/Financial/Market/SecDb/SecDBFileReader.cs
/// <summary>
/// Tries to find a candle stream returned as CandleSamples with the specified exact resolution skipping the specofoed number of seconds and returns it, or
/// returns an empty enumerable if resolution is not available
/// </summary>
Tries to find a candle stream returned as CandleSamples with the specified exact resolution skipping the specofoed number of seconds and returns it, or
returns an empty enumerable if resolution is not available
Tries to find a candle stream returned as CandleSamples with the specified exact resolution skipping the specofoed number of seconds and returns it or returns an empty enumerable if resolution is not available
public IEnumerable<CandleSample> GetCandleDataAsCandleSamples(uint resolutionSec, int skipSeconds = 0)
      {
        var hdr = GetCandleHeader(resolutionSec);
        if (!hdr.IsAssigned) return Enumerable.Empty<CandleSample>();
        return this.GetCandleData(hdr, skipSeconds)
                   .Select( cd =>
                           {
                            var cs = cd.ToCandleSample();
                            cs.TimeSpanMs = hdr.ResolutionSec * 1000;
                            return cs;
                           });
      }
public IEnumerable < CandleSample > GetCandleDataAsCandleSamples ( uint resolutionSec , int skipSeconds = 0 ) { var hdr = GetCandleHeader ( resolutionSec ) ; if ( ! hdr . IsAssigned ) return Enumerable . Empty < CandleSample > ( ) ; return this . GetCandleData ( hdr , skipSeconds ) . Select ( cd => { var cs = cd . ToCandleSample ( ) ; cs . TimeSpanMs = hdr . ResolutionSec * 1000 ; return cs ; } ) ; }
Tries to find a candle stream returned as CandleSamples with the specified exact resolution skipping the specofoed number of seconds and returns it, or
returns an empty enumerable if resolution is not available
Tries to find a candle stream returned as CandleSamples with the specified exact resolution skipping the specofoed number of seconds and returns it or returns an empty enumerable if resolution is not available
resolutionSec
uint
skipSeconds
int