From e66c7b9171c8c08da38120490bed15a9b877d222 Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Mon, 22 Jun 2026 15:11:51 -0700 Subject: feat: add NewsPage component and enable News tab --- frontend/types/api.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'frontend/types/api.ts') diff --git a/frontend/types/api.ts b/frontend/types/api.ts index fac9bff..8143d56 100644 --- a/frontend/types/api.ts +++ b/frontend/types/api.ts @@ -252,3 +252,27 @@ export type RatiosResponse = { dividend_yield: RatioPoint; dividend_payout: RatioPoint; }; + +export type NewsItem = { + id: string; + title: string; + summary: string; + source: string; + url: string; + sentiment: "bullish" | "neutral" | "bearish"; + published_at: string; +}; + +export type NewsAggregate = { + buzz_articles_last_week: number; + bullish_pct: number; + neutral_pct: number; + bearish_pct: number; +}; + +export type NewsResponse = { + items: NewsItem[]; + aggregate: NewsAggregate | null; + provider: "finnhub" | "fmp" | null; + fetched_at: string; +}; -- cgit v1.3-2-g0d8e