sec-edgar-api
Version:
Fetch and parse SEC earnings reports and other filings. Useful for financial analysis.
23 lines (22 loc) • 835 B
TypeScript
/**
* Contains all keys matched from the report, along with the added keys dateEnd, dateFiled, fiscalPeriod, fiscalYear.
*/
export type ReportRaw = {
[key: string]: string | number | boolean | null;
cik: number;
url: string | null;
dateReport: string;
dateFiled: string;
fiscalPeriod: FiscalPeriod;
fiscalYear: number;
splitRatio: number | null;
splitDate: string | null;
};
/**
* QUARTERLY = 10-Q and 10-K forms for the quarter | ANNUAL = 10-K forms for the year |
* 8K = all 8K form types | DOCUMENT_ENTITY_INFO = reports under key dei
*
* for dei, see https://www.sec.gov/structureddata/announcement/osd-announcement-2212-new-2022q4-taxonomies
*/
export type ReportType = 'QUARTERLY' | 'ANNUAL' | '8K' | 'DOCUMENT_ENTITY_INFO';
export type FiscalPeriod = 'Q1' | 'Q2' | 'Q3' | 'Q4' | 'FY';