EU Parliament Monitor — API Documentation - v0.8.24
    Preparing search index...
    • Compute the velocity (rate and direction of change) of a political risk score.

      Velocity thresholds (scoreDelta):

      • 1.5 → rapidly-escalating

      • 0.5 → escalating

      • ≥ -0.5 → stable
      • ≥ -1.5 → de-escalating
      • < -1.5 → rapidly-de-escalating

      Parameters

      • riskId: string

        Identifier of the risk being assessed

      • previousScore: number

        Score from the previous assessment run

      • currentScore: number

        Score from the current assessment run

      Returns RiskVelocity

      RiskVelocity with signed delta and assessment labels