FinancialDataService class abstract
Abstract interface for financial data access.
This enables dependency injection and allows swapping implementations (e.g., real SEC client vs. mock for testing).
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → void - Close any underlying resources (e.g., HTTP client).
-
getCik(
String ticker) → Future< int?> - Get the CIK (Central Index Key) for a ticker symbol.
-
getCompanyFacts(
String ticker) → Future< Map< String, dynamic> > - Get raw company facts from SEC EDGAR.
-
getFilingContent(
SecFiling filing) → Future< String> - Fetch the text content of a specific filing.
-
getHistoricalFinancials(
String ticker, {int years = 10, bool includeQuarterly = true, Set< FinancialMetric> ? metrics}) → Future<CompanyFinancials> - Fetch historical financial data for a company.
-
getRecentFilings(
String ticker, {List< String> ? forms, int limit = 10}) → Future<List< SecFiling> > - Fetch recent SEC filings for a company.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited