market-data-sanity-checker - v1.2.0
    Preparing search index...

    Function renderCompareHtml

    • Render a two-source comparison report as a self-contained HTML dashboard. When both datasets are passed, a 'Price overlay' section plots the two close series over their shared dates with divergence markers.

      Parameters

      • report: ComparisonReport
      • options: {
            a?: {
                symbol: string;
                exchange?: string;
                currency?: string;
                source: string;
                identifiers?: { isin?: string; cusip?: string; figi?: string };
                bars: {
                    timestamp: string;
                    open: number;
                    high: number;
                    low: number;
                    close: number;
                    volume?: number;
                    adjustmentFactor?: number;
                }[];
                dividends?: {
                    exDate: string;
                    payDate?: string;
                    amount: number;
                    currency?: string;
                    type?: "regular"
                    | "special";
                }[];
                splits?: { exDate: string; numerator: number; denominator: number }[];
                fundamentals?: {
                    marketCap?: number;
                    sharesOutstanding?: number;
                    eps?: number;
                    pe?: number;
                    dividendYield?: number;
                    payoutRatio?: number;
                };
            };
            b?: {
                symbol: string;
                exchange?: string;
                currency?: string;
                source: string;
                identifiers?: { isin?: string; cusip?: string; figi?: string };
                bars: {
                    timestamp: string;
                    open: number;
                    high: number;
                    low: number;
                    close: number;
                    volume?: number;
                    adjustmentFactor?: number;
                }[];
                dividends?: {
                    exDate: string;
                    payDate?: string;
                    amount: number;
                    currency?: string;
                    type?: "regular"
                    | "special";
                }[];
                splits?: { exDate: string; numerator: number; denominator: number }[];
                fundamentals?: {
                    marketCap?: number;
                    sharesOutstanding?: number;
                    eps?: number;
                    pe?: number;
                    dividendYield?: number;
                    payoutRatio?: number;
                };
            };
        } = {}

      Returns string