KB / api
GET /api/v1/sentiment-comparison
Last verified
Auto-generated. This article is rebuilt from FastAPI route introspection by
scripts/build_api_kb.py. Edit the route docstring inapp/and re-run the script — do not edit this file directly.
GET /api/v1/sentiment-comparison
Handler: app.signals.routes.get_sentiment_comparison
Methods: GET
Description
Per-article FinRep-AI news sentiment over the most-recent rows.
Returns the most-recent limit rows from news_items with the
FinRep-AI sentiment reading attached. The endpoint name and shape are
retained from the D6 parallel-run era; the AlphaVantage comparison leg
retired 2026-06 per DOCTRINE.md D22 (FinRep-AI is now the sole
sentiment source), so aggregated_av is permanently null.
Notes:
finrep_ai_score/finrep_ai_label/finrep_ai_run_at/finrep_ai_modelare populated when the FinRep-AI module successfully classified the row.finrep_ai_scoreis in[-1, +1]where positive means bullish and negative means bearish.finrep_ai_labelis one ofpositive/negative/neutral.finrep_ai_modelrecords which Claude model produced the row; pre-pivot rows scored by the legacy CPU FinBERT setup carry NULL there. Either score/label column being NULL means “FinRep-AI was unavailable when this row first landed” and the row is surfaced withfinrep_ai_label = "unavailable".aggregated_avis always null (AlphaVantage retired). The companionaggregated_av_notecarries the retirement reason per DOCTRINE P0 (no silent degradation).
Returns:
{count, limit, items: [{idempotency_key, source, title, published_at, finrep_ai_score, finrep_ai_label, finrep_ai_run_at, finrep_ai_model}], aggregated_av: null, aggregated_av_note: str}
Parameters
| In | Name | Type | Default | Description |
|---|---|---|---|---|
| query | limit | int | 50 | How many most-recent news items to return. Capped at 200 to keep the payload tight. |
Curl
curl -s https://bigclawd.com/api/v1/sentiment-comparison