fmp-node-types 0.2.0 → 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.mts +152 -135
- package/dist/index.d.ts +152 -135
- package/dist/index.js +88 -32
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +83 -31
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -202,7 +202,31 @@ var TreasuryRateSchema = z.object({
|
|
|
202
202
|
year20: z.number(),
|
|
203
203
|
year30: z.number()
|
|
204
204
|
});
|
|
205
|
-
var EconomicIndicatorNameSchema = z.union([
|
|
205
|
+
var EconomicIndicatorNameSchema = z.union([
|
|
206
|
+
z.literal("GDP"),
|
|
207
|
+
z.literal("realGDP"),
|
|
208
|
+
z.literal("nominalPotentialGDP"),
|
|
209
|
+
z.literal("realGDPPerCapita"),
|
|
210
|
+
z.literal("federalFunds"),
|
|
211
|
+
z.literal("CPI"),
|
|
212
|
+
z.literal("inflationRate"),
|
|
213
|
+
z.literal("inflation"),
|
|
214
|
+
z.literal("retailSales"),
|
|
215
|
+
z.literal("consumerSentiment"),
|
|
216
|
+
z.literal("durableGoods"),
|
|
217
|
+
z.literal("unemploymentRate"),
|
|
218
|
+
z.literal("totalNonfarmPayroll"),
|
|
219
|
+
z.literal("initialClaims"),
|
|
220
|
+
z.literal("industrialProductionTotalIndex"),
|
|
221
|
+
z.literal("newPrivatelyOwnedHousingUnitsStartedTotalUnits"),
|
|
222
|
+
z.literal("totalVehicleSales"),
|
|
223
|
+
z.literal("retailMoneyFunds"),
|
|
224
|
+
z.literal("smoothedUSRecessionProbabilities"),
|
|
225
|
+
z.literal("3MonthOr90DayRatesAndYieldsCertificatesOfDeposit"),
|
|
226
|
+
z.literal("commercialBankInterestRateOnCreditCardPlansAllAccounts"),
|
|
227
|
+
z.literal("30YearFixedRateMortgageAverage"),
|
|
228
|
+
z.literal("15YearFixedRateMortgageAverage")
|
|
229
|
+
]);
|
|
206
230
|
var ETFHoldingDatesSchema = z.object({
|
|
207
231
|
date: z.string()
|
|
208
232
|
});
|
|
@@ -260,10 +284,12 @@ var ETFProfileSchema = z.object({
|
|
|
260
284
|
holdingsCount: z.number(),
|
|
261
285
|
updatedAt: z.string(),
|
|
262
286
|
isActivelyTrading: z.boolean(),
|
|
263
|
-
sectorsList: z.array(
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
287
|
+
sectorsList: z.array(
|
|
288
|
+
z.object({
|
|
289
|
+
exposure: z.number(),
|
|
290
|
+
industry: z.string()
|
|
291
|
+
})
|
|
292
|
+
)
|
|
267
293
|
});
|
|
268
294
|
var ETFWeightingSchema = z.object({
|
|
269
295
|
symbol: z.string(),
|
|
@@ -1084,6 +1110,12 @@ var QuoteSchema = z.object({
|
|
|
1084
1110
|
sharesOutstanding: z.number().nullable(),
|
|
1085
1111
|
timestamp: z.number()
|
|
1086
1112
|
});
|
|
1113
|
+
var QuoteShortSchema = z.object({
|
|
1114
|
+
symbol: z.string(),
|
|
1115
|
+
price: z.number(),
|
|
1116
|
+
change: z.number(),
|
|
1117
|
+
volume: z.number()
|
|
1118
|
+
});
|
|
1087
1119
|
var HistoricalPriceDataSchema = z.object({
|
|
1088
1120
|
date: z.string(),
|
|
1089
1121
|
open: z.number(),
|
|
@@ -1113,29 +1145,13 @@ var IntradayPriceSchema = z.object({
|
|
|
1113
1145
|
});
|
|
1114
1146
|
|
|
1115
1147
|
// src/market.ts
|
|
1116
|
-
var
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
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()
|
|
1148
|
+
var ExchangeMarketHoursSchema = z.object({
|
|
1149
|
+
exchange: z.string(),
|
|
1150
|
+
name: z.string(),
|
|
1151
|
+
openingHour: z.string(),
|
|
1152
|
+
closingHour: z.string(),
|
|
1153
|
+
timezone: z.string(),
|
|
1154
|
+
isMarketOpen: z.boolean()
|
|
1139
1155
|
});
|
|
1140
1156
|
var MarketPerformanceSchema = z.object({
|
|
1141
1157
|
symbol: z.string(),
|
|
@@ -1147,9 +1163,16 @@ var MarketPerformanceSchema = z.object({
|
|
|
1147
1163
|
exchange: z.string().optional()
|
|
1148
1164
|
});
|
|
1149
1165
|
var MarketSectorPerformanceSchema = z.object({
|
|
1166
|
+
date: z.string(),
|
|
1150
1167
|
sector: z.string(),
|
|
1151
|
-
|
|
1152
|
-
|
|
1168
|
+
exchange: z.string(),
|
|
1169
|
+
averageChange: z.number()
|
|
1170
|
+
});
|
|
1171
|
+
var IndustryPESnapshotSchema = z.object({
|
|
1172
|
+
date: z.string(),
|
|
1173
|
+
industry: z.string(),
|
|
1174
|
+
exchange: z.string(),
|
|
1175
|
+
pe: z.number()
|
|
1153
1176
|
});
|
|
1154
1177
|
var MarketIndexSchema = QuoteSchema.extend({
|
|
1155
1178
|
type: z.string().optional()
|
|
@@ -1527,7 +1550,36 @@ var StockRealTimePriceFullSchema = z.object({
|
|
|
1527
1550
|
lastUpdated: z.number(),
|
|
1528
1551
|
symbol: z.string()
|
|
1529
1552
|
});
|
|
1553
|
+
var StockPriceChangeSchema = z.object({
|
|
1554
|
+
symbol: z.string(),
|
|
1555
|
+
"1D": z.number(),
|
|
1556
|
+
"5D": z.number(),
|
|
1557
|
+
"1M": z.number(),
|
|
1558
|
+
"3M": z.number(),
|
|
1559
|
+
"6M": z.number(),
|
|
1560
|
+
ytd: z.number(),
|
|
1561
|
+
"1Y": z.number(),
|
|
1562
|
+
"3Y": z.number(),
|
|
1563
|
+
"5Y": z.number(),
|
|
1564
|
+
"10Y": z.number(),
|
|
1565
|
+
max: z.number()
|
|
1566
|
+
});
|
|
1567
|
+
var AftermarketTradeSchema = z.object({
|
|
1568
|
+
symbol: z.string(),
|
|
1569
|
+
price: z.number(),
|
|
1570
|
+
tradeSize: z.number(),
|
|
1571
|
+
timestamp: z.number()
|
|
1572
|
+
});
|
|
1573
|
+
var AftermarketQuoteSchema = z.object({
|
|
1574
|
+
symbol: z.string(),
|
|
1575
|
+
bidSize: z.number(),
|
|
1576
|
+
bidPrice: z.number(),
|
|
1577
|
+
askSize: z.number(),
|
|
1578
|
+
askPrice: z.number(),
|
|
1579
|
+
volume: z.number(),
|
|
1580
|
+
timestamp: z.number()
|
|
1581
|
+
});
|
|
1530
1582
|
|
|
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,
|
|
1583
|
+
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
1584
|
//# sourceMappingURL=index.mjs.map
|
|
1533
1585
|
//# sourceMappingURL=index.mjs.map
|