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

    Interface CandleGap

    A run of missing candles between two consecutive candles in the buffer — i.e. their timestamps are further apart than one resolution interval.

    Gaps are normal for non-24/7 markets (weekends, exchange close) and a signal of dropped data for 24/7 markets (crypto). findGaps only detects them; the consumer decides whether to backfill, draw a session break, or ignore.

    interface CandleGap {
        fromIndex: number;
        fromTime: number;
        missingCount: number;
        toIndex: number;
        toTime: number;
    }
    Index

    Properties

    fromIndex: number

    Index of the candle just before the gap.

    fromTime: number

    Timestamp (Unix seconds) of fromIndex.

    missingCount: number

    Estimated number of missing candles in the gap.

    toIndex: number

    Index of the candle just after the gap.

    toTime: number

    Timestamp (Unix seconds) of toIndex.