EU Parliament Monitor — API Documentation - v0.8.24
    Preparing search index...
    • Compare the current risk score against historical baselines (7-day and 30-day averages).

      Scores are considered 'above' when current > average by more than 0.1, 'below' when current < average by more than 0.1, and 'at' otherwise.

      Parameters

      • riskId: string

        Identifier of the risk being assessed

      • currentScore: number

        Current risk score

      • sevenDayScores: readonly number[]

        Historical scores from the past 7 days

      • thirtyDayScores: readonly number[]

        Historical scores from the past 30 days

      Returns HistoricalRiskComparison

      HistoricalRiskComparison with averages and relative position