summaryrefslogtreecommitdiff
path: root/frontend/types
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/types')
-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;
+};