fmp-node-types 0.2.3-beta.0 → 0.2.4-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 +36 -12
- package/dist/index.d.ts +36 -12
- package/dist/index.js +21 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +21 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -202,31 +202,7 @@ var TreasuryRateSchema = z.object({
|
|
|
202
202
|
year20: z.number(),
|
|
203
203
|
year30: z.number()
|
|
204
204
|
});
|
|
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
|
-
]);
|
|
205
|
+
var EconomicIndicatorNameSchema = z.union([z.literal("GDP"), z.literal("realGDP"), z.literal("nominalPotentialGDP"), z.literal("realGDPPerCapita"), z.literal("federalFunds"), z.literal("CPI"), z.literal("inflationRate"), z.literal("inflation"), z.literal("retailSales"), z.literal("consumerSentiment"), z.literal("durableGoods"), z.literal("unemploymentRate"), z.literal("totalNonfarmPayroll"), z.literal("initialClaims"), z.literal("industrialProductionTotalIndex"), z.literal("newPrivatelyOwnedHousingUnitsStartedTotalUnits"), z.literal("totalVehicleSales"), z.literal("retailMoneyFunds"), z.literal("smoothedUSRecessionProbabilities"), z.literal("3MonthOr90DayRatesAndYieldsCertificatesOfDeposit"), z.literal("commercialBankInterestRateOnCreditCardPlansAllAccounts"), z.literal("30YearFixedRateMortgageAverage"), z.literal("15YearFixedRateMortgageAverage")]);
|
|
230
206
|
var ETFHoldingDatesSchema = z.object({
|
|
231
207
|
date: z.string()
|
|
232
208
|
});
|
|
@@ -284,12 +260,10 @@ var ETFProfileSchema = z.object({
|
|
|
284
260
|
holdingsCount: z.number(),
|
|
285
261
|
updatedAt: z.string(),
|
|
286
262
|
isActivelyTrading: z.boolean(),
|
|
287
|
-
sectorsList: z.array(
|
|
288
|
-
z.
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
})
|
|
292
|
-
)
|
|
263
|
+
sectorsList: z.array(z.object({
|
|
264
|
+
exposure: z.number(),
|
|
265
|
+
industry: z.string()
|
|
266
|
+
}))
|
|
293
267
|
});
|
|
294
268
|
var ETFWeightingSchema = z.object({
|
|
295
269
|
symbol: z.string(),
|
|
@@ -536,6 +510,8 @@ var FinancialRatiosSchema = z.object({
|
|
|
536
510
|
priceToEarningsRatio: z.number(),
|
|
537
511
|
priceToEarningsGrowthRatio: z.number(),
|
|
538
512
|
forwardPriceToEarningsGrowthRatio: z.number(),
|
|
513
|
+
priceToEarningsDilutedRatio: z.number(),
|
|
514
|
+
priceToEarningsDilutedGrowthRatio: z.number(),
|
|
539
515
|
priceToBookRatio: z.number(),
|
|
540
516
|
priceToSalesRatio: z.number(),
|
|
541
517
|
priceToFreeCashFlowRatio: z.number(),
|
|
@@ -866,6 +842,8 @@ var FinancialRatiosTTMSchema = z.object({
|
|
|
866
842
|
priceToEarningsRatioTTM: z.number(),
|
|
867
843
|
priceToEarningsGrowthRatioTTM: z.number(),
|
|
868
844
|
forwardPriceToEarningsGrowthRatioTTM: z.number(),
|
|
845
|
+
priceToEarningsDilutedRatioTTM: z.number(),
|
|
846
|
+
priceToEarningsDilutedGrowthRatioTTM: z.number(),
|
|
869
847
|
priceToBookRatioTTM: z.number(),
|
|
870
848
|
priceToSalesRatioTTM: z.number(),
|
|
871
849
|
priceToFreeCashFlowRatioTTM: z.number(),
|
|
@@ -1185,11 +1163,13 @@ var MutualFundHoldingSchema = z.object({
|
|
|
1185
1163
|
weightPercent: z.number()
|
|
1186
1164
|
});
|
|
1187
1165
|
var NewsSchema = z.object({
|
|
1188
|
-
|
|
1166
|
+
// null on market-wide stories with no single ticker (verified live 2026-09-26).
|
|
1167
|
+
symbol: z.string().nullable(),
|
|
1189
1168
|
publishedDate: z.string(),
|
|
1190
1169
|
publisher: z.string(),
|
|
1191
1170
|
title: z.string(),
|
|
1192
|
-
image
|
|
1171
|
+
// null when the article has no image (verified live 2026-09-26).
|
|
1172
|
+
image: z.string().nullable(),
|
|
1193
1173
|
site: z.string(),
|
|
1194
1174
|
text: z.string(),
|
|
1195
1175
|
url: z.string()
|
|
@@ -1326,6 +1306,7 @@ var ScreenerSchema = z.object({
|
|
|
1326
1306
|
price: z.number(),
|
|
1327
1307
|
lastAnnualDividend: z.number().nullable(),
|
|
1328
1308
|
volume: z.number(),
|
|
1309
|
+
avgVolume: z.number(),
|
|
1329
1310
|
exchange: z.string(),
|
|
1330
1311
|
exchangeShortName: z.string(),
|
|
1331
1312
|
country: z.string(),
|
|
@@ -1455,6 +1436,8 @@ var TechnicalIndicatorSchema = z.object({
|
|
|
1455
1436
|
});
|
|
1456
1437
|
var SenateTradingResponseSchema = z.object({
|
|
1457
1438
|
symbol: z.string(),
|
|
1439
|
+
// Congressional Bioguide ID (e.g. "P000197"); FMP uses this key for House members too.
|
|
1440
|
+
senateID: z.string(),
|
|
1458
1441
|
disclosureDate: z.string(),
|
|
1459
1442
|
transactionDate: z.string(),
|
|
1460
1443
|
firstName: z.string(),
|
|
@@ -1473,6 +1456,7 @@ var SenateTradingResponseSchema = z.object({
|
|
|
1473
1456
|
});
|
|
1474
1457
|
var HouseTradingResponseSchema = z.object({
|
|
1475
1458
|
symbol: z.string(),
|
|
1459
|
+
senateID: z.string(),
|
|
1476
1460
|
disclosureDate: z.string(),
|
|
1477
1461
|
transactionDate: z.string(),
|
|
1478
1462
|
firstName: z.string(),
|
|
@@ -1490,6 +1474,7 @@ var HouseTradingResponseSchema = z.object({
|
|
|
1490
1474
|
});
|
|
1491
1475
|
var SenateHouseTradingByNameResponseSchema = z.object({
|
|
1492
1476
|
symbol: z.string(),
|
|
1477
|
+
senateID: z.string(),
|
|
1493
1478
|
disclosureDate: z.string(),
|
|
1494
1479
|
transactionDate: z.string(),
|
|
1495
1480
|
firstName: z.string(),
|
|
@@ -1567,7 +1552,9 @@ var StockPriceChangeSchema = z.object({
|
|
|
1567
1552
|
var AftermarketTradeSchema = z.object({
|
|
1568
1553
|
symbol: z.string(),
|
|
1569
1554
|
price: z.number(),
|
|
1570
|
-
|
|
1555
|
+
// null when FMP reports no extended-hours trade size (seen after the
|
|
1556
|
+
// post-market session closes; verified live 2026-09-26).
|
|
1557
|
+
tradeSize: z.number().nullable(),
|
|
1571
1558
|
timestamp: z.number()
|
|
1572
1559
|
});
|
|
1573
1560
|
var AftermarketQuoteSchema = z.object({
|