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.
intervalSeconds
The candle buffer to scan.
Expected spacing between candles (see resolutionToSeconds). Must be > 0.
resolutionToSeconds
Multiplier applied to intervalSeconds as the gap threshold. Default 1.5 — a gap is reported when dt > interval * 1.5.
1.5
dt > interval * 1.5
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.