summaryrefslogtreecommitdiff
path: root/frontend/types/api.ts
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2026-06-22 15:11:51 -0700
committerTyler Hoang <tyler@tylerhoang.xyz>2026-06-22 15:11:51 -0700
commite66c7b9171c8c08da38120490bed15a9b877d222 (patch)
tree7a468ada2e53989c36555a42de12fe8069edbc49 /frontend/types/api.ts
parent911765d8d1094df1baed4c3a313988e18cc31755 (diff)
feat: add NewsPage component and enable News tab
Diffstat (limited to 'frontend/types/api.ts')
-rw-r--r--frontend/types/api.ts24
1 files changed, 24 insertions, 0 deletions
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;
+};