ChemPal Documentation - v1.18.0
    Preparing search index...

    Interface PriceComparison

    The result of comparing fresh prices with an alert's last known ones.

    export interface PriceComparison {
    /** The prices that dropped far enough to report, largest drop first. */
    drops: PriceDrop[];
    /** Whether any native price differs from the last known one. */
    changed: boolean;
    /** Prices to compare the next check against. */
    lastPrices: Record<string, PriceSnapshot>;
    }
    interface PriceComparison {
        drops: PriceDrop[];
        changed: boolean;
        lastPrices: Record<string, PriceSnapshot>;
    }
    Index

    Properties

    drops: PriceDrop[]

    The prices that dropped far enough to report, largest drop first.

    changed: boolean

    Whether any native price differs from the last known one.

    lastPrices: Record<string, PriceSnapshot>

    Prices to compare the next check against.