initial masterExchanges

This commit is contained in:
Boki 2025-06-15 12:26:38 -04:00
parent d068898e32
commit 660a2a1ec2
7 changed files with 446 additions and 3 deletions

View file

@ -12,6 +12,8 @@ export type {
AnalystReport,
DocumentBase,
EarningsTranscript,
ExchangeSourceMapping,
MasterExchange,
NewsArticle,
RawDocument,
SecFiling,

View file

@ -198,3 +198,34 @@ export interface AnalystReport extends DocumentBase {
key_points: string[];
financial_projections?: Record<string, number>;
}
/**
* Exchange-related types
*/
export interface ExchangeSourceMapping {
id: string;
name: string;
code?: string;
aliases?: string[];
lastUpdated: Date;
}
export interface MasterExchange extends DocumentBase {
masterExchangeId: string;
shortName?: string;
officialName: string;
country: string;
currency: string;
timezone: string;
active?: boolean;
tradingHours?: {
open: string;
close: string;
timezone: string;
};
sourceMappings: Record<string, ExchangeSourceMapping>;
confidence: number;
verified: boolean;
}