fmp-node-types 0.2.0-beta.5 → 0.2.3-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -3115,137 +3115,29 @@ type CryptoList = z.infer<typeof CryptoListSchema>;
3115
3115
  type ForexList = z.infer<typeof ForexListSchema>;
3116
3116
  type AvailableIndexesList = z.infer<typeof AvailableIndexesListSchema>;
3117
3117
 
3118
- declare const MarketHolidaySchema: z.ZodObject<{
3119
- year: z.ZodNumber;
3120
- 'Martin Luther King, Jr. Day': z.ZodOptional<z.ZodString>;
3121
- "Presidents' Day": z.ZodOptional<z.ZodString>;
3122
- 'Good Friday': z.ZodOptional<z.ZodString>;
3123
- 'Memorial Day': z.ZodOptional<z.ZodString>;
3124
- Juneteenth: z.ZodOptional<z.ZodString>;
3125
- 'Independence Day': z.ZodOptional<z.ZodString>;
3126
- 'Labor Day': z.ZodOptional<z.ZodString>;
3127
- 'Thanksgiving Day': z.ZodOptional<z.ZodString>;
3128
- Christmas: z.ZodOptional<z.ZodString>;
3129
- }, "strip", z.ZodTypeAny, {
3130
- year: number;
3131
- 'Martin Luther King, Jr. Day'?: string | undefined;
3132
- "Presidents' Day"?: string | undefined;
3133
- 'Good Friday'?: string | undefined;
3134
- 'Memorial Day'?: string | undefined;
3135
- Juneteenth?: string | undefined;
3136
- 'Independence Day'?: string | undefined;
3137
- 'Labor Day'?: string | undefined;
3138
- 'Thanksgiving Day'?: string | undefined;
3139
- Christmas?: string | undefined;
3140
- }, {
3141
- year: number;
3142
- 'Martin Luther King, Jr. Day'?: string | undefined;
3143
- "Presidents' Day"?: string | undefined;
3144
- 'Good Friday'?: string | undefined;
3145
- 'Memorial Day'?: string | undefined;
3146
- Juneteenth?: string | undefined;
3147
- 'Independence Day'?: string | undefined;
3148
- 'Labor Day'?: string | undefined;
3149
- 'Thanksgiving Day'?: string | undefined;
3150
- Christmas?: string | undefined;
3151
- }>;
3152
- type MarketHoliday = z.infer<typeof MarketHolidaySchema>;
3153
- declare const MarketHoursSchema: z.ZodObject<{
3154
- stockExchangeName: z.ZodString;
3155
- stockMarketHours: z.ZodObject<{
3156
- openingHour: z.ZodString;
3157
- closingHour: z.ZodString;
3158
- }, "strip", z.ZodTypeAny, {
3159
- openingHour: string;
3160
- closingHour: string;
3161
- }, {
3162
- openingHour: string;
3163
- closingHour: string;
3164
- }>;
3165
- stockMarketHolidays: z.ZodArray<z.ZodObject<{
3166
- year: z.ZodNumber;
3167
- 'Martin Luther King, Jr. Day': z.ZodOptional<z.ZodString>;
3168
- "Presidents' Day": z.ZodOptional<z.ZodString>;
3169
- 'Good Friday': z.ZodOptional<z.ZodString>;
3170
- 'Memorial Day': z.ZodOptional<z.ZodString>;
3171
- Juneteenth: z.ZodOptional<z.ZodString>;
3172
- 'Independence Day': z.ZodOptional<z.ZodString>;
3173
- 'Labor Day': z.ZodOptional<z.ZodString>;
3174
- 'Thanksgiving Day': z.ZodOptional<z.ZodString>;
3175
- Christmas: z.ZodOptional<z.ZodString>;
3176
- }, "strip", z.ZodTypeAny, {
3177
- year: number;
3178
- 'Martin Luther King, Jr. Day'?: string | undefined;
3179
- "Presidents' Day"?: string | undefined;
3180
- 'Good Friday'?: string | undefined;
3181
- 'Memorial Day'?: string | undefined;
3182
- Juneteenth?: string | undefined;
3183
- 'Independence Day'?: string | undefined;
3184
- 'Labor Day'?: string | undefined;
3185
- 'Thanksgiving Day'?: string | undefined;
3186
- Christmas?: string | undefined;
3187
- }, {
3188
- year: number;
3189
- 'Martin Luther King, Jr. Day'?: string | undefined;
3190
- "Presidents' Day"?: string | undefined;
3191
- 'Good Friday'?: string | undefined;
3192
- 'Memorial Day'?: string | undefined;
3193
- Juneteenth?: string | undefined;
3194
- 'Independence Day'?: string | undefined;
3195
- 'Labor Day'?: string | undefined;
3196
- 'Thanksgiving Day'?: string | undefined;
3197
- Christmas?: string | undefined;
3198
- }>, "many">;
3199
- isTheStockMarketOpen: z.ZodBoolean;
3200
- isTheEuronextMarketOpen: z.ZodBoolean;
3201
- isTheForexMarketOpen: z.ZodBoolean;
3202
- isTheCryptoMarketOpen: z.ZodBoolean;
3118
+ declare const ExchangeMarketHoursSchema: z.ZodObject<{
3119
+ exchange: z.ZodString;
3120
+ name: z.ZodString;
3121
+ openingHour: z.ZodString;
3122
+ closingHour: z.ZodString;
3123
+ timezone: z.ZodString;
3124
+ isMarketOpen: z.ZodBoolean;
3203
3125
  }, "strip", z.ZodTypeAny, {
3204
- stockExchangeName: string;
3205
- stockMarketHours: {
3206
- openingHour: string;
3207
- closingHour: string;
3208
- };
3209
- stockMarketHolidays: {
3210
- year: number;
3211
- 'Martin Luther King, Jr. Day'?: string | undefined;
3212
- "Presidents' Day"?: string | undefined;
3213
- 'Good Friday'?: string | undefined;
3214
- 'Memorial Day'?: string | undefined;
3215
- Juneteenth?: string | undefined;
3216
- 'Independence Day'?: string | undefined;
3217
- 'Labor Day'?: string | undefined;
3218
- 'Thanksgiving Day'?: string | undefined;
3219
- Christmas?: string | undefined;
3220
- }[];
3221
- isTheStockMarketOpen: boolean;
3222
- isTheEuronextMarketOpen: boolean;
3223
- isTheForexMarketOpen: boolean;
3224
- isTheCryptoMarketOpen: boolean;
3126
+ exchange: string;
3127
+ name: string;
3128
+ openingHour: string;
3129
+ closingHour: string;
3130
+ timezone: string;
3131
+ isMarketOpen: boolean;
3225
3132
  }, {
3226
- stockExchangeName: string;
3227
- stockMarketHours: {
3228
- openingHour: string;
3229
- closingHour: string;
3230
- };
3231
- stockMarketHolidays: {
3232
- year: number;
3233
- 'Martin Luther King, Jr. Day'?: string | undefined;
3234
- "Presidents' Day"?: string | undefined;
3235
- 'Good Friday'?: string | undefined;
3236
- 'Memorial Day'?: string | undefined;
3237
- Juneteenth?: string | undefined;
3238
- 'Independence Day'?: string | undefined;
3239
- 'Labor Day'?: string | undefined;
3240
- 'Thanksgiving Day'?: string | undefined;
3241
- Christmas?: string | undefined;
3242
- }[];
3243
- isTheStockMarketOpen: boolean;
3244
- isTheEuronextMarketOpen: boolean;
3245
- isTheForexMarketOpen: boolean;
3246
- isTheCryptoMarketOpen: boolean;
3133
+ exchange: string;
3134
+ name: string;
3135
+ openingHour: string;
3136
+ closingHour: string;
3137
+ timezone: string;
3138
+ isMarketOpen: boolean;
3247
3139
  }>;
3248
- type MarketHours = z.infer<typeof MarketHoursSchema>;
3140
+ type ExchangeMarketHours = z.infer<typeof ExchangeMarketHoursSchema>;
3249
3141
  declare const MarketPerformanceSchema: z.ZodObject<{
3250
3142
  symbol: z.ZodString;
3251
3143
  name: z.ZodString;
@@ -3270,16 +3162,39 @@ declare const MarketPerformanceSchema: z.ZodObject<{
3270
3162
  }>;
3271
3163
  type MarketPerformance = z.infer<typeof MarketPerformanceSchema>;
3272
3164
  declare const MarketSectorPerformanceSchema: z.ZodObject<{
3165
+ date: z.ZodString;
3273
3166
  sector: z.ZodString;
3274
- changesPercentage: z.ZodString;
3167
+ exchange: z.ZodString;
3168
+ averageChange: z.ZodNumber;
3275
3169
  }, "strip", z.ZodTypeAny, {
3170
+ date: string;
3171
+ exchange: string;
3276
3172
  sector: string;
3277
- changesPercentage: string;
3173
+ averageChange: number;
3278
3174
  }, {
3175
+ date: string;
3176
+ exchange: string;
3279
3177
  sector: string;
3280
- changesPercentage: string;
3178
+ averageChange: number;
3281
3179
  }>;
3282
3180
  type MarketSectorPerformance = z.infer<typeof MarketSectorPerformanceSchema>;
3181
+ declare const IndustryPESnapshotSchema: z.ZodObject<{
3182
+ date: z.ZodString;
3183
+ industry: z.ZodString;
3184
+ exchange: z.ZodString;
3185
+ pe: z.ZodNumber;
3186
+ }, "strip", z.ZodTypeAny, {
3187
+ date: string;
3188
+ exchange: string;
3189
+ industry: string;
3190
+ pe: number;
3191
+ }, {
3192
+ date: string;
3193
+ exchange: string;
3194
+ industry: string;
3195
+ pe: number;
3196
+ }>;
3197
+ type IndustryPESnapshot = z.infer<typeof IndustryPESnapshotSchema>;
3283
3198
  declare const MarketIndexSchema: z.ZodObject<{
3284
3199
  symbol: z.ZodString;
3285
3200
  name: z.ZodString;
@@ -3507,6 +3422,23 @@ declare const QuoteSchema: z.ZodObject<{
3507
3422
  timestamp: number;
3508
3423
  }>;
3509
3424
  type Quote = z.infer<typeof QuoteSchema>;
3425
+ declare const QuoteShortSchema: z.ZodObject<{
3426
+ symbol: z.ZodString;
3427
+ price: z.ZodNumber;
3428
+ change: z.ZodNumber;
3429
+ volume: z.ZodNumber;
3430
+ }, "strip", z.ZodTypeAny, {
3431
+ symbol: string;
3432
+ change: number;
3433
+ price: number;
3434
+ volume: number;
3435
+ }, {
3436
+ symbol: string;
3437
+ change: number;
3438
+ price: number;
3439
+ volume: number;
3440
+ }>;
3441
+ type QuoteShort = z.infer<typeof QuoteShortSchema>;
3510
3442
  declare const HistoricalPriceDataSchema: z.ZodObject<{
3511
3443
  date: z.ZodString;
3512
3444
  open: z.ZodNumber;
@@ -4278,17 +4210,17 @@ declare const DCFValuationSchema: z.ZodObject<{
4278
4210
  symbol: z.ZodString;
4279
4211
  date: z.ZodNullable<z.ZodString>;
4280
4212
  dcf: z.ZodNullable<z.ZodNumber>;
4281
- "Stock Price": z.ZodNullable<z.ZodNumber>;
4213
+ 'Stock Price': z.ZodNullable<z.ZodNumber>;
4282
4214
  }, "strip", z.ZodTypeAny, {
4283
4215
  symbol: string;
4284
4216
  date: string | null;
4285
4217
  dcf: number | null;
4286
- "Stock Price": number | null;
4218
+ 'Stock Price': number | null;
4287
4219
  }, {
4288
4220
  symbol: string;
4289
4221
  date: string | null;
4290
4222
  dcf: number | null;
4291
- "Stock Price": number | null;
4223
+ 'Stock Price': number | null;
4292
4224
  }>;
4293
4225
  declare const CompanyRatingSchema: z.ZodObject<{
4294
4226
  symbol: z.ZodString;
@@ -4722,6 +4654,47 @@ declare const StockRealTimePriceFullSchema: z.ZodObject<{
4722
4654
  fmpLast: number;
4723
4655
  }>;
4724
4656
  type StockRealTimePriceFull = z.infer<typeof StockRealTimePriceFullSchema>;
4657
+ declare const StockPriceChangeSchema: z.ZodObject<{
4658
+ symbol: z.ZodString;
4659
+ '1D': z.ZodNumber;
4660
+ '5D': z.ZodNumber;
4661
+ '1M': z.ZodNumber;
4662
+ '3M': z.ZodNumber;
4663
+ '6M': z.ZodNumber;
4664
+ ytd: z.ZodNumber;
4665
+ '1Y': z.ZodNumber;
4666
+ '3Y': z.ZodNumber;
4667
+ '5Y': z.ZodNumber;
4668
+ '10Y': z.ZodNumber;
4669
+ max: z.ZodNumber;
4670
+ }, "strip", z.ZodTypeAny, {
4671
+ symbol: string;
4672
+ max: number;
4673
+ '1D': number;
4674
+ '5D': number;
4675
+ '1M': number;
4676
+ '3M': number;
4677
+ '6M': number;
4678
+ ytd: number;
4679
+ '1Y': number;
4680
+ '3Y': number;
4681
+ '5Y': number;
4682
+ '10Y': number;
4683
+ }, {
4684
+ symbol: string;
4685
+ max: number;
4686
+ '1D': number;
4687
+ '5D': number;
4688
+ '1M': number;
4689
+ '3M': number;
4690
+ '6M': number;
4691
+ ytd: number;
4692
+ '1Y': number;
4693
+ '3Y': number;
4694
+ '5Y': number;
4695
+ '10Y': number;
4696
+ }>;
4697
+ type StockPriceChange = z.infer<typeof StockPriceChangeSchema>;
4725
4698
  interface StockListResponse<T> {
4726
4699
  stockList: T[];
4727
4700
  }
@@ -4729,4 +4702,48 @@ interface CompaniesPriceListResponse<T> {
4729
4702
  companiesPriceList: T[];
4730
4703
  }
4731
4704
 
4732
- export { type APIResponse, type AnalystEstimate, AnalystEstimateSchema, type Article, ArticleSchema, type AvailableCountries, AvailableCountriesSchema, type AvailableExchanges, AvailableExchangesSchema, type AvailableIndexesList, AvailableIndexesListSchema, type AvailableIndustries, AvailableIndustriesSchema, type AvailableSectors, AvailableSectorsSchema, type BalanceSheet, type BalanceSheetGrowth, BalanceSheetGrowthSchema, BalanceSheetSchema, type BeneficialOwnershipResponse, BeneficialOwnershipResponseSchema, type CashFlowStatement, CashFlowStatementSchema, type CashflowGrowth, CashflowGrowthSchema, type CikMapperBySymbolResponse, CikMapperBySymbolResponseSchema, type CikMapperResponse, CikMapperResponseSchema, type CompaniesPriceListResponse, type CompanyNotes, CompanyNotesSchema, type CompanyProfile, CompanyProfileSchema, type CompanyRating, CompanyRatingSchema, type CompanyTranscriptData, CompanyTranscriptDataSchema, type CryptoList, CryptoListSchema, type DCFValuation, DCFValuationSchema, type DateRangeParams, type DividendsCalendar, DividendsCalendarSchema, type ETFCountryWeighting, ETFCountryWeightingSchema, type ETFHolder, ETFHolderSchema, type ETFHolding, type ETFHoldingDates, ETFHoldingDatesSchema, ETFHoldingSchema, type ETFList, ETFListSchema, type ETFProfile, ETFProfileSchema, type ETFStockExposure, ETFStockExposureSchema, type ETFWeighting, ETFWeightingSchema, type EarningsCalendar, EarningsCalendarSchema, type EarningsCallTranscript, EarningsCallTranscriptSchema, type EarningsConfirmed, EarningsConfirmedSchema, type EarningsHistorical, EarningsHistoricalSchema, type EarningsSurprises, EarningsSurprisesSchema, type EconomicIndicator, type EconomicIndicatorName, EconomicIndicatorNameSchema, EconomicIndicatorSchema, type EconomicsCalendar, EconomicsCalendarSchema, type EnterpriseValue, EnterpriseValueSchema, Exchange, type ExecutiveCompensation, ExecutiveCompensationSchema, type FMPConfig, type FMPErrorType, type FailToDeliverResponse, FailToDeliverResponseSchema, type FinancialGrowth, FinancialGrowthSchema, type FinancialRatios, FinancialRatiosSchema, type FinancialRatiosTTM, FinancialRatiosTTMSchema, type FinancialScores, FinancialScoresSchema, type ForexList, ForexListSchema, type Form13FResponse, Form13FResponseSchema, type GradesConsensus, GradesConsensusSchema, type HistoricalEmployeeCount, HistoricalEmployeeCountSchema, type HistoricalPriceData, HistoricalPriceDataSchema, type HistoricalPriceResponse, HistoricalPriceResponseSchema, type HistoricalSharesFloat, HistoricalSharesFloatSchema, type HouseTradingResponse, HouseTradingResponseSchema, type IPOCalendar, IPOCalendarSchema, type IncomeGrowth, IncomeGrowthSchema, type IncomeStatement, IncomeStatementSchema, type IndividualIndustryClassificationParams, IndividualIndustryClassificationParamsSchema, type IndustryClassification, type IndustryClassificationCode, IndustryClassificationCodeSchema, type IndustryClassificationCodesParams, IndustryClassificationCodesParamsSchema, IndustryClassificationSchema, type InsiderTradeStatisticsResponse, InsiderTradeStatisticsResponseSchema, type InsiderTradingRSSResponse, InsiderTradingRSSResponseSchema, type InsiderTradingSearchResponse, InsiderTradingSearchResponseSchema, type InsidersBySymbolResponse, InsidersBySymbolResponseSchema, type InstitutionalHolderResponse, InstitutionalHolderResponseSchema, type IntradayPrice, IntradayPriceSchema, type KeyMetrics, KeyMetricsSchema, type KeyMetricsTTM, KeyMetricsTTMSchema, type MarketCap, MarketCapSchema, type MarketHoliday, MarketHolidaySchema, type MarketHours, MarketHoursSchema, type MarketIndex, MarketIndexSchema, type MarketPerformance, MarketPerformanceSchema, type MarketSectorPerformance, MarketSectorPerformanceSchema, type MutualFundHolding, MutualFundHoldingSchema, type News, NewsSchema, type PaginationParams, Period, type PeriodParams, type PriceTargetConsensus, PriceTargetConsensusSchema, type PriceTargetSummary, PriceTargetSummarySchema, type QueryParams, type Quote, QuoteSchema, type RSSFeed8KItem, RSSFeed8KItemSchema, type RSSFeed8KParams, RSSFeed8KParamsSchema, type RSSFeedAllItem, RSSFeedAllItemSchema, type RSSFeedItem, RSSFeedItemSchema, type RSSFeedParams, RSSFeedParamsSchema, type RSSFeedV3Item, RSSFeedV3ItemSchema, type RSSFeedV3Params, RSSFeedV3ParamsSchema, type RevenueGeographicSegmentation, RevenueGeographicSegmentationSchema, type RevenueProductSegmentation, RevenueProductSegmentationSchema, RevenueSegmentationSchema, type SECFiling, SECFilingSchema, type SECFilingsParams, SECFilingsParamsSchema, type Screener, type ScreenerParams, ScreenerParamsSchema, ScreenerSchema, type SearchResult, SearchResultSchema, type SenateHouseTradingByNameResponse, SenateHouseTradingByNameResponseSchema, type SenateTradingResponse, SenateTradingResponseSchema, type SharesFloat, SharesFloatSchema, type SplitsCalendar, SplitsCalendarSchema, type StockDividend, type StockDividendResponse, StockDividendResponseSchema, StockDividendSchema, type StockGrade, StockGradeSchema, type StockList, type StockListResponse, StockListSchema, type StockPeer, StockPeerSchema, type StockRealTimePrice, type StockRealTimePriceFull, StockRealTimePriceFullSchema, StockRealTimePriceSchema, type StockSplit, type StockSplitResponse, StockSplitResponseSchema, StockSplitSchema, type SymbolParams, type TechnicalIndicator, TechnicalIndicatorSchema, TransactionType, TransactionTypeRecordSchema, type TransactionTypesResponse, type TreasuryRate, TreasuryRateSchema };
4705
+ declare const AftermarketTradeSchema: z.ZodObject<{
4706
+ symbol: z.ZodString;
4707
+ price: z.ZodNumber;
4708
+ tradeSize: z.ZodNumber;
4709
+ timestamp: z.ZodNumber;
4710
+ }, "strip", z.ZodTypeAny, {
4711
+ symbol: string;
4712
+ price: number;
4713
+ timestamp: number;
4714
+ tradeSize: number;
4715
+ }, {
4716
+ symbol: string;
4717
+ price: number;
4718
+ timestamp: number;
4719
+ tradeSize: number;
4720
+ }>;
4721
+ type AftermarketTrade = z.infer<typeof AftermarketTradeSchema>;
4722
+ declare const AftermarketQuoteSchema: z.ZodObject<{
4723
+ symbol: z.ZodString;
4724
+ bidSize: z.ZodNumber;
4725
+ bidPrice: z.ZodNumber;
4726
+ askSize: z.ZodNumber;
4727
+ askPrice: z.ZodNumber;
4728
+ volume: z.ZodNumber;
4729
+ timestamp: z.ZodNumber;
4730
+ }, "strip", z.ZodTypeAny, {
4731
+ symbol: string;
4732
+ volume: number;
4733
+ timestamp: number;
4734
+ bidSize: number;
4735
+ askPrice: number;
4736
+ askSize: number;
4737
+ bidPrice: number;
4738
+ }, {
4739
+ symbol: string;
4740
+ volume: number;
4741
+ timestamp: number;
4742
+ bidSize: number;
4743
+ askPrice: number;
4744
+ askSize: number;
4745
+ bidPrice: number;
4746
+ }>;
4747
+ type AftermarketQuote = z.infer<typeof AftermarketQuoteSchema>;
4748
+
4749
+ export { type APIResponse, type AftermarketQuote, AftermarketQuoteSchema, type AftermarketTrade, AftermarketTradeSchema, type AnalystEstimate, AnalystEstimateSchema, type Article, ArticleSchema, type AvailableCountries, AvailableCountriesSchema, type AvailableExchanges, AvailableExchangesSchema, type AvailableIndexesList, AvailableIndexesListSchema, type AvailableIndustries, AvailableIndustriesSchema, type AvailableSectors, AvailableSectorsSchema, type BalanceSheet, type BalanceSheetGrowth, BalanceSheetGrowthSchema, BalanceSheetSchema, type BeneficialOwnershipResponse, BeneficialOwnershipResponseSchema, type CashFlowStatement, CashFlowStatementSchema, type CashflowGrowth, CashflowGrowthSchema, type CikMapperBySymbolResponse, CikMapperBySymbolResponseSchema, type CikMapperResponse, CikMapperResponseSchema, type CompaniesPriceListResponse, type CompanyNotes, CompanyNotesSchema, type CompanyProfile, CompanyProfileSchema, type CompanyRating, CompanyRatingSchema, type CompanyTranscriptData, CompanyTranscriptDataSchema, type CryptoList, CryptoListSchema, type DCFValuation, DCFValuationSchema, type DateRangeParams, type DividendsCalendar, DividendsCalendarSchema, type ETFCountryWeighting, ETFCountryWeightingSchema, type ETFHolder, ETFHolderSchema, type ETFHolding, type ETFHoldingDates, ETFHoldingDatesSchema, ETFHoldingSchema, type ETFList, ETFListSchema, type ETFProfile, ETFProfileSchema, type ETFStockExposure, ETFStockExposureSchema, type ETFWeighting, ETFWeightingSchema, type EarningsCalendar, EarningsCalendarSchema, type EarningsCallTranscript, EarningsCallTranscriptSchema, type EarningsConfirmed, EarningsConfirmedSchema, type EarningsHistorical, EarningsHistoricalSchema, type EarningsSurprises, EarningsSurprisesSchema, type EconomicIndicator, type EconomicIndicatorName, EconomicIndicatorNameSchema, EconomicIndicatorSchema, type EconomicsCalendar, EconomicsCalendarSchema, type EnterpriseValue, EnterpriseValueSchema, Exchange, type ExchangeMarketHours, ExchangeMarketHoursSchema, type ExecutiveCompensation, ExecutiveCompensationSchema, type FMPConfig, type FMPErrorType, type FailToDeliverResponse, FailToDeliverResponseSchema, type FinancialGrowth, FinancialGrowthSchema, type FinancialRatios, FinancialRatiosSchema, type FinancialRatiosTTM, FinancialRatiosTTMSchema, type FinancialScores, FinancialScoresSchema, type ForexList, ForexListSchema, type Form13FResponse, Form13FResponseSchema, type GradesConsensus, GradesConsensusSchema, type HistoricalEmployeeCount, HistoricalEmployeeCountSchema, type HistoricalPriceData, HistoricalPriceDataSchema, type HistoricalPriceResponse, HistoricalPriceResponseSchema, type HistoricalSharesFloat, HistoricalSharesFloatSchema, type HouseTradingResponse, HouseTradingResponseSchema, type IPOCalendar, IPOCalendarSchema, type IncomeGrowth, IncomeGrowthSchema, type IncomeStatement, IncomeStatementSchema, type IndividualIndustryClassificationParams, IndividualIndustryClassificationParamsSchema, type IndustryClassification, type IndustryClassificationCode, IndustryClassificationCodeSchema, type IndustryClassificationCodesParams, IndustryClassificationCodesParamsSchema, IndustryClassificationSchema, type IndustryPESnapshot, IndustryPESnapshotSchema, type InsiderTradeStatisticsResponse, InsiderTradeStatisticsResponseSchema, type InsiderTradingRSSResponse, InsiderTradingRSSResponseSchema, type InsiderTradingSearchResponse, InsiderTradingSearchResponseSchema, type InsidersBySymbolResponse, InsidersBySymbolResponseSchema, type InstitutionalHolderResponse, InstitutionalHolderResponseSchema, type IntradayPrice, IntradayPriceSchema, type KeyMetrics, KeyMetricsSchema, type KeyMetricsTTM, KeyMetricsTTMSchema, type MarketCap, MarketCapSchema, type MarketIndex, MarketIndexSchema, type MarketPerformance, MarketPerformanceSchema, type MarketSectorPerformance, MarketSectorPerformanceSchema, type MutualFundHolding, MutualFundHoldingSchema, type News, NewsSchema, type PaginationParams, Period, type PeriodParams, type PriceTargetConsensus, PriceTargetConsensusSchema, type PriceTargetSummary, PriceTargetSummarySchema, type QueryParams, type Quote, QuoteSchema, type QuoteShort, QuoteShortSchema, type RSSFeed8KItem, RSSFeed8KItemSchema, type RSSFeed8KParams, RSSFeed8KParamsSchema, type RSSFeedAllItem, RSSFeedAllItemSchema, type RSSFeedItem, RSSFeedItemSchema, type RSSFeedParams, RSSFeedParamsSchema, type RSSFeedV3Item, RSSFeedV3ItemSchema, type RSSFeedV3Params, RSSFeedV3ParamsSchema, type RevenueGeographicSegmentation, RevenueGeographicSegmentationSchema, type RevenueProductSegmentation, RevenueProductSegmentationSchema, RevenueSegmentationSchema, type SECFiling, SECFilingSchema, type SECFilingsParams, SECFilingsParamsSchema, type Screener, type ScreenerParams, ScreenerParamsSchema, ScreenerSchema, type SearchResult, SearchResultSchema, type SenateHouseTradingByNameResponse, SenateHouseTradingByNameResponseSchema, type SenateTradingResponse, SenateTradingResponseSchema, type SharesFloat, SharesFloatSchema, type SplitsCalendar, SplitsCalendarSchema, type StockDividend, type StockDividendResponse, StockDividendResponseSchema, StockDividendSchema, type StockGrade, StockGradeSchema, type StockList, type StockListResponse, StockListSchema, type StockPeer, StockPeerSchema, type StockPriceChange, StockPriceChangeSchema, type StockRealTimePrice, type StockRealTimePriceFull, StockRealTimePriceFullSchema, StockRealTimePriceSchema, type StockSplit, type StockSplitResponse, StockSplitResponseSchema, StockSplitSchema, type SymbolParams, type TechnicalIndicator, TechnicalIndicatorSchema, TransactionType, TransactionTypeRecordSchema, type TransactionTypesResponse, type TreasuryRate, TreasuryRateSchema };
package/dist/index.js CHANGED
@@ -204,7 +204,31 @@ var TreasuryRateSchema = zod.z.object({
204
204
  year20: zod.z.number(),
205
205
  year30: zod.z.number()
206
206
  });
207
- var EconomicIndicatorNameSchema = zod.z.union([zod.z.literal("GDP"), zod.z.literal("realGDP"), zod.z.literal("nominalPotentialGDP"), zod.z.literal("realGDPPerCapita"), zod.z.literal("federalFunds"), zod.z.literal("CPI"), zod.z.literal("inflationRate"), zod.z.literal("inflation"), zod.z.literal("retailSales"), zod.z.literal("consumerSentiment"), zod.z.literal("durableGoods"), zod.z.literal("unemploymentRate"), zod.z.literal("totalNonfarmPayroll"), zod.z.literal("initialClaims"), zod.z.literal("industrialProductionTotalIndex"), zod.z.literal("newPrivatelyOwnedHousingUnitsStartedTotalUnits"), zod.z.literal("totalVehicleSales"), zod.z.literal("retailMoneyFunds"), zod.z.literal("smoothedUSRecessionProbabilities"), zod.z.literal("3MonthOr90DayRatesAndYieldsCertificatesOfDeposit"), zod.z.literal("commercialBankInterestRateOnCreditCardPlansAllAccounts"), zod.z.literal("30YearFixedRateMortgageAverage"), zod.z.literal("15YearFixedRateMortgageAverage")]);
207
+ var EconomicIndicatorNameSchema = zod.z.union([
208
+ zod.z.literal("GDP"),
209
+ zod.z.literal("realGDP"),
210
+ zod.z.literal("nominalPotentialGDP"),
211
+ zod.z.literal("realGDPPerCapita"),
212
+ zod.z.literal("federalFunds"),
213
+ zod.z.literal("CPI"),
214
+ zod.z.literal("inflationRate"),
215
+ zod.z.literal("inflation"),
216
+ zod.z.literal("retailSales"),
217
+ zod.z.literal("consumerSentiment"),
218
+ zod.z.literal("durableGoods"),
219
+ zod.z.literal("unemploymentRate"),
220
+ zod.z.literal("totalNonfarmPayroll"),
221
+ zod.z.literal("initialClaims"),
222
+ zod.z.literal("industrialProductionTotalIndex"),
223
+ zod.z.literal("newPrivatelyOwnedHousingUnitsStartedTotalUnits"),
224
+ zod.z.literal("totalVehicleSales"),
225
+ zod.z.literal("retailMoneyFunds"),
226
+ zod.z.literal("smoothedUSRecessionProbabilities"),
227
+ zod.z.literal("3MonthOr90DayRatesAndYieldsCertificatesOfDeposit"),
228
+ zod.z.literal("commercialBankInterestRateOnCreditCardPlansAllAccounts"),
229
+ zod.z.literal("30YearFixedRateMortgageAverage"),
230
+ zod.z.literal("15YearFixedRateMortgageAverage")
231
+ ]);
208
232
  var ETFHoldingDatesSchema = zod.z.object({
209
233
  date: zod.z.string()
210
234
  });
@@ -262,10 +286,12 @@ var ETFProfileSchema = zod.z.object({
262
286
  holdingsCount: zod.z.number(),
263
287
  updatedAt: zod.z.string(),
264
288
  isActivelyTrading: zod.z.boolean(),
265
- sectorsList: zod.z.array(zod.z.object({
266
- exposure: zod.z.number(),
267
- industry: zod.z.string()
268
- }))
289
+ sectorsList: zod.z.array(
290
+ zod.z.object({
291
+ exposure: zod.z.number(),
292
+ industry: zod.z.string()
293
+ })
294
+ )
269
295
  });
270
296
  var ETFWeightingSchema = zod.z.object({
271
297
  symbol: zod.z.string(),
@@ -1086,6 +1112,12 @@ var QuoteSchema = zod.z.object({
1086
1112
  sharesOutstanding: zod.z.number().nullable(),
1087
1113
  timestamp: zod.z.number()
1088
1114
  });
1115
+ var QuoteShortSchema = zod.z.object({
1116
+ symbol: zod.z.string(),
1117
+ price: zod.z.number(),
1118
+ change: zod.z.number(),
1119
+ volume: zod.z.number()
1120
+ });
1089
1121
  var HistoricalPriceDataSchema = zod.z.object({
1090
1122
  date: zod.z.string(),
1091
1123
  open: zod.z.number(),
@@ -1115,29 +1147,13 @@ var IntradayPriceSchema = zod.z.object({
1115
1147
  });
1116
1148
 
1117
1149
  // src/market.ts
1118
- var MarketHolidaySchema = zod.z.object({
1119
- year: zod.z.number(),
1120
- "Martin Luther King, Jr. Day": zod.z.string().optional(),
1121
- "Presidents' Day": zod.z.string().optional(),
1122
- "Good Friday": zod.z.string().optional(),
1123
- "Memorial Day": zod.z.string().optional(),
1124
- Juneteenth: zod.z.string().optional(),
1125
- "Independence Day": zod.z.string().optional(),
1126
- "Labor Day": zod.z.string().optional(),
1127
- "Thanksgiving Day": zod.z.string().optional(),
1128
- Christmas: zod.z.string().optional()
1129
- });
1130
- var MarketHoursSchema = zod.z.object({
1131
- stockExchangeName: zod.z.string(),
1132
- stockMarketHours: zod.z.object({
1133
- openingHour: zod.z.string(),
1134
- closingHour: zod.z.string()
1135
- }),
1136
- stockMarketHolidays: zod.z.array(MarketHolidaySchema),
1137
- isTheStockMarketOpen: zod.z.boolean(),
1138
- isTheEuronextMarketOpen: zod.z.boolean(),
1139
- isTheForexMarketOpen: zod.z.boolean(),
1140
- isTheCryptoMarketOpen: zod.z.boolean()
1150
+ var ExchangeMarketHoursSchema = zod.z.object({
1151
+ exchange: zod.z.string(),
1152
+ name: zod.z.string(),
1153
+ openingHour: zod.z.string(),
1154
+ closingHour: zod.z.string(),
1155
+ timezone: zod.z.string(),
1156
+ isMarketOpen: zod.z.boolean()
1141
1157
  });
1142
1158
  var MarketPerformanceSchema = zod.z.object({
1143
1159
  symbol: zod.z.string(),
@@ -1149,9 +1165,16 @@ var MarketPerformanceSchema = zod.z.object({
1149
1165
  exchange: zod.z.string().optional()
1150
1166
  });
1151
1167
  var MarketSectorPerformanceSchema = zod.z.object({
1168
+ date: zod.z.string(),
1152
1169
  sector: zod.z.string(),
1153
- // The sector-performance endpoint returns this as a formatted string (e.g. "1.23%").
1154
- changesPercentage: zod.z.string()
1170
+ exchange: zod.z.string(),
1171
+ averageChange: zod.z.number()
1172
+ });
1173
+ var IndustryPESnapshotSchema = zod.z.object({
1174
+ date: zod.z.string(),
1175
+ industry: zod.z.string(),
1176
+ exchange: zod.z.string(),
1177
+ pe: zod.z.number()
1155
1178
  });
1156
1179
  var MarketIndexSchema = QuoteSchema.extend({
1157
1180
  type: zod.z.string().optional()
@@ -1529,7 +1552,38 @@ var StockRealTimePriceFullSchema = zod.z.object({
1529
1552
  lastUpdated: zod.z.number(),
1530
1553
  symbol: zod.z.string()
1531
1554
  });
1555
+ var StockPriceChangeSchema = zod.z.object({
1556
+ symbol: zod.z.string(),
1557
+ "1D": zod.z.number(),
1558
+ "5D": zod.z.number(),
1559
+ "1M": zod.z.number(),
1560
+ "3M": zod.z.number(),
1561
+ "6M": zod.z.number(),
1562
+ ytd: zod.z.number(),
1563
+ "1Y": zod.z.number(),
1564
+ "3Y": zod.z.number(),
1565
+ "5Y": zod.z.number(),
1566
+ "10Y": zod.z.number(),
1567
+ max: zod.z.number()
1568
+ });
1569
+ var AftermarketTradeSchema = zod.z.object({
1570
+ symbol: zod.z.string(),
1571
+ price: zod.z.number(),
1572
+ tradeSize: zod.z.number(),
1573
+ timestamp: zod.z.number()
1574
+ });
1575
+ var AftermarketQuoteSchema = zod.z.object({
1576
+ symbol: zod.z.string(),
1577
+ bidSize: zod.z.number(),
1578
+ bidPrice: zod.z.number(),
1579
+ askSize: zod.z.number(),
1580
+ askPrice: zod.z.number(),
1581
+ volume: zod.z.number(),
1582
+ timestamp: zod.z.number()
1583
+ });
1532
1584
 
1585
+ exports.AftermarketQuoteSchema = AftermarketQuoteSchema;
1586
+ exports.AftermarketTradeSchema = AftermarketTradeSchema;
1533
1587
  exports.AnalystEstimateSchema = AnalystEstimateSchema;
1534
1588
  exports.ArticleSchema = ArticleSchema;
1535
1589
  exports.AvailableCountriesSchema = AvailableCountriesSchema;
@@ -1569,6 +1623,7 @@ exports.EconomicIndicatorSchema = EconomicIndicatorSchema;
1569
1623
  exports.EconomicsCalendarSchema = EconomicsCalendarSchema;
1570
1624
  exports.EnterpriseValueSchema = EnterpriseValueSchema;
1571
1625
  exports.Exchange = Exchange;
1626
+ exports.ExchangeMarketHoursSchema = ExchangeMarketHoursSchema;
1572
1627
  exports.ExecutiveCompensationSchema = ExecutiveCompensationSchema;
1573
1628
  exports.FailToDeliverResponseSchema = FailToDeliverResponseSchema;
1574
1629
  exports.FinancialGrowthSchema = FinancialGrowthSchema;
@@ -1590,6 +1645,7 @@ exports.IndividualIndustryClassificationParamsSchema = IndividualIndustryClassif
1590
1645
  exports.IndustryClassificationCodeSchema = IndustryClassificationCodeSchema;
1591
1646
  exports.IndustryClassificationCodesParamsSchema = IndustryClassificationCodesParamsSchema;
1592
1647
  exports.IndustryClassificationSchema = IndustryClassificationSchema;
1648
+ exports.IndustryPESnapshotSchema = IndustryPESnapshotSchema;
1593
1649
  exports.InsiderTradeStatisticsResponseSchema = InsiderTradeStatisticsResponseSchema;
1594
1650
  exports.InsiderTradingRSSResponseSchema = InsiderTradingRSSResponseSchema;
1595
1651
  exports.InsiderTradingSearchResponseSchema = InsiderTradingSearchResponseSchema;
@@ -1599,8 +1655,6 @@ exports.IntradayPriceSchema = IntradayPriceSchema;
1599
1655
  exports.KeyMetricsSchema = KeyMetricsSchema;
1600
1656
  exports.KeyMetricsTTMSchema = KeyMetricsTTMSchema;
1601
1657
  exports.MarketCapSchema = MarketCapSchema;
1602
- exports.MarketHolidaySchema = MarketHolidaySchema;
1603
- exports.MarketHoursSchema = MarketHoursSchema;
1604
1658
  exports.MarketIndexSchema = MarketIndexSchema;
1605
1659
  exports.MarketPerformanceSchema = MarketPerformanceSchema;
1606
1660
  exports.MarketSectorPerformanceSchema = MarketSectorPerformanceSchema;
@@ -1610,6 +1664,7 @@ exports.Period = Period;
1610
1664
  exports.PriceTargetConsensusSchema = PriceTargetConsensusSchema;
1611
1665
  exports.PriceTargetSummarySchema = PriceTargetSummarySchema;
1612
1666
  exports.QuoteSchema = QuoteSchema;
1667
+ exports.QuoteShortSchema = QuoteShortSchema;
1613
1668
  exports.RSSFeed8KItemSchema = RSSFeed8KItemSchema;
1614
1669
  exports.RSSFeed8KParamsSchema = RSSFeed8KParamsSchema;
1615
1670
  exports.RSSFeedAllItemSchema = RSSFeedAllItemSchema;
@@ -1634,6 +1689,7 @@ exports.StockDividendSchema = StockDividendSchema;
1634
1689
  exports.StockGradeSchema = StockGradeSchema;
1635
1690
  exports.StockListSchema = StockListSchema;
1636
1691
  exports.StockPeerSchema = StockPeerSchema;
1692
+ exports.StockPriceChangeSchema = StockPriceChangeSchema;
1637
1693
  exports.StockRealTimePriceFullSchema = StockRealTimePriceFullSchema;
1638
1694
  exports.StockRealTimePriceSchema = StockRealTimePriceSchema;
1639
1695
  exports.StockSplitResponseSchema = StockSplitResponseSchema;