Automate issuer overlay creation from ticker searches

This commit is contained in:
2026-03-19 20:44:58 -04:00
parent 17de3dd72d
commit 391d6d34ce
79 changed files with 4746 additions and 695 deletions

View File

@@ -1,12 +1,12 @@
import { format } from 'date-fns';
import type { Filing, RecentDevelopmentItem, RecentDevelopments } from '@/lib/types';
export type RecentDevelopmentSourceContext = {
type RecentDevelopmentSourceContext = {
filings: Filing[];
now?: Date;
};
export type RecentDevelopmentSource = {
type RecentDevelopmentSource = {
name: string;
fetch: (ticker: string, context: RecentDevelopmentSourceContext) => Promise<RecentDevelopmentItem[]>;
};
@@ -104,8 +104,8 @@ export const secFilingsDevelopmentSource: RecentDevelopmentSource = {
}
};
export const yahooDevelopmentSource: RecentDevelopmentSource | null = null;
export const investorRelationsRssSource: RecentDevelopmentSource | null = null;
const yahooDevelopmentSource: RecentDevelopmentSource | null = null;
const investorRelationsRssSource: RecentDevelopmentSource | null = null;
export async function getRecentDevelopments(
ticker: string,