From adb3ee2fbf0b0686afc3e51b2bccc3423448ded9 Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Mon, 18 May 2026 00:17:11 -0700 Subject: feat: add FinancialRow/Statement/Response frontend types --- frontend/types/api.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'frontend/types/api.ts') diff --git a/frontend/types/api.ts b/frontend/types/api.ts index 84dfd19..3cc93e4 100644 --- a/frontend/types/api.ts +++ b/frontend/types/api.ts @@ -99,3 +99,24 @@ export type WatchlistResponse = { items: WatchlistItem[]; limit: number; }; + +export type FinancialRow = { + label: string; + indent: number; + is_total: boolean; + is_section: boolean; + is_margin: boolean; + values: (number | null)[]; +}; + +export type FinancialStatement = { + columns: string[]; + rows: FinancialRow[]; +}; + +export type FinancialsResponse = { + period: "annual" | "quarterly"; + income: FinancialStatement; + balance: FinancialStatement; + cash_flow: FinancialStatement; +}; -- cgit v1.3-2-g0d8e