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.d.mts +149 -132
- package/dist/index.d.ts +149 -132
- package/dist/index.js +57 -27
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +52 -26
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1086,6 +1086,12 @@ var QuoteSchema = zod.z.object({
|
|
|
1086
1086
|
sharesOutstanding: zod.z.number().nullable(),
|
|
1087
1087
|
timestamp: zod.z.number()
|
|
1088
1088
|
});
|
|
1089
|
+
var QuoteShortSchema = zod.z.object({
|
|
1090
|
+
symbol: zod.z.string(),
|
|
1091
|
+
price: zod.z.number(),
|
|
1092
|
+
change: zod.z.number(),
|
|
1093
|
+
volume: zod.z.number()
|
|
1094
|
+
});
|
|
1089
1095
|
var HistoricalPriceDataSchema = zod.z.object({
|
|
1090
1096
|
date: zod.z.string(),
|
|
1091
1097
|
open: zod.z.number(),
|
|
@@ -1115,29 +1121,13 @@ var IntradayPriceSchema = zod.z.object({
|
|
|
1115
1121
|
});
|
|
1116
1122
|
|
|
1117
1123
|
// src/market.ts
|
|
1118
|
-
var
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
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()
|
|
1124
|
+
var ExchangeMarketHoursSchema = zod.z.object({
|
|
1125
|
+
exchange: zod.z.string(),
|
|
1126
|
+
name: zod.z.string(),
|
|
1127
|
+
openingHour: zod.z.string(),
|
|
1128
|
+
closingHour: zod.z.string(),
|
|
1129
|
+
timezone: zod.z.string(),
|
|
1130
|
+
isMarketOpen: zod.z.boolean()
|
|
1141
1131
|
});
|
|
1142
1132
|
var MarketPerformanceSchema = zod.z.object({
|
|
1143
1133
|
symbol: zod.z.string(),
|
|
@@ -1149,9 +1139,16 @@ var MarketPerformanceSchema = zod.z.object({
|
|
|
1149
1139
|
exchange: zod.z.string().optional()
|
|
1150
1140
|
});
|
|
1151
1141
|
var MarketSectorPerformanceSchema = zod.z.object({
|
|
1142
|
+
date: zod.z.string(),
|
|
1152
1143
|
sector: zod.z.string(),
|
|
1153
|
-
|
|
1154
|
-
|
|
1144
|
+
exchange: zod.z.string(),
|
|
1145
|
+
averageChange: zod.z.number()
|
|
1146
|
+
});
|
|
1147
|
+
var IndustryPESnapshotSchema = zod.z.object({
|
|
1148
|
+
date: zod.z.string(),
|
|
1149
|
+
industry: zod.z.string(),
|
|
1150
|
+
exchange: zod.z.string(),
|
|
1151
|
+
pe: zod.z.number()
|
|
1155
1152
|
});
|
|
1156
1153
|
var MarketIndexSchema = QuoteSchema.extend({
|
|
1157
1154
|
type: zod.z.string().optional()
|
|
@@ -1529,7 +1526,38 @@ var StockRealTimePriceFullSchema = zod.z.object({
|
|
|
1529
1526
|
lastUpdated: zod.z.number(),
|
|
1530
1527
|
symbol: zod.z.string()
|
|
1531
1528
|
});
|
|
1529
|
+
var StockPriceChangeSchema = zod.z.object({
|
|
1530
|
+
symbol: zod.z.string(),
|
|
1531
|
+
"1D": zod.z.number(),
|
|
1532
|
+
"5D": zod.z.number(),
|
|
1533
|
+
"1M": zod.z.number(),
|
|
1534
|
+
"3M": zod.z.number(),
|
|
1535
|
+
"6M": zod.z.number(),
|
|
1536
|
+
ytd: zod.z.number(),
|
|
1537
|
+
"1Y": zod.z.number(),
|
|
1538
|
+
"3Y": zod.z.number(),
|
|
1539
|
+
"5Y": zod.z.number(),
|
|
1540
|
+
"10Y": zod.z.number(),
|
|
1541
|
+
max: zod.z.number()
|
|
1542
|
+
});
|
|
1543
|
+
var AftermarketTradeSchema = zod.z.object({
|
|
1544
|
+
symbol: zod.z.string(),
|
|
1545
|
+
price: zod.z.number(),
|
|
1546
|
+
tradeSize: zod.z.number(),
|
|
1547
|
+
timestamp: zod.z.number()
|
|
1548
|
+
});
|
|
1549
|
+
var AftermarketQuoteSchema = zod.z.object({
|
|
1550
|
+
symbol: zod.z.string(),
|
|
1551
|
+
bidSize: zod.z.number(),
|
|
1552
|
+
bidPrice: zod.z.number(),
|
|
1553
|
+
askSize: zod.z.number(),
|
|
1554
|
+
askPrice: zod.z.number(),
|
|
1555
|
+
volume: zod.z.number(),
|
|
1556
|
+
timestamp: zod.z.number()
|
|
1557
|
+
});
|
|
1532
1558
|
|
|
1559
|
+
exports.AftermarketQuoteSchema = AftermarketQuoteSchema;
|
|
1560
|
+
exports.AftermarketTradeSchema = AftermarketTradeSchema;
|
|
1533
1561
|
exports.AnalystEstimateSchema = AnalystEstimateSchema;
|
|
1534
1562
|
exports.ArticleSchema = ArticleSchema;
|
|
1535
1563
|
exports.AvailableCountriesSchema = AvailableCountriesSchema;
|
|
@@ -1569,6 +1597,7 @@ exports.EconomicIndicatorSchema = EconomicIndicatorSchema;
|
|
|
1569
1597
|
exports.EconomicsCalendarSchema = EconomicsCalendarSchema;
|
|
1570
1598
|
exports.EnterpriseValueSchema = EnterpriseValueSchema;
|
|
1571
1599
|
exports.Exchange = Exchange;
|
|
1600
|
+
exports.ExchangeMarketHoursSchema = ExchangeMarketHoursSchema;
|
|
1572
1601
|
exports.ExecutiveCompensationSchema = ExecutiveCompensationSchema;
|
|
1573
1602
|
exports.FailToDeliverResponseSchema = FailToDeliverResponseSchema;
|
|
1574
1603
|
exports.FinancialGrowthSchema = FinancialGrowthSchema;
|
|
@@ -1590,6 +1619,7 @@ exports.IndividualIndustryClassificationParamsSchema = IndividualIndustryClassif
|
|
|
1590
1619
|
exports.IndustryClassificationCodeSchema = IndustryClassificationCodeSchema;
|
|
1591
1620
|
exports.IndustryClassificationCodesParamsSchema = IndustryClassificationCodesParamsSchema;
|
|
1592
1621
|
exports.IndustryClassificationSchema = IndustryClassificationSchema;
|
|
1622
|
+
exports.IndustryPESnapshotSchema = IndustryPESnapshotSchema;
|
|
1593
1623
|
exports.InsiderTradeStatisticsResponseSchema = InsiderTradeStatisticsResponseSchema;
|
|
1594
1624
|
exports.InsiderTradingRSSResponseSchema = InsiderTradingRSSResponseSchema;
|
|
1595
1625
|
exports.InsiderTradingSearchResponseSchema = InsiderTradingSearchResponseSchema;
|
|
@@ -1599,8 +1629,6 @@ exports.IntradayPriceSchema = IntradayPriceSchema;
|
|
|
1599
1629
|
exports.KeyMetricsSchema = KeyMetricsSchema;
|
|
1600
1630
|
exports.KeyMetricsTTMSchema = KeyMetricsTTMSchema;
|
|
1601
1631
|
exports.MarketCapSchema = MarketCapSchema;
|
|
1602
|
-
exports.MarketHolidaySchema = MarketHolidaySchema;
|
|
1603
|
-
exports.MarketHoursSchema = MarketHoursSchema;
|
|
1604
1632
|
exports.MarketIndexSchema = MarketIndexSchema;
|
|
1605
1633
|
exports.MarketPerformanceSchema = MarketPerformanceSchema;
|
|
1606
1634
|
exports.MarketSectorPerformanceSchema = MarketSectorPerformanceSchema;
|
|
@@ -1610,6 +1638,7 @@ exports.Period = Period;
|
|
|
1610
1638
|
exports.PriceTargetConsensusSchema = PriceTargetConsensusSchema;
|
|
1611
1639
|
exports.PriceTargetSummarySchema = PriceTargetSummarySchema;
|
|
1612
1640
|
exports.QuoteSchema = QuoteSchema;
|
|
1641
|
+
exports.QuoteShortSchema = QuoteShortSchema;
|
|
1613
1642
|
exports.RSSFeed8KItemSchema = RSSFeed8KItemSchema;
|
|
1614
1643
|
exports.RSSFeed8KParamsSchema = RSSFeed8KParamsSchema;
|
|
1615
1644
|
exports.RSSFeedAllItemSchema = RSSFeedAllItemSchema;
|
|
@@ -1634,6 +1663,7 @@ exports.StockDividendSchema = StockDividendSchema;
|
|
|
1634
1663
|
exports.StockGradeSchema = StockGradeSchema;
|
|
1635
1664
|
exports.StockListSchema = StockListSchema;
|
|
1636
1665
|
exports.StockPeerSchema = StockPeerSchema;
|
|
1666
|
+
exports.StockPriceChangeSchema = StockPriceChangeSchema;
|
|
1637
1667
|
exports.StockRealTimePriceFullSchema = StockRealTimePriceFullSchema;
|
|
1638
1668
|
exports.StockRealTimePriceSchema = StockRealTimePriceSchema;
|
|
1639
1669
|
exports.StockSplitResponseSchema = StockSplitResponseSchema;
|