UNPKG

@pratiksha90/financial-data-extractors

Version:

Utilities for extracting financial data from various economic calendar websites

43 lines (42 loc) 945 B
/** * Common interfaces for the financial data extractors */ export interface ExtractorOptions { document: Document; } export interface EventData { date: string; time?: string; country?: string; currency?: string; event: string; actual?: string | number | null; forecast?: string | number | null; previous?: string | number | null; revised?: string | number | null; impact?: string; url?: string; reference?: string; period?: string; [key: string]: any; } export interface CalendarData { metadata: { title: string; source: string; extractedAt: string; [key: string]: any; }; events: EventData[]; } export interface TableMetadata { tableName?: string; tableId?: string; tableClass?: string; url: string; timestamp: string; rowCount: number; columnCount: number; tableType?: string; [key: string]: any; }