Source/NFX/Financial/Market/SecDb/SecDBFileReader.cs
/// <summary>
/// Returns candle data at the specified resolution skipping the first specified number of seconds
/// </summary>
Returns candle data at the specified resolution skipping the first specified number of seconds
Returns candle data at the specified resolution skipping the first specified number of seconds
public IEnumerable<CandleSample> GetCandleDataAsCandleSamples(CandleHeader header, int skipSeconds = 0)
      {
        return this.GetCandleData(header, skipSeconds)
                   .Select( cd =>
                           {
                             var cs = cd.ToCandleSample();
                             cs.TimeSpanMs = header.ResolutionSec * 1000;
                             return cs;
                           });
      }
public IEnumerable < CandleSample > GetCandleDataAsCandleSamples ( CandleHeader header , int skipSeconds = 0 ) { return this . GetCandleData ( header , skipSeconds ) . Select ( cd => { var cs = cd . ToCandleSample ( ) ; cs . TimeSpanMs = header . ResolutionSec * 1000 ; return cs ; } ) ; }
Returns candle data at the specified resolution skipping the first specified number of seconds
Returns candle data at the specified resolution skipping the first specified number of seconds
header
CandleHeader
<not_specific>
skipSeconds
int
<not_specific>