@rekurt/openkline - v0.2.0
    Preparing search index...

    Function findGaps

    • Scan a buffer for gaps: places where consecutive candle timestamps differ by more than intervalSeconds. A tolerance factor absorbs minor jitter (e.g. exchange timestamps that drift by a few seconds) so only genuine missing-candle runs are reported.

      Parameters

      • buffer: CandleBuffer

        The candle buffer to scan.

      • intervalSeconds: number

        Expected spacing between candles (see resolutionToSeconds). Must be > 0.

      • tolerance: number = 1.5

        Multiplier applied to intervalSeconds as the gap threshold. Default 1.5 — a gap is reported when dt > interval * 1.5.

      Returns CandleGap[]