Automate issuer overlay creation from ticker searches
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user