feat(financials-v2): add financial statements endpoint and query plumbing

This commit is contained in:
2026-03-02 09:34:05 -05:00
parent 3f3182310b
commit 9b20448d93
5 changed files with 247 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ import { useCallback } from 'react';
import {
aiReportQueryOptions,
companyAnalysisQueryOptions,
companyFinancialStatementsQueryOptions,
filingsQueryOptions,
holdingsQueryOptions,
latestPortfolioInsightQueryOptions,
@@ -37,6 +38,13 @@ export function useLinkPrefetch() {
router.prefetch(financialsHref);
void queryClient.prefetchQuery(companyAnalysisQueryOptions(normalizedTicker));
void queryClient.prefetchQuery(companyFinancialStatementsQueryOptions({
ticker: normalizedTicker,
mode: 'standardized',
statement: 'income',
window: '10y',
includeDimensions: false
}));
void queryClient.prefetchQuery(filingsQueryOptions({ ticker: normalizedTicker, limit: 120 }));
}, [queryClient, router]);