Automate issuer overlay creation from ticker searches
This commit is contained in:
@@ -72,7 +72,7 @@ type FetchPrimaryFilingTextOptions = {
|
||||
maxChars?: number;
|
||||
};
|
||||
|
||||
export type FilingDocumentText = {
|
||||
type FilingDocumentText = {
|
||||
source: "primary_document";
|
||||
url: string;
|
||||
text: string;
|
||||
@@ -573,7 +573,7 @@ export async function fetchRecentFilings(
|
||||
return filings;
|
||||
}
|
||||
|
||||
export async function fetchLatestFilingMetrics(cik: string) {
|
||||
async function fetchLatestFilingMetrics(cik: string) {
|
||||
const normalized = cik.padStart(10, "0");
|
||||
const payload = await fetchJson<CompanyFactsPayload>(
|
||||
`https://data.sec.gov/api/xbrl/companyfacts/CIK${normalized}.json`,
|
||||
|
||||
Reference in New Issue
Block a user