data/data library
Data layer for the finance-mcp server.
This library provides:
- Models: Domain objects for financial data
- Services: Data access (SEC client, parser)
- Constants: XBRL concept mappings
Classes
- BalanceSheet
- Balance sheet data for a single period.
- CashFlowStatement
- Cash flow statement data for a single period.
- CompanyFinancials
- Complete financial data for a company.
- DcfValuation
- DCF (Discounted Cash Flow) valuation parameters and calculator.
- FetchOptions
- Options for fetching financial data.
- FinancialDataService
- Abstract interface for financial data access.
- FinancialMetricValue
- A single financial metric value with metadata.
- FinancialParser
- Parser for SEC XBRL financial data.
- FinancialStatements
- Complete financial statements for a single fiscal period.
- FiscalPeriod
- Represents a fiscal period (year + quarter).
- IncomeStatement
- Income statement data for a single period.
- MetricHistory
- Historical data for a single metric across multiple periods.
- SecClient
- SEC EDGAR API client implementing FinancialDataService.
- SecFiling
- Model representing an SEC EDGAR filing.
Enums
- FinancialMetric
- Enumeration of standardized financial metrics.
Constants
-
conceptMappings
→ const Map<
FinancialMetric, List< String> > - Maps standardized metrics to possible SEC XBRL concept tags. Tags are ordered by priority - more common/reliable tags first.
Functions
-
getPreferredUnit(
FinancialMetric metric) → String - Gets the appropriate unit type for a metric.