fmp-node-types 0.2.0 → 0.2.3

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.mjs CHANGED
@@ -1084,6 +1084,12 @@ var QuoteSchema = z.object({
1084
1084
  sharesOutstanding: z.number().nullable(),
1085
1085
  timestamp: z.number()
1086
1086
  });
1087
+ var QuoteShortSchema = z.object({
1088
+ symbol: z.string(),
1089
+ price: z.number(),
1090
+ change: z.number(),
1091
+ volume: z.number()
1092
+ });
1087
1093
  var HistoricalPriceDataSchema = z.object({
1088
1094
  date: z.string(),
1089
1095
  open: z.number(),
@@ -1113,29 +1119,13 @@ var IntradayPriceSchema = z.object({
1113
1119
  });
1114
1120
 
1115
1121
  // src/market.ts
1116
- var MarketHolidaySchema = z.object({
1117
- year: z.number(),
1118
- "Martin Luther King, Jr. Day": z.string().optional(),
1119
- "Presidents' Day": z.string().optional(),
1120
- "Good Friday": z.string().optional(),
1121
- "Memorial Day": z.string().optional(),
1122
- Juneteenth: z.string().optional(),
1123
- "Independence Day": z.string().optional(),
1124
- "Labor Day": z.string().optional(),
1125
- "Thanksgiving Day": z.string().optional(),
1126
- Christmas: z.string().optional()
1127
- });
1128
- var MarketHoursSchema = z.object({
1129
- stockExchangeName: z.string(),
1130
- stockMarketHours: z.object({
1131
- openingHour: z.string(),
1132
- closingHour: z.string()
1133
- }),
1134
- stockMarketHolidays: z.array(MarketHolidaySchema),
1135
- isTheStockMarketOpen: z.boolean(),
1136
- isTheEuronextMarketOpen: z.boolean(),
1137
- isTheForexMarketOpen: z.boolean(),
1138
- isTheCryptoMarketOpen: z.boolean()
1122
+ var ExchangeMarketHoursSchema = z.object({
1123
+ exchange: z.string(),
1124
+ name: z.string(),
1125
+ openingHour: z.string(),
1126
+ closingHour: z.string(),
1127
+ timezone: z.string(),
1128
+ isMarketOpen: z.boolean()
1139
1129
  });
1140
1130
  var MarketPerformanceSchema = z.object({
1141
1131
  symbol: z.string(),
@@ -1147,9 +1137,16 @@ var MarketPerformanceSchema = z.object({
1147
1137
  exchange: z.string().optional()
1148
1138
  });
1149
1139
  var MarketSectorPerformanceSchema = z.object({
1140
+ date: z.string(),
1150
1141
  sector: z.string(),
1151
- // The sector-performance endpoint returns this as a formatted string (e.g. "1.23%").
1152
- changesPercentage: z.string()
1142
+ exchange: z.string(),
1143
+ averageChange: z.number()
1144
+ });
1145
+ var IndustryPESnapshotSchema = z.object({
1146
+ date: z.string(),
1147
+ industry: z.string(),
1148
+ exchange: z.string(),
1149
+ pe: z.number()
1153
1150
  });
1154
1151
  var MarketIndexSchema = QuoteSchema.extend({
1155
1152
  type: z.string().optional()
@@ -1527,7 +1524,36 @@ var StockRealTimePriceFullSchema = z.object({
1527
1524
  lastUpdated: z.number(),
1528
1525
  symbol: z.string()
1529
1526
  });
1527
+ var StockPriceChangeSchema = z.object({
1528
+ symbol: z.string(),
1529
+ "1D": z.number(),
1530
+ "5D": z.number(),
1531
+ "1M": z.number(),
1532
+ "3M": z.number(),
1533
+ "6M": z.number(),
1534
+ ytd: z.number(),
1535
+ "1Y": z.number(),
1536
+ "3Y": z.number(),
1537
+ "5Y": z.number(),
1538
+ "10Y": z.number(),
1539
+ max: z.number()
1540
+ });
1541
+ var AftermarketTradeSchema = z.object({
1542
+ symbol: z.string(),
1543
+ price: z.number(),
1544
+ tradeSize: z.number(),
1545
+ timestamp: z.number()
1546
+ });
1547
+ var AftermarketQuoteSchema = z.object({
1548
+ symbol: z.string(),
1549
+ bidSize: z.number(),
1550
+ bidPrice: z.number(),
1551
+ askSize: z.number(),
1552
+ askPrice: z.number(),
1553
+ volume: z.number(),
1554
+ timestamp: z.number()
1555
+ });
1530
1556
 
1531
- export { AnalystEstimateSchema, ArticleSchema, AvailableCountriesSchema, AvailableExchangesSchema, AvailableIndexesListSchema, AvailableIndustriesSchema, AvailableSectorsSchema, BalanceSheetGrowthSchema, BalanceSheetSchema, BeneficialOwnershipResponseSchema, CashFlowStatementSchema, CashflowGrowthSchema, CikMapperBySymbolResponseSchema, CikMapperResponseSchema, CompanyNotesSchema, CompanyProfileSchema, CompanyRatingSchema, CompanyTranscriptDataSchema, CryptoListSchema, DCFValuationSchema, DividendsCalendarSchema, ETFCountryWeightingSchema, ETFHolderSchema, ETFHoldingDatesSchema, ETFHoldingSchema, ETFListSchema, ETFProfileSchema, ETFStockExposureSchema, ETFWeightingSchema, EarningsCalendarSchema, EarningsCallTranscriptSchema, EarningsConfirmedSchema, EarningsHistoricalSchema, EarningsSurprisesSchema, EconomicIndicatorNameSchema, EconomicIndicatorSchema, EconomicsCalendarSchema, EnterpriseValueSchema, Exchange, ExecutiveCompensationSchema, FailToDeliverResponseSchema, FinancialGrowthSchema, FinancialRatiosSchema, FinancialRatiosTTMSchema, FinancialScoresSchema, ForexListSchema, Form13FResponseSchema, GradesConsensusSchema, HistoricalEmployeeCountSchema, HistoricalPriceDataSchema, HistoricalPriceResponseSchema, HistoricalSharesFloatSchema, HouseTradingResponseSchema, IPOCalendarSchema, IncomeGrowthSchema, IncomeStatementSchema, IndividualIndustryClassificationParamsSchema, IndustryClassificationCodeSchema, IndustryClassificationCodesParamsSchema, IndustryClassificationSchema, InsiderTradeStatisticsResponseSchema, InsiderTradingRSSResponseSchema, InsiderTradingSearchResponseSchema, InsidersBySymbolResponseSchema, InstitutionalHolderResponseSchema, IntradayPriceSchema, KeyMetricsSchema, KeyMetricsTTMSchema, MarketCapSchema, MarketHolidaySchema, MarketHoursSchema, MarketIndexSchema, MarketPerformanceSchema, MarketSectorPerformanceSchema, MutualFundHoldingSchema, NewsSchema, Period, PriceTargetConsensusSchema, PriceTargetSummarySchema, QuoteSchema, RSSFeed8KItemSchema, RSSFeed8KParamsSchema, RSSFeedAllItemSchema, RSSFeedItemSchema, RSSFeedParamsSchema, RSSFeedV3ItemSchema, RSSFeedV3ParamsSchema, RevenueGeographicSegmentationSchema, RevenueProductSegmentationSchema, RevenueSegmentationSchema, SECFilingSchema, SECFilingsParamsSchema, ScreenerParamsSchema, ScreenerSchema, SearchResultSchema, SenateHouseTradingByNameResponseSchema, SenateTradingResponseSchema, SharesFloatSchema, SplitsCalendarSchema, StockDividendResponseSchema, StockDividendSchema, StockGradeSchema, StockListSchema, StockPeerSchema, StockRealTimePriceFullSchema, StockRealTimePriceSchema, StockSplitResponseSchema, StockSplitSchema, TechnicalIndicatorSchema, TransactionType, TransactionTypeRecordSchema, TreasuryRateSchema };
1557
+ export { AftermarketQuoteSchema, AftermarketTradeSchema, AnalystEstimateSchema, ArticleSchema, AvailableCountriesSchema, AvailableExchangesSchema, AvailableIndexesListSchema, AvailableIndustriesSchema, AvailableSectorsSchema, BalanceSheetGrowthSchema, BalanceSheetSchema, BeneficialOwnershipResponseSchema, CashFlowStatementSchema, CashflowGrowthSchema, CikMapperBySymbolResponseSchema, CikMapperResponseSchema, CompanyNotesSchema, CompanyProfileSchema, CompanyRatingSchema, CompanyTranscriptDataSchema, CryptoListSchema, DCFValuationSchema, DividendsCalendarSchema, ETFCountryWeightingSchema, ETFHolderSchema, ETFHoldingDatesSchema, ETFHoldingSchema, ETFListSchema, ETFProfileSchema, ETFStockExposureSchema, ETFWeightingSchema, EarningsCalendarSchema, EarningsCallTranscriptSchema, EarningsConfirmedSchema, EarningsHistoricalSchema, EarningsSurprisesSchema, EconomicIndicatorNameSchema, EconomicIndicatorSchema, EconomicsCalendarSchema, EnterpriseValueSchema, Exchange, ExchangeMarketHoursSchema, ExecutiveCompensationSchema, FailToDeliverResponseSchema, FinancialGrowthSchema, FinancialRatiosSchema, FinancialRatiosTTMSchema, FinancialScoresSchema, ForexListSchema, Form13FResponseSchema, GradesConsensusSchema, HistoricalEmployeeCountSchema, HistoricalPriceDataSchema, HistoricalPriceResponseSchema, HistoricalSharesFloatSchema, HouseTradingResponseSchema, IPOCalendarSchema, IncomeGrowthSchema, IncomeStatementSchema, IndividualIndustryClassificationParamsSchema, IndustryClassificationCodeSchema, IndustryClassificationCodesParamsSchema, IndustryClassificationSchema, IndustryPESnapshotSchema, InsiderTradeStatisticsResponseSchema, InsiderTradingRSSResponseSchema, InsiderTradingSearchResponseSchema, InsidersBySymbolResponseSchema, InstitutionalHolderResponseSchema, IntradayPriceSchema, KeyMetricsSchema, KeyMetricsTTMSchema, MarketCapSchema, MarketIndexSchema, MarketPerformanceSchema, MarketSectorPerformanceSchema, MutualFundHoldingSchema, NewsSchema, Period, PriceTargetConsensusSchema, PriceTargetSummarySchema, QuoteSchema, QuoteShortSchema, RSSFeed8KItemSchema, RSSFeed8KParamsSchema, RSSFeedAllItemSchema, RSSFeedItemSchema, RSSFeedParamsSchema, RSSFeedV3ItemSchema, RSSFeedV3ParamsSchema, RevenueGeographicSegmentationSchema, RevenueProductSegmentationSchema, RevenueSegmentationSchema, SECFilingSchema, SECFilingsParamsSchema, ScreenerParamsSchema, ScreenerSchema, SearchResultSchema, SenateHouseTradingByNameResponseSchema, SenateTradingResponseSchema, SharesFloatSchema, SplitsCalendarSchema, StockDividendResponseSchema, StockDividendSchema, StockGradeSchema, StockListSchema, StockPeerSchema, StockPriceChangeSchema, StockRealTimePriceFullSchema, StockRealTimePriceSchema, StockSplitResponseSchema, StockSplitSchema, TechnicalIndicatorSchema, TransactionType, TransactionTypeRecordSchema, TreasuryRateSchema };
1532
1558
  //# sourceMappingURL=index.mjs.map
1533
1559
  //# sourceMappingURL=index.mjs.map