SecClient class

SEC EDGAR API client implementing FinancialDataService.

Fetches company data from SEC's XBRL API and parses it into structured financial models.

Implemented types

Constructors

SecClient({Client? client, FinancialParser? parser})

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).
override
getCik(String ticker) Future<int?>
Get the CIK (Central Index Key) for a ticker symbol.
override
getCompanyFacts(String ticker) Future<Map<String, dynamic>>
Get raw company facts from SEC EDGAR.
override
getFilingContent(SecFiling filing) Future<String>
Fetch the text content of a specific filing.
override
getHistoricalFinancials(String ticker, {int years = 10, bool includeQuarterly = true, Set<FinancialMetric>? metrics}) Future<CompanyFinancials>
Fetch historical financial data for a company.
override
getRecentFilings(String ticker, {List<String>? forms, int limit = 10}) Future<List<SecFiling>>
Fetch recent SEC filings for a company.
override
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