Add company analysis view with financials, price history, filings, and AI reports

This commit is contained in:
2026-02-27 09:57:44 -05:00
parent e7320f3bdb
commit 7c3836068f
9 changed files with 512 additions and 2 deletions

View File

@@ -93,3 +93,37 @@ export type PortfolioInsight = {
content: string;
created_at: string;
};
export type CompanyFinancialPoint = {
filingDate: string;
filingType: Filing['filing_type'];
revenue: number | null;
netIncome: number | null;
totalAssets: number | null;
cash: number | null;
debt: number | null;
};
export type CompanyAiReport = {
accessionNumber: string;
filingDate: string;
filingType: Filing['filing_type'];
provider: string;
model: string;
summary: string;
};
export type CompanyAnalysis = {
company: {
ticker: string;
companyName: string;
sector: string | null;
cik: string | null;
};
quote: number;
position: Holding | null;
priceHistory: Array<{ date: string; close: number }>;
financials: CompanyFinancialPoint[];
filings: Filing[];
aiReports: CompanyAiReport[];
};