fmp-node-types 0.1.4 → 0.2.0-beta.1

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.js CHANGED
@@ -1,5 +1,70 @@
1
1
  'use strict';
2
2
 
3
+ var zod = require('zod');
4
+
5
+ // src/calendar.ts
6
+ var EarningsCalendarSchema = zod.z.object({
7
+ date: zod.z.string(),
8
+ symbol: zod.z.string(),
9
+ eps: zod.z.number().nullable(),
10
+ epsEstimated: zod.z.number().nullable(),
11
+ time: zod.z.string().nullable(),
12
+ revenue: zod.z.number().nullable(),
13
+ revenueEstimated: zod.z.number().nullable(),
14
+ fiscalDateEnding: zod.z.string(),
15
+ updatedFromDate: zod.z.string()
16
+ });
17
+ var EarningsConfirmedSchema = zod.z.object({
18
+ symbol: zod.z.string(),
19
+ exchange: zod.z.string(),
20
+ time: zod.z.string(),
21
+ when: zod.z.string(),
22
+ date: zod.z.string(),
23
+ publicationDate: zod.z.string(),
24
+ title: zod.z.string(),
25
+ url: zod.z.string()
26
+ });
27
+ var DividendsCalendarSchema = zod.z.object({
28
+ date: zod.z.string(),
29
+ label: zod.z.string(),
30
+ adjDividend: zod.z.number(),
31
+ symbol: zod.z.string(),
32
+ dividend: zod.z.number(),
33
+ recordDate: zod.z.string().nullable(),
34
+ paymentDate: zod.z.string().nullable(),
35
+ declarationDate: zod.z.string().nullable()
36
+ });
37
+ var EconomicsCalendarSchema = zod.z.object({
38
+ date: zod.z.string(),
39
+ country: zod.z.string(),
40
+ event: zod.z.string(),
41
+ currency: zod.z.string(),
42
+ previous: zod.z.number().nullable(),
43
+ estimate: zod.z.number().nullable(),
44
+ actual: zod.z.number().nullable(),
45
+ change: zod.z.number().nullable(),
46
+ impact: zod.z.string(),
47
+ changePercentage: zod.z.number(),
48
+ unit: zod.z.string().nullable()
49
+ });
50
+ var IPOCalendarSchema = zod.z.object({
51
+ date: zod.z.string(),
52
+ company: zod.z.string(),
53
+ symbol: zod.z.string(),
54
+ exchange: zod.z.string(),
55
+ actions: zod.z.string(),
56
+ shares: zod.z.number().nullable(),
57
+ priceRange: zod.z.string().nullable(),
58
+ marketCap: zod.z.number().nullable()
59
+ });
60
+ var SplitsCalendarSchema = zod.z.object({
61
+ date: zod.z.string(),
62
+ label: zod.z.string(),
63
+ symbol: zod.z.string(),
64
+ numerator: zod.z.number(),
65
+ denominator: zod.z.number()
66
+ });
67
+
3
68
  // src/common.ts
4
69
  var Period = /* @__PURE__ */ ((Period2) => {
5
70
  Period2["ANNUAL"] = "annual";
@@ -17,8 +82,772 @@ var Exchange = /* @__PURE__ */ ((Exchange2) => {
17
82
  Exchange2["BSE"] = "BSE";
18
83
  return Exchange2;
19
84
  })(Exchange || {});
20
-
21
- // src/insider.ts
85
+ var CompanyProfileSchema = zod.z.object({
86
+ symbol: zod.z.string(),
87
+ price: zod.z.number(),
88
+ marketCap: zod.z.number(),
89
+ beta: zod.z.number(),
90
+ lastDividend: zod.z.number(),
91
+ range: zod.z.string(),
92
+ change: zod.z.number(),
93
+ changePercentage: zod.z.number(),
94
+ volume: zod.z.number(),
95
+ averageVolume: zod.z.number(),
96
+ companyName: zod.z.string(),
97
+ currency: zod.z.string(),
98
+ cik: zod.z.string(),
99
+ isin: zod.z.string(),
100
+ cusip: zod.z.string(),
101
+ exchangeFullName: zod.z.string(),
102
+ exchange: zod.z.string(),
103
+ industry: zod.z.string(),
104
+ website: zod.z.string(),
105
+ description: zod.z.string(),
106
+ ceo: zod.z.string(),
107
+ sector: zod.z.string(),
108
+ country: zod.z.string(),
109
+ fullTimeEmployees: zod.z.string(),
110
+ phone: zod.z.string(),
111
+ address: zod.z.string(),
112
+ city: zod.z.string(),
113
+ state: zod.z.string(),
114
+ zip: zod.z.string(),
115
+ image: zod.z.string(),
116
+ ipoDate: zod.z.string(),
117
+ defaultImage: zod.z.boolean(),
118
+ isEtf: zod.z.boolean(),
119
+ isActivelyTrading: zod.z.boolean(),
120
+ isAdr: zod.z.boolean(),
121
+ isFund: zod.z.boolean()
122
+ });
123
+ var ExecutiveCompensationSchema = zod.z.object({
124
+ cik: zod.z.string(),
125
+ symbol: zod.z.string(),
126
+ companyName: zod.z.string(),
127
+ filingDate: zod.z.string(),
128
+ acceptedDate: zod.z.string(),
129
+ nameAndPosition: zod.z.string(),
130
+ year: zod.z.number(),
131
+ salary: zod.z.number(),
132
+ bonus: zod.z.number(),
133
+ stockAward: zod.z.number(),
134
+ optionAward: zod.z.number(),
135
+ incentivePlanCompensation: zod.z.number(),
136
+ allOtherCompensation: zod.z.number(),
137
+ total: zod.z.number(),
138
+ link: zod.z.string()
139
+ });
140
+ var CompanyNotesSchema = zod.z.object({
141
+ cik: zod.z.string(),
142
+ symbol: zod.z.string(),
143
+ title: zod.z.string(),
144
+ exchange: zod.z.string()
145
+ });
146
+ var HistoricalEmployeeCountSchema = zod.z.object({
147
+ symbol: zod.z.string(),
148
+ cik: zod.z.string(),
149
+ acceptanceTime: zod.z.string(),
150
+ periodOfReport: zod.z.string(),
151
+ companyName: zod.z.string(),
152
+ formType: zod.z.string(),
153
+ filingDate: zod.z.string(),
154
+ employeeCount: zod.z.number(),
155
+ source: zod.z.string()
156
+ });
157
+ var SharesFloatSchema = zod.z.object({
158
+ symbol: zod.z.string(),
159
+ freeFloat: zod.z.number(),
160
+ floatShares: zod.z.number(),
161
+ outstandingShares: zod.z.number(),
162
+ source: zod.z.string(),
163
+ date: zod.z.string()
164
+ });
165
+ var HistoricalSharesFloatSchema = zod.z.object({
166
+ symbol: zod.z.string(),
167
+ freeFloat: zod.z.number(),
168
+ floatShares: zod.z.string(),
169
+ outstandingShares: zod.z.string(),
170
+ source: zod.z.string().nullable(),
171
+ date: zod.z.string()
172
+ });
173
+ var EarningsCallTranscriptSchema = zod.z.object({
174
+ symbol: zod.z.string(),
175
+ quarter: zod.z.number(),
176
+ year: zod.z.number(),
177
+ date: zod.z.string(),
178
+ content: zod.z.string()
179
+ });
180
+ var CompanyTranscriptDataSchema = zod.z.tuple([zod.z.number(), zod.z.number(), zod.z.string()]);
181
+ var EconomicIndicatorSchema = zod.z.object({
182
+ name: zod.z.string(),
183
+ date: zod.z.string(),
184
+ value: zod.z.number()
185
+ });
186
+ var TreasuryRateSchema = zod.z.object({
187
+ date: zod.z.string(),
188
+ month1: zod.z.number(),
189
+ month2: zod.z.number(),
190
+ month3: zod.z.number(),
191
+ month6: zod.z.number(),
192
+ year1: zod.z.number(),
193
+ year2: zod.z.number(),
194
+ year3: zod.z.number(),
195
+ year5: zod.z.number(),
196
+ year7: zod.z.number(),
197
+ year10: zod.z.number(),
198
+ year20: zod.z.number(),
199
+ year30: zod.z.number()
200
+ });
201
+ 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")]);
202
+ var ETFHoldingDatesSchema = zod.z.object({
203
+ date: zod.z.string()
204
+ });
205
+ var ETFHoldingSchema = zod.z.object({
206
+ cik: zod.z.string(),
207
+ acceptanceTime: zod.z.string(),
208
+ date: zod.z.string(),
209
+ symbol: zod.z.string(),
210
+ name: zod.z.string(),
211
+ lei: zod.z.string(),
212
+ title: zod.z.string(),
213
+ cusip: zod.z.string(),
214
+ isin: zod.z.string(),
215
+ balance: zod.z.number(),
216
+ units: zod.z.string(),
217
+ cur_cd: zod.z.string(),
218
+ valUsd: zod.z.number(),
219
+ pctVal: zod.z.number(),
220
+ payoffProfile: zod.z.string(),
221
+ assetCat: zod.z.string(),
222
+ issuerCat: zod.z.string(),
223
+ invCountry: zod.z.string(),
224
+ isRestrictedSec: zod.z.string(),
225
+ fairValLevel: zod.z.string(),
226
+ isCashCollateral: zod.z.string(),
227
+ isNonCashCollateral: zod.z.string(),
228
+ isLoanByFund: zod.z.string()
229
+ });
230
+ var ETFHolderSchema = zod.z.object({
231
+ asset: zod.z.string(),
232
+ name: zod.z.string(),
233
+ isin: zod.z.string(),
234
+ cusip: zod.z.string(),
235
+ sharesNumber: zod.z.number(),
236
+ weightPercentage: zod.z.number(),
237
+ marketValue: zod.z.number(),
238
+ updated: zod.z.string()
239
+ });
240
+ var ETFProfileSchema = zod.z.object({
241
+ symbol: zod.z.string(),
242
+ name: zod.z.string(),
243
+ description: zod.z.string(),
244
+ isin: zod.z.string(),
245
+ assetClass: zod.z.string(),
246
+ securityCusip: zod.z.string(),
247
+ domicile: zod.z.string(),
248
+ website: zod.z.string(),
249
+ etfCompany: zod.z.string(),
250
+ expenseRatio: zod.z.number(),
251
+ assetsUnderManagement: zod.z.number(),
252
+ avgVolume: zod.z.number(),
253
+ inceptionDate: zod.z.string(),
254
+ nav: zod.z.number(),
255
+ navCurrency: zod.z.string(),
256
+ holdingsCount: zod.z.number(),
257
+ updatedAt: zod.z.string(),
258
+ isActivelyTrading: zod.z.boolean(),
259
+ sectorsList: zod.z.array(zod.z.object({
260
+ exposure: zod.z.number(),
261
+ industry: zod.z.string()
262
+ }))
263
+ });
264
+ var ETFWeightingSchema = zod.z.object({
265
+ symbol: zod.z.string(),
266
+ sector: zod.z.string(),
267
+ // Sector weighting returns a numeric percentage (country weighting returns a string).
268
+ weightPercentage: zod.z.number()
269
+ });
270
+ var ETFCountryWeightingSchema = zod.z.object({
271
+ country: zod.z.string(),
272
+ weightPercentage: zod.z.string()
273
+ });
274
+ var ETFStockExposureSchema = zod.z.object({
275
+ etfSymbol: zod.z.string(),
276
+ assetExposure: zod.z.string(),
277
+ sharesNumber: zod.z.number(),
278
+ weightPercentage: zod.z.number(),
279
+ marketValue: zod.z.number()
280
+ });
281
+ var IncomeStatementSchema = zod.z.object({
282
+ date: zod.z.string(),
283
+ symbol: zod.z.string(),
284
+ reportedCurrency: zod.z.string(),
285
+ cik: zod.z.string(),
286
+ filingDate: zod.z.string(),
287
+ acceptedDate: zod.z.string(),
288
+ fiscalYear: zod.z.string(),
289
+ period: zod.z.string(),
290
+ revenue: zod.z.number(),
291
+ costOfRevenue: zod.z.number(),
292
+ grossProfit: zod.z.number(),
293
+ researchAndDevelopmentExpenses: zod.z.number(),
294
+ generalAndAdministrativeExpenses: zod.z.number(),
295
+ sellingAndMarketingExpenses: zod.z.number(),
296
+ sellingGeneralAndAdministrativeExpenses: zod.z.number(),
297
+ otherExpenses: zod.z.number(),
298
+ operatingExpenses: zod.z.number(),
299
+ costAndExpenses: zod.z.number(),
300
+ netInterestIncome: zod.z.number(),
301
+ interestIncome: zod.z.number(),
302
+ interestExpense: zod.z.number(),
303
+ depreciationAndAmortization: zod.z.number(),
304
+ ebitda: zod.z.number(),
305
+ ebit: zod.z.number(),
306
+ nonOperatingIncomeExcludingInterest: zod.z.number(),
307
+ operatingIncome: zod.z.number(),
308
+ totalOtherIncomeExpensesNet: zod.z.number(),
309
+ incomeBeforeTax: zod.z.number(),
310
+ incomeTaxExpense: zod.z.number(),
311
+ netIncomeFromContinuingOperations: zod.z.number(),
312
+ netIncomeFromDiscontinuedOperations: zod.z.number(),
313
+ otherAdjustmentsToNetIncome: zod.z.number(),
314
+ netIncome: zod.z.number(),
315
+ netIncomeDeductions: zod.z.number(),
316
+ bottomLineNetIncome: zod.z.number(),
317
+ eps: zod.z.number(),
318
+ epsDiluted: zod.z.number(),
319
+ weightedAverageShsOut: zod.z.number(),
320
+ weightedAverageShsOutDil: zod.z.number()
321
+ });
322
+ var BalanceSheetSchema = zod.z.object({
323
+ date: zod.z.string(),
324
+ symbol: zod.z.string(),
325
+ reportedCurrency: zod.z.string(),
326
+ cik: zod.z.string(),
327
+ filingDate: zod.z.string(),
328
+ acceptedDate: zod.z.string(),
329
+ fiscalYear: zod.z.string(),
330
+ period: zod.z.string(),
331
+ cashAndCashEquivalents: zod.z.number(),
332
+ shortTermInvestments: zod.z.number(),
333
+ cashAndShortTermInvestments: zod.z.number(),
334
+ netReceivables: zod.z.number(),
335
+ accountsReceivables: zod.z.number(),
336
+ otherReceivables: zod.z.number(),
337
+ inventory: zod.z.number(),
338
+ prepaids: zod.z.number(),
339
+ otherCurrentAssets: zod.z.number(),
340
+ totalCurrentAssets: zod.z.number(),
341
+ propertyPlantEquipmentNet: zod.z.number(),
342
+ goodwill: zod.z.number(),
343
+ intangibleAssets: zod.z.number(),
344
+ goodwillAndIntangibleAssets: zod.z.number(),
345
+ longTermInvestments: zod.z.number(),
346
+ taxAssets: zod.z.number(),
347
+ otherNonCurrentAssets: zod.z.number(),
348
+ totalNonCurrentAssets: zod.z.number(),
349
+ otherAssets: zod.z.number(),
350
+ totalAssets: zod.z.number(),
351
+ totalPayables: zod.z.number(),
352
+ accountPayables: zod.z.number(),
353
+ otherPayables: zod.z.number(),
354
+ accruedExpenses: zod.z.number(),
355
+ shortTermDebt: zod.z.number(),
356
+ capitalLeaseObligationsCurrent: zod.z.number(),
357
+ taxPayables: zod.z.number(),
358
+ deferredRevenue: zod.z.number(),
359
+ otherCurrentLiabilities: zod.z.number(),
360
+ totalCurrentLiabilities: zod.z.number(),
361
+ longTermDebt: zod.z.number(),
362
+ deferredRevenueNonCurrent: zod.z.number(),
363
+ deferredTaxLiabilitiesNonCurrent: zod.z.number(),
364
+ capitalLeaseObligationsNonCurrent: zod.z.number(),
365
+ otherNonCurrentLiabilities: zod.z.number(),
366
+ totalNonCurrentLiabilities: zod.z.number(),
367
+ otherLiabilities: zod.z.number(),
368
+ capitalLeaseObligations: zod.z.number(),
369
+ totalLiabilities: zod.z.number(),
370
+ treasuryStock: zod.z.number(),
371
+ preferredStock: zod.z.number(),
372
+ commonStock: zod.z.number(),
373
+ retainedEarnings: zod.z.number(),
374
+ additionalPaidInCapital: zod.z.number(),
375
+ accumulatedOtherComprehensiveIncomeLoss: zod.z.number(),
376
+ otherTotalStockholdersEquity: zod.z.number(),
377
+ totalStockholdersEquity: zod.z.number(),
378
+ totalEquity: zod.z.number(),
379
+ minorityInterest: zod.z.number(),
380
+ totalLiabilitiesAndTotalEquity: zod.z.number(),
381
+ totalInvestments: zod.z.number(),
382
+ totalDebt: zod.z.number(),
383
+ netDebt: zod.z.number()
384
+ });
385
+ var CashFlowStatementSchema = zod.z.object({
386
+ date: zod.z.string(),
387
+ symbol: zod.z.string(),
388
+ reportedCurrency: zod.z.string(),
389
+ cik: zod.z.string(),
390
+ filingDate: zod.z.string(),
391
+ acceptedDate: zod.z.string(),
392
+ fiscalYear: zod.z.string(),
393
+ period: zod.z.string(),
394
+ netIncome: zod.z.number(),
395
+ depreciationAndAmortization: zod.z.number(),
396
+ deferredIncomeTax: zod.z.number(),
397
+ stockBasedCompensation: zod.z.number(),
398
+ changeInWorkingCapital: zod.z.number(),
399
+ accountsReceivables: zod.z.number(),
400
+ inventory: zod.z.number(),
401
+ accountsPayables: zod.z.number(),
402
+ otherWorkingCapital: zod.z.number(),
403
+ otherNonCashItems: zod.z.number(),
404
+ netCashProvidedByOperatingActivities: zod.z.number(),
405
+ investmentsInPropertyPlantAndEquipment: zod.z.number(),
406
+ acquisitionsNet: zod.z.number(),
407
+ purchasesOfInvestments: zod.z.number(),
408
+ salesMaturitiesOfInvestments: zod.z.number(),
409
+ otherInvestingActivities: zod.z.number(),
410
+ netCashProvidedByInvestingActivities: zod.z.number(),
411
+ netDebtIssuance: zod.z.number(),
412
+ longTermNetDebtIssuance: zod.z.number(),
413
+ shortTermNetDebtIssuance: zod.z.number(),
414
+ netStockIssuance: zod.z.number(),
415
+ netCommonStockIssuance: zod.z.number(),
416
+ commonStockIssuance: zod.z.number(),
417
+ commonStockRepurchased: zod.z.number(),
418
+ netPreferredStockIssuance: zod.z.number(),
419
+ netDividendsPaid: zod.z.number(),
420
+ commonDividendsPaid: zod.z.number(),
421
+ preferredDividendsPaid: zod.z.number(),
422
+ otherFinancingActivities: zod.z.number(),
423
+ netCashProvidedByFinancingActivities: zod.z.number(),
424
+ effectOfForexChangesOnCash: zod.z.number(),
425
+ netChangeInCash: zod.z.number(),
426
+ cashAtEndOfPeriod: zod.z.number(),
427
+ cashAtBeginningOfPeriod: zod.z.number(),
428
+ operatingCashFlow: zod.z.number(),
429
+ capitalExpenditure: zod.z.number(),
430
+ freeCashFlow: zod.z.number(),
431
+ incomeTaxesPaid: zod.z.number(),
432
+ interestPaid: zod.z.number()
433
+ });
434
+ var KeyMetricsSchema = zod.z.object({
435
+ symbol: zod.z.string(),
436
+ date: zod.z.string(),
437
+ fiscalYear: zod.z.string(),
438
+ period: zod.z.string(),
439
+ reportedCurrency: zod.z.string(),
440
+ marketCap: zod.z.number(),
441
+ enterpriseValue: zod.z.number(),
442
+ evToSales: zod.z.number(),
443
+ evToOperatingCashFlow: zod.z.number(),
444
+ evToFreeCashFlow: zod.z.number(),
445
+ evToEBITDA: zod.z.number(),
446
+ netDebtToEBITDA: zod.z.number(),
447
+ currentRatio: zod.z.number(),
448
+ incomeQuality: zod.z.number(),
449
+ grahamNumber: zod.z.number(),
450
+ grahamNetNet: zod.z.number(),
451
+ taxBurden: zod.z.number(),
452
+ interestBurden: zod.z.number(),
453
+ workingCapital: zod.z.number(),
454
+ investedCapital: zod.z.number(),
455
+ returnOnAssets: zod.z.number(),
456
+ operatingReturnOnAssets: zod.z.number(),
457
+ returnOnTangibleAssets: zod.z.number(),
458
+ returnOnEquity: zod.z.number(),
459
+ returnOnInvestedCapital: zod.z.number(),
460
+ returnOnCapitalEmployed: zod.z.number(),
461
+ earningsYield: zod.z.number(),
462
+ freeCashFlowYield: zod.z.number(),
463
+ capexToOperatingCashFlow: zod.z.number(),
464
+ capexToDepreciation: zod.z.number(),
465
+ capexToRevenue: zod.z.number(),
466
+ salesGeneralAndAdministrativeToRevenue: zod.z.number(),
467
+ researchAndDevelopementToRevenue: zod.z.number(),
468
+ stockBasedCompensationToRevenue: zod.z.number(),
469
+ intangiblesToTotalAssets: zod.z.number(),
470
+ averageReceivables: zod.z.number(),
471
+ averagePayables: zod.z.number(),
472
+ averageInventory: zod.z.number(),
473
+ daysOfSalesOutstanding: zod.z.number(),
474
+ daysOfPayablesOutstanding: zod.z.number(),
475
+ daysOfInventoryOutstanding: zod.z.number(),
476
+ operatingCycle: zod.z.number(),
477
+ cashConversionCycle: zod.z.number(),
478
+ freeCashFlowToEquity: zod.z.number(),
479
+ freeCashFlowToFirm: zod.z.number(),
480
+ tangibleAssetValue: zod.z.number(),
481
+ netCurrentAssetValue: zod.z.number()
482
+ });
483
+ var FinancialRatiosSchema = zod.z.object({
484
+ symbol: zod.z.string(),
485
+ date: zod.z.string(),
486
+ fiscalYear: zod.z.string(),
487
+ period: zod.z.string(),
488
+ reportedCurrency: zod.z.string(),
489
+ grossProfitMargin: zod.z.number(),
490
+ ebitMargin: zod.z.number(),
491
+ ebitdaMargin: zod.z.number(),
492
+ operatingProfitMargin: zod.z.number(),
493
+ pretaxProfitMargin: zod.z.number(),
494
+ continuousOperationsProfitMargin: zod.z.number(),
495
+ netProfitMargin: zod.z.number(),
496
+ bottomLineProfitMargin: zod.z.number(),
497
+ receivablesTurnover: zod.z.number(),
498
+ payablesTurnover: zod.z.number(),
499
+ inventoryTurnover: zod.z.number(),
500
+ fixedAssetTurnover: zod.z.number(),
501
+ assetTurnover: zod.z.number(),
502
+ currentRatio: zod.z.number(),
503
+ quickRatio: zod.z.number(),
504
+ solvencyRatio: zod.z.number(),
505
+ cashRatio: zod.z.number(),
506
+ priceToEarningsRatio: zod.z.number(),
507
+ priceToEarningsGrowthRatio: zod.z.number(),
508
+ forwardPriceToEarningsGrowthRatio: zod.z.number(),
509
+ priceToBookRatio: zod.z.number(),
510
+ priceToSalesRatio: zod.z.number(),
511
+ priceToFreeCashFlowRatio: zod.z.number(),
512
+ priceToOperatingCashFlowRatio: zod.z.number(),
513
+ debtToAssetsRatio: zod.z.number(),
514
+ debtToEquityRatio: zod.z.number(),
515
+ debtToCapitalRatio: zod.z.number(),
516
+ longTermDebtToCapitalRatio: zod.z.number(),
517
+ financialLeverageRatio: zod.z.number(),
518
+ workingCapitalTurnoverRatio: zod.z.number(),
519
+ operatingCashFlowRatio: zod.z.number(),
520
+ operatingCashFlowSalesRatio: zod.z.number(),
521
+ freeCashFlowOperatingCashFlowRatio: zod.z.number(),
522
+ debtServiceCoverageRatio: zod.z.number(),
523
+ interestCoverageRatio: zod.z.number(),
524
+ shortTermOperatingCashFlowCoverageRatio: zod.z.number(),
525
+ operatingCashFlowCoverageRatio: zod.z.number(),
526
+ capitalExpenditureCoverageRatio: zod.z.number(),
527
+ dividendPaidAndCapexCoverageRatio: zod.z.number(),
528
+ dividendPayoutRatio: zod.z.number(),
529
+ dividendYield: zod.z.number(),
530
+ dividendYieldPercentage: zod.z.number(),
531
+ dividendPerShare: zod.z.number(),
532
+ revenuePerShare: zod.z.number(),
533
+ netIncomePerShare: zod.z.number(),
534
+ interestDebtPerShare: zod.z.number(),
535
+ cashPerShare: zod.z.number(),
536
+ bookValuePerShare: zod.z.number(),
537
+ tangibleBookValuePerShare: zod.z.number(),
538
+ shareholdersEquityPerShare: zod.z.number(),
539
+ operatingCashFlowPerShare: zod.z.number(),
540
+ capexPerShare: zod.z.number(),
541
+ freeCashFlowPerShare: zod.z.number(),
542
+ netIncomePerEBT: zod.z.number(),
543
+ ebtPerEbit: zod.z.number(),
544
+ priceToFairValue: zod.z.number(),
545
+ debtToMarketCap: zod.z.number(),
546
+ effectiveTaxRate: zod.z.number(),
547
+ enterpriseValueMultiple: zod.z.number()
548
+ });
549
+ var EnterpriseValueSchema = zod.z.object({
550
+ symbol: zod.z.string(),
551
+ date: zod.z.string(),
552
+ stockPrice: zod.z.number(),
553
+ numberOfShares: zod.z.number(),
554
+ marketCapitalization: zod.z.number(),
555
+ minusCashAndCashEquivalents: zod.z.number(),
556
+ addTotalDebt: zod.z.number(),
557
+ enterpriseValue: zod.z.number()
558
+ });
559
+ var CashflowGrowthSchema = zod.z.object({
560
+ symbol: zod.z.string(),
561
+ date: zod.z.string(),
562
+ fiscalYear: zod.z.string(),
563
+ period: zod.z.string(),
564
+ reportedCurrency: zod.z.string(),
565
+ growthNetIncome: zod.z.number(),
566
+ growthDepreciationAndAmortization: zod.z.number(),
567
+ growthDeferredIncomeTax: zod.z.number(),
568
+ growthStockBasedCompensation: zod.z.number(),
569
+ growthChangeInWorkingCapital: zod.z.number(),
570
+ growthAccountsReceivables: zod.z.number(),
571
+ growthInventory: zod.z.number(),
572
+ growthAccountsPayables: zod.z.number(),
573
+ growthOtherWorkingCapital: zod.z.number(),
574
+ growthOtherNonCashItems: zod.z.number(),
575
+ growthNetCashProvidedByOperatingActivites: zod.z.number(),
576
+ growthInvestmentsInPropertyPlantAndEquipment: zod.z.number(),
577
+ growthAcquisitionsNet: zod.z.number(),
578
+ growthPurchasesOfInvestments: zod.z.number(),
579
+ growthSalesMaturitiesOfInvestments: zod.z.number(),
580
+ growthOtherInvestingActivites: zod.z.number(),
581
+ growthNetCashUsedForInvestingActivites: zod.z.number(),
582
+ growthDebtRepayment: zod.z.number(),
583
+ growthCommonStockIssued: zod.z.number(),
584
+ growthCommonStockRepurchased: zod.z.number(),
585
+ growthDividendsPaid: zod.z.number(),
586
+ growthOtherFinancingActivites: zod.z.number(),
587
+ growthNetCashUsedProvidedByFinancingActivities: zod.z.number(),
588
+ growthEffectOfForexChangesOnCash: zod.z.number(),
589
+ growthNetChangeInCash: zod.z.number(),
590
+ growthCashAtEndOfPeriod: zod.z.number(),
591
+ growthCashAtBeginningOfPeriod: zod.z.number(),
592
+ growthOperatingCashFlow: zod.z.number(),
593
+ growthCapitalExpenditure: zod.z.number(),
594
+ growthFreeCashFlow: zod.z.number(),
595
+ growthNetDebtIssuance: zod.z.number(),
596
+ growthLongTermNetDebtIssuance: zod.z.number(),
597
+ growthShortTermNetDebtIssuance: zod.z.number(),
598
+ growthNetStockIssuance: zod.z.number(),
599
+ growthPreferredDividendsPaid: zod.z.number(),
600
+ growthIncomeTaxesPaid: zod.z.number(),
601
+ growthInterestPaid: zod.z.number()
602
+ });
603
+ var IncomeGrowthSchema = zod.z.object({
604
+ symbol: zod.z.string(),
605
+ date: zod.z.string(),
606
+ fiscalYear: zod.z.string(),
607
+ period: zod.z.string(),
608
+ reportedCurrency: zod.z.string(),
609
+ growthRevenue: zod.z.number(),
610
+ growthCostOfRevenue: zod.z.number(),
611
+ growthGrossProfit: zod.z.number(),
612
+ growthGrossProfitRatio: zod.z.number(),
613
+ growthResearchAndDevelopmentExpenses: zod.z.number(),
614
+ growthGeneralAndAdministrativeExpenses: zod.z.number(),
615
+ growthSellingAndMarketingExpenses: zod.z.number(),
616
+ growthOtherExpenses: zod.z.number(),
617
+ growthOperatingExpenses: zod.z.number(),
618
+ growthCostAndExpenses: zod.z.number(),
619
+ growthInterestIncome: zod.z.number(),
620
+ growthInterestExpense: zod.z.number(),
621
+ growthDepreciationAndAmortization: zod.z.number(),
622
+ growthEBITDA: zod.z.number(),
623
+ growthOperatingIncome: zod.z.number(),
624
+ growthIncomeBeforeTax: zod.z.number(),
625
+ growthIncomeTaxExpense: zod.z.number(),
626
+ growthNetIncome: zod.z.number(),
627
+ growthEPS: zod.z.number(),
628
+ growthEPSDiluted: zod.z.number(),
629
+ growthWeightedAverageShsOut: zod.z.number(),
630
+ growthWeightedAverageShsOutDil: zod.z.number(),
631
+ growthEBIT: zod.z.number(),
632
+ growthNonOperatingIncomeExcludingInterest: zod.z.number(),
633
+ growthNetInterestIncome: zod.z.number(),
634
+ growthTotalOtherIncomeExpensesNet: zod.z.number(),
635
+ growthNetIncomeFromContinuingOperations: zod.z.number(),
636
+ growthOtherAdjustmentsToNetIncome: zod.z.number(),
637
+ growthNetIncomeDeductions: zod.z.number()
638
+ });
639
+ var BalanceSheetGrowthSchema = zod.z.object({
640
+ symbol: zod.z.string(),
641
+ date: zod.z.string(),
642
+ fiscalYear: zod.z.string(),
643
+ period: zod.z.string(),
644
+ reportedCurrency: zod.z.string(),
645
+ growthCashAndCashEquivalents: zod.z.number(),
646
+ growthShortTermInvestments: zod.z.number(),
647
+ growthCashAndShortTermInvestments: zod.z.number(),
648
+ growthNetReceivables: zod.z.number(),
649
+ growthInventory: zod.z.number(),
650
+ growthOtherCurrentAssets: zod.z.number(),
651
+ growthTotalCurrentAssets: zod.z.number(),
652
+ growthPropertyPlantEquipmentNet: zod.z.number(),
653
+ growthGoodwill: zod.z.number(),
654
+ growthIntangibleAssets: zod.z.number(),
655
+ growthGoodwillAndIntangibleAssets: zod.z.number(),
656
+ growthLongTermInvestments: zod.z.number(),
657
+ growthTaxAssets: zod.z.number(),
658
+ growthOtherNonCurrentAssets: zod.z.number(),
659
+ growthTotalNonCurrentAssets: zod.z.number(),
660
+ growthOtherAssets: zod.z.number(),
661
+ growthTotalAssets: zod.z.number(),
662
+ growthAccountPayables: zod.z.number(),
663
+ growthShortTermDebt: zod.z.number(),
664
+ growthTaxPayables: zod.z.number(),
665
+ growthDeferredRevenue: zod.z.number(),
666
+ growthOtherCurrentLiabilities: zod.z.number(),
667
+ growthTotalCurrentLiabilities: zod.z.number(),
668
+ growthLongTermDebt: zod.z.number(),
669
+ growthDeferredRevenueNonCurrent: zod.z.number(),
670
+ growthDeferredTaxLiabilitiesNonCurrent: zod.z.number(),
671
+ growthOtherNonCurrentLiabilities: zod.z.number(),
672
+ growthTotalNonCurrentLiabilities: zod.z.number(),
673
+ growthOtherLiabilities: zod.z.number(),
674
+ growthTotalLiabilities: zod.z.number(),
675
+ growthPreferredStock: zod.z.number(),
676
+ growthCommonStock: zod.z.number(),
677
+ growthRetainedEarnings: zod.z.number(),
678
+ growthAccumulatedOtherComprehensiveIncomeLoss: zod.z.number(),
679
+ growthOthertotalStockholdersEquity: zod.z.number(),
680
+ growthTotalStockholdersEquity: zod.z.number(),
681
+ growthMinorityInterest: zod.z.number(),
682
+ growthTotalEquity: zod.z.number(),
683
+ growthTotalLiabilitiesAndStockholdersEquity: zod.z.number(),
684
+ growthTotalInvestments: zod.z.number(),
685
+ growthTotalDebt: zod.z.number(),
686
+ growthNetDebt: zod.z.number(),
687
+ growthAccountsReceivables: zod.z.number(),
688
+ growthOtherReceivables: zod.z.number(),
689
+ growthPrepaids: zod.z.number(),
690
+ growthTotalPayables: zod.z.number(),
691
+ growthOtherPayables: zod.z.number(),
692
+ growthAccruedExpenses: zod.z.number(),
693
+ growthCapitalLeaseObligationsCurrent: zod.z.number(),
694
+ growthAdditionalPaidInCapital: zod.z.number(),
695
+ growthTreasuryStock: zod.z.number()
696
+ });
697
+ var FinancialGrowthSchema = zod.z.object({
698
+ symbol: zod.z.string(),
699
+ date: zod.z.string(),
700
+ fiscalYear: zod.z.string(),
701
+ period: zod.z.string(),
702
+ reportedCurrency: zod.z.string(),
703
+ revenueGrowth: zod.z.number(),
704
+ grossProfitGrowth: zod.z.number(),
705
+ ebitgrowth: zod.z.number(),
706
+ operatingIncomeGrowth: zod.z.number(),
707
+ netIncomeGrowth: zod.z.number(),
708
+ epsgrowth: zod.z.number(),
709
+ epsdilutedGrowth: zod.z.number(),
710
+ weightedAverageSharesGrowth: zod.z.number(),
711
+ weightedAverageSharesDilutedGrowth: zod.z.number(),
712
+ dividendsPerShareGrowth: zod.z.number(),
713
+ operatingCashFlowGrowth: zod.z.number(),
714
+ receivablesGrowth: zod.z.number(),
715
+ inventoryGrowth: zod.z.number(),
716
+ assetGrowth: zod.z.number(),
717
+ bookValueperShareGrowth: zod.z.number(),
718
+ debtGrowth: zod.z.number(),
719
+ rdexpenseGrowth: zod.z.number(),
720
+ sgaexpensesGrowth: zod.z.number(),
721
+ freeCashFlowGrowth: zod.z.number(),
722
+ tenYRevenueGrowthPerShare: zod.z.number(),
723
+ fiveYRevenueGrowthPerShare: zod.z.number(),
724
+ threeYRevenueGrowthPerShare: zod.z.number(),
725
+ tenYOperatingCFGrowthPerShare: zod.z.number(),
726
+ fiveYOperatingCFGrowthPerShare: zod.z.number(),
727
+ threeYOperatingCFGrowthPerShare: zod.z.number(),
728
+ tenYNetIncomeGrowthPerShare: zod.z.number(),
729
+ fiveYNetIncomeGrowthPerShare: zod.z.number(),
730
+ threeYNetIncomeGrowthPerShare: zod.z.number(),
731
+ tenYShareholdersEquityGrowthPerShare: zod.z.number(),
732
+ fiveYShareholdersEquityGrowthPerShare: zod.z.number(),
733
+ threeYShareholdersEquityGrowthPerShare: zod.z.number(),
734
+ tenYDividendperShareGrowthPerShare: zod.z.number(),
735
+ fiveYDividendperShareGrowthPerShare: zod.z.number(),
736
+ threeYDividendperShareGrowthPerShare: zod.z.number(),
737
+ ebitdaGrowth: zod.z.number(),
738
+ growthCapitalExpenditure: zod.z.number(),
739
+ tenYBottomLineNetIncomeGrowthPerShare: zod.z.number(),
740
+ fiveYBottomLineNetIncomeGrowthPerShare: zod.z.number(),
741
+ threeYBottomLineNetIncomeGrowthPerShare: zod.z.number()
742
+ });
743
+ var EarningsHistoricalSchema = zod.z.object({
744
+ date: zod.z.string(),
745
+ symbol: zod.z.string(),
746
+ // Actuals are null for earnings that haven't been reported yet.
747
+ epsActual: zod.z.number().nullable(),
748
+ epsEstimated: zod.z.number().nullable(),
749
+ revenueActual: zod.z.number().nullable(),
750
+ revenueEstimated: zod.z.number().nullable(),
751
+ lastUpdated: zod.z.string()
752
+ });
753
+ var EarningsSurprisesSchema = zod.z.object({
754
+ date: zod.z.string(),
755
+ symbol: zod.z.string(),
756
+ actualEarningResult: zod.z.number(),
757
+ estimatedEarning: zod.z.number()
758
+ });
759
+ var InsiderTradingRSSResponseSchema = zod.z.object({
760
+ symbol: zod.z.string(),
761
+ filingDate: zod.z.string(),
762
+ transactionDate: zod.z.string(),
763
+ reportingCik: zod.z.string(),
764
+ companyCik: zod.z.string(),
765
+ transactionType: zod.z.string(),
766
+ securitiesOwned: zod.z.number(),
767
+ reportingName: zod.z.string(),
768
+ typeOfOwner: zod.z.string(),
769
+ acquisitionOrDisposition: zod.z.string(),
770
+ directOrIndirect: zod.z.string().nullable(),
771
+ formType: zod.z.string(),
772
+ securitiesTransacted: zod.z.number(),
773
+ price: zod.z.number(),
774
+ securityName: zod.z.string(),
775
+ url: zod.z.string()
776
+ });
777
+ var InsiderTradingSearchResponseSchema = zod.z.object({
778
+ symbol: zod.z.string(),
779
+ filingDate: zod.z.string(),
780
+ transactionDate: zod.z.string(),
781
+ reportingCik: zod.z.string(),
782
+ companyCik: zod.z.string(),
783
+ transactionType: zod.z.string(),
784
+ securitiesOwned: zod.z.number(),
785
+ reportingName: zod.z.string(),
786
+ typeOfOwner: zod.z.string(),
787
+ acquisitionOrDisposition: zod.z.string(),
788
+ directOrIndirect: zod.z.string().nullable(),
789
+ formType: zod.z.string(),
790
+ securitiesTransacted: zod.z.number(),
791
+ price: zod.z.number(),
792
+ securityName: zod.z.string(),
793
+ url: zod.z.string()
794
+ });
795
+ var TransactionTypeRecordSchema = zod.z.object({
796
+ transactionType: zod.z.string()
797
+ });
798
+ var InsidersBySymbolResponseSchema = zod.z.object({
799
+ typeOfOwner: zod.z.string().nullable(),
800
+ transactionDate: zod.z.string(),
801
+ owner: zod.z.string()
802
+ });
803
+ var InsiderTradeStatisticsResponseSchema = zod.z.object({
804
+ symbol: zod.z.string(),
805
+ cik: zod.z.string(),
806
+ year: zod.z.number(),
807
+ quarter: zod.z.number(),
808
+ acquiredTransactions: zod.z.number(),
809
+ disposedTransactions: zod.z.number(),
810
+ acquiredDisposedRatio: zod.z.number(),
811
+ totalAcquired: zod.z.number(),
812
+ totalDisposed: zod.z.number(),
813
+ averageAcquired: zod.z.number(),
814
+ averageDisposed: zod.z.number(),
815
+ totalPurchases: zod.z.number(),
816
+ totalSales: zod.z.number()
817
+ });
818
+ var CikMapperResponseSchema = zod.z.object({
819
+ reportingCik: zod.z.string(),
820
+ reportingName: zod.z.string()
821
+ });
822
+ var CikMapperBySymbolResponseSchema = zod.z.object({
823
+ symbol: zod.z.string(),
824
+ companyCik: zod.z.string()
825
+ });
826
+ var BeneficialOwnershipResponseSchema = zod.z.object({
827
+ cik: zod.z.string(),
828
+ symbol: zod.z.string(),
829
+ filingDate: zod.z.string(),
830
+ acceptedDate: zod.z.string(),
831
+ cusip: zod.z.string(),
832
+ nameOfReportingPerson: zod.z.string(),
833
+ citizenshipOrPlaceOfOrganization: zod.z.string(),
834
+ soleVotingPower: zod.z.string(),
835
+ sharedVotingPower: zod.z.string(),
836
+ soleDispositivePower: zod.z.string(),
837
+ sharedDispositivePower: zod.z.string(),
838
+ amountBeneficiallyOwned: zod.z.string(),
839
+ percentOfClass: zod.z.string(),
840
+ typeOfReportingPerson: zod.z.string(),
841
+ url: zod.z.string()
842
+ });
843
+ var FailToDeliverResponseSchema = zod.z.object({
844
+ symbol: zod.z.string(),
845
+ date: zod.z.string(),
846
+ price: zod.z.number(),
847
+ quantity: zod.z.number(),
848
+ cusip: zod.z.string(),
849
+ name: zod.z.string()
850
+ });
22
851
  var TransactionType = /* @__PURE__ */ ((TransactionType2) => {
23
852
  TransactionType2["AWARD"] = "A-Award";
24
853
  TransactionType2["CONVERSION"] = "C-Conversion";
@@ -40,9 +869,523 @@ var TransactionType = /* @__PURE__ */ ((TransactionType2) => {
40
869
  TransactionType2["TRUST"] = "Z-Trust";
41
870
  return TransactionType2;
42
871
  })(TransactionType || {});
872
+ var Form13FResponseSchema = zod.z.object({
873
+ date: zod.z.string(),
874
+ fillingDate: zod.z.string(),
875
+ acceptedDate: zod.z.string(),
876
+ cik: zod.z.string(),
877
+ cusip: zod.z.string(),
878
+ tickercusip: zod.z.string(),
879
+ nameOfIssuer: zod.z.string(),
880
+ shares: zod.z.number(),
881
+ titleOfClass: zod.z.string(),
882
+ value: zod.z.number(),
883
+ link: zod.z.string(),
884
+ finalLink: zod.z.string()
885
+ });
886
+ var InstitutionalHolderResponseSchema = zod.z.object({
887
+ holder: zod.z.string(),
888
+ shares: zod.z.number(),
889
+ dateReported: zod.z.string(),
890
+ change: zod.z.number()
891
+ });
892
+ var StockListSchema = zod.z.object({
893
+ symbol: zod.z.string(),
894
+ exchange: zod.z.string(),
895
+ exchangeShortName: zod.z.string(),
896
+ price: zod.z.number(),
897
+ name: zod.z.string(),
898
+ type: zod.z.string()
899
+ });
900
+ var ETFListSchema = zod.z.object({
901
+ symbol: zod.z.string(),
902
+ exchange: zod.z.string(),
903
+ exchangeShortName: zod.z.string(),
904
+ price: zod.z.number(),
905
+ name: zod.z.string(),
906
+ type: zod.z.string()
907
+ });
908
+ var CryptoListSchema = zod.z.object({
909
+ symbol: zod.z.string(),
910
+ name: zod.z.string(),
911
+ currency: zod.z.string(),
912
+ stockExchange: zod.z.string(),
913
+ exchangeShortName: zod.z.string()
914
+ });
915
+ var ForexListSchema = zod.z.object({
916
+ symbol: zod.z.string(),
917
+ name: zod.z.string(),
918
+ currency: zod.z.string(),
919
+ stockExchange: zod.z.string(),
920
+ exchangeShortName: zod.z.string()
921
+ });
922
+ var AvailableIndexesListSchema = zod.z.object({
923
+ symbol: zod.z.string(),
924
+ name: zod.z.string(),
925
+ currency: zod.z.string(),
926
+ stockExchange: zod.z.string(),
927
+ exchangeShortName: zod.z.string()
928
+ });
929
+ var QuoteSchema = zod.z.object({
930
+ symbol: zod.z.string(),
931
+ name: zod.z.string(),
932
+ price: zod.z.number(),
933
+ changesPercentage: zod.z.number(),
934
+ change: zod.z.number(),
935
+ dayLow: zod.z.number(),
936
+ dayHigh: zod.z.number(),
937
+ yearHigh: zod.z.number(),
938
+ yearLow: zod.z.number(),
939
+ marketCap: zod.z.number().nullable(),
940
+ priceAvg50: zod.z.number(),
941
+ priceAvg200: zod.z.number(),
942
+ exchange: zod.z.string(),
943
+ volume: zod.z.number(),
944
+ avgVolume: zod.z.number(),
945
+ open: zod.z.number(),
946
+ previousClose: zod.z.number(),
947
+ eps: zod.z.number().nullable(),
948
+ pe: zod.z.number().nullable(),
949
+ earningsAnnouncement: zod.z.string().nullable(),
950
+ sharesOutstanding: zod.z.number().nullable(),
951
+ timestamp: zod.z.number()
952
+ });
953
+ var HistoricalPriceDataSchema = zod.z.object({
954
+ date: zod.z.string(),
955
+ open: zod.z.number(),
956
+ high: zod.z.number(),
957
+ low: zod.z.number(),
958
+ close: zod.z.number(),
959
+ adjClose: zod.z.number(),
960
+ volume: zod.z.number(),
961
+ unadjustedVolume: zod.z.number(),
962
+ change: zod.z.number(),
963
+ changePercent: zod.z.number(),
964
+ vwap: zod.z.number(),
965
+ label: zod.z.string(),
966
+ changeOverTime: zod.z.number()
967
+ });
968
+ var HistoricalPriceResponseSchema = zod.z.object({
969
+ symbol: zod.z.string(),
970
+ historical: zod.z.array(HistoricalPriceDataSchema)
971
+ });
972
+ var IntradayPriceSchema = zod.z.object({
973
+ date: zod.z.string(),
974
+ open: zod.z.number(),
975
+ low: zod.z.number(),
976
+ high: zod.z.number(),
977
+ close: zod.z.number(),
978
+ volume: zod.z.number()
979
+ });
980
+
981
+ // src/market.ts
982
+ var MarketHolidaySchema = zod.z.object({
983
+ year: zod.z.number(),
984
+ "Martin Luther King, Jr. Day": zod.z.string().optional(),
985
+ "Presidents' Day": zod.z.string().optional(),
986
+ "Good Friday": zod.z.string().optional(),
987
+ "Memorial Day": zod.z.string().optional(),
988
+ Juneteenth: zod.z.string().optional(),
989
+ "Independence Day": zod.z.string().optional(),
990
+ "Labor Day": zod.z.string().optional(),
991
+ "Thanksgiving Day": zod.z.string().optional(),
992
+ Christmas: zod.z.string().optional()
993
+ });
994
+ var MarketHoursSchema = zod.z.object({
995
+ stockExchangeName: zod.z.string(),
996
+ stockMarketHours: zod.z.object({
997
+ openingHour: zod.z.string(),
998
+ closingHour: zod.z.string()
999
+ }),
1000
+ stockMarketHolidays: zod.z.array(MarketHolidaySchema),
1001
+ isTheStockMarketOpen: zod.z.boolean(),
1002
+ isTheEuronextMarketOpen: zod.z.boolean(),
1003
+ isTheForexMarketOpen: zod.z.boolean(),
1004
+ isTheCryptoMarketOpen: zod.z.boolean()
1005
+ });
1006
+ var MarketPerformanceSchema = zod.z.object({
1007
+ symbol: zod.z.string(),
1008
+ name: zod.z.string(),
1009
+ change: zod.z.number(),
1010
+ price: zod.z.number(),
1011
+ changesPercentage: zod.z.number(),
1012
+ // Present on the biggest-gainers/losers/most-actives (stable) endpoints.
1013
+ exchange: zod.z.string().optional()
1014
+ });
1015
+ var MarketSectorPerformanceSchema = zod.z.object({
1016
+ sector: zod.z.string(),
1017
+ // The sector-performance endpoint returns this as a formatted string (e.g. "1.23%").
1018
+ changesPercentage: zod.z.string()
1019
+ });
1020
+ var MarketIndexSchema = QuoteSchema.extend({
1021
+ type: zod.z.string().optional()
1022
+ });
1023
+ var MutualFundHoldingSchema = zod.z.object({
1024
+ holder: zod.z.string(),
1025
+ shares: zod.z.number(),
1026
+ dateReported: zod.z.string(),
1027
+ change: zod.z.number(),
1028
+ weightPercent: zod.z.number()
1029
+ });
1030
+ var NewsSchema = zod.z.object({
1031
+ symbol: zod.z.string(),
1032
+ publishedDate: zod.z.string(),
1033
+ publisher: zod.z.string(),
1034
+ title: zod.z.string(),
1035
+ image: zod.z.string(),
1036
+ site: zod.z.string(),
1037
+ text: zod.z.string(),
1038
+ url: zod.z.string()
1039
+ });
1040
+ var ArticleSchema = zod.z.object({
1041
+ title: zod.z.string(),
1042
+ date: zod.z.string(),
1043
+ content: zod.z.string(),
1044
+ tickers: zod.z.string(),
1045
+ image: zod.z.string(),
1046
+ link: zod.z.string(),
1047
+ author: zod.z.string(),
1048
+ site: zod.z.string()
1049
+ });
1050
+ var RSSFeedItemSchema = zod.z.object({
1051
+ title: zod.z.string(),
1052
+ date: zod.z.string(),
1053
+ link: zod.z.string(),
1054
+ cik: zod.z.string(),
1055
+ form_type: zod.z.string(),
1056
+ ticker: zod.z.string(),
1057
+ done: zod.z.boolean()
1058
+ });
1059
+ var RSSFeedV3ItemSchema = zod.z.object({
1060
+ title: zod.z.string(),
1061
+ date: zod.z.string(),
1062
+ link: zod.z.string(),
1063
+ cik: zod.z.string(),
1064
+ form_type: zod.z.string(),
1065
+ ticker: zod.z.string(),
1066
+ done: zod.z.boolean()
1067
+ });
1068
+ var RSSFeed8KItemSchema = zod.z.object({
1069
+ title: zod.z.string(),
1070
+ symbol: zod.z.string(),
1071
+ cik: zod.z.string(),
1072
+ link: zod.z.string(),
1073
+ finalLink: zod.z.string(),
1074
+ date: zod.z.string(),
1075
+ process: zod.z.string(),
1076
+ hasFinancials: zod.z.string()
1077
+ });
1078
+ var SECFilingSchema = zod.z.object({
1079
+ symbol: zod.z.string(),
1080
+ cik: zod.z.string(),
1081
+ type: zod.z.string(),
1082
+ link: zod.z.string(),
1083
+ finalLink: zod.z.string(),
1084
+ acceptedDate: zod.z.string(),
1085
+ fillingDate: zod.z.string()
1086
+ });
1087
+ var IndustryClassificationSchema = zod.z.object({
1088
+ symbol: zod.z.string(),
1089
+ name: zod.z.string(),
1090
+ cik: zod.z.string(),
1091
+ sicCode: zod.z.string(),
1092
+ industryTitle: zod.z.string(),
1093
+ businessAdress: zod.z.string(),
1094
+ phoneNumber: zod.z.string()
1095
+ });
1096
+ var IndustryClassificationCodeSchema = zod.z.object({
1097
+ office: zod.z.string(),
1098
+ sicCode: zod.z.string(),
1099
+ industryTitle: zod.z.string()
1100
+ });
1101
+ var RSSFeedParamsSchema = zod.z.object({
1102
+ limit: zod.z.number().optional(),
1103
+ type: zod.z.string().optional(),
1104
+ from: zod.z.string().optional(),
1105
+ to: zod.z.string().optional(),
1106
+ isDone: zod.z.boolean().optional()
1107
+ });
1108
+ var RSSFeedV3ParamsSchema = zod.z.object({
1109
+ page: zod.z.number().optional(),
1110
+ datatype: zod.z.string().optional()
1111
+ });
1112
+ var RSSFeedAllItemSchema = zod.z.object({
1113
+ symbol: zod.z.string(),
1114
+ fillingDate: zod.z.string(),
1115
+ acceptedDate: zod.z.string(),
1116
+ cik: zod.z.string(),
1117
+ type: zod.z.string(),
1118
+ link: zod.z.string(),
1119
+ finalLink: zod.z.string()
1120
+ });
1121
+ var RSSFeed8KParamsSchema = zod.z.object({
1122
+ page: zod.z.number().optional(),
1123
+ from: zod.z.string().optional(),
1124
+ to: zod.z.string().optional(),
1125
+ hasFinancial: zod.z.boolean().optional(),
1126
+ limit: zod.z.number().optional()
1127
+ });
1128
+ var SECFilingsParamsSchema = zod.z.object({
1129
+ page: zod.z.number().optional(),
1130
+ type: zod.z.string().optional()
1131
+ });
1132
+ var IndividualIndustryClassificationParamsSchema = zod.z.object({
1133
+ symbol: zod.z.string().optional(),
1134
+ cik: zod.z.number().optional(),
1135
+ sicCode: zod.z.number().optional()
1136
+ });
1137
+ var IndustryClassificationCodesParamsSchema = zod.z.object({
1138
+ industryTitle: zod.z.string().optional(),
1139
+ sicCode: zod.z.number().optional()
1140
+ });
1141
+ var ScreenerParamsSchema = zod.z.object({
1142
+ marketCapMoreThan: zod.z.number().optional(),
1143
+ marketCapLowerThan: zod.z.number().optional(),
1144
+ sector: zod.z.string().optional(),
1145
+ industry: zod.z.string().optional(),
1146
+ betaMoreThan: zod.z.number().optional(),
1147
+ betaLowerThan: zod.z.number().optional(),
1148
+ priceMoreThan: zod.z.number().optional(),
1149
+ priceLowerThan: zod.z.number().optional(),
1150
+ dividendMoreThan: zod.z.number().optional(),
1151
+ dividendLowerThan: zod.z.number().optional(),
1152
+ volumeMoreThan: zod.z.number().optional(),
1153
+ volumeLowerThan: zod.z.number().optional(),
1154
+ exchange: zod.z.string().optional(),
1155
+ country: zod.z.string().optional(),
1156
+ isEtf: zod.z.boolean().optional(),
1157
+ isFund: zod.z.boolean().optional(),
1158
+ isActivelyTrading: zod.z.boolean().optional(),
1159
+ limit: zod.z.number().optional(),
1160
+ includeAllShareClasses: zod.z.boolean().optional()
1161
+ });
1162
+ var ScreenerSchema = zod.z.object({
1163
+ symbol: zod.z.string(),
1164
+ companyName: zod.z.string(),
1165
+ marketCap: zod.z.number().nullable(),
1166
+ sector: zod.z.string().nullable(),
1167
+ industry: zod.z.string().nullable(),
1168
+ beta: zod.z.number().nullable(),
1169
+ price: zod.z.number(),
1170
+ lastAnnualDividend: zod.z.number().nullable(),
1171
+ volume: zod.z.number(),
1172
+ exchange: zod.z.string(),
1173
+ exchangeShortName: zod.z.string(),
1174
+ country: zod.z.string(),
1175
+ isEtf: zod.z.boolean(),
1176
+ isFund: zod.z.boolean(),
1177
+ isActivelyTrading: zod.z.boolean()
1178
+ });
1179
+ var AvailableExchangesSchema = zod.z.object({
1180
+ exchange: zod.z.string(),
1181
+ name: zod.z.string(),
1182
+ countryName: zod.z.string(),
1183
+ countryCode: zod.z.string(),
1184
+ symbolSuffix: zod.z.string(),
1185
+ delay: zod.z.string().nullable()
1186
+ });
1187
+ var AvailableSectorsSchema = zod.z.object({
1188
+ sector: zod.z.string()
1189
+ });
1190
+ var AvailableIndustriesSchema = zod.z.object({
1191
+ industry: zod.z.string()
1192
+ });
1193
+ var AvailableCountriesSchema = zod.z.object({
1194
+ country: zod.z.string()
1195
+ });
1196
+ var SenateTradingResponseSchema = zod.z.object({
1197
+ symbol: zod.z.string(),
1198
+ disclosureDate: zod.z.string(),
1199
+ transactionDate: zod.z.string(),
1200
+ firstName: zod.z.string(),
1201
+ lastName: zod.z.string(),
1202
+ office: zod.z.string(),
1203
+ district: zod.z.string(),
1204
+ owner: zod.z.string(),
1205
+ assetDescription: zod.z.string(),
1206
+ assetType: zod.z.string(),
1207
+ type: zod.z.string(),
1208
+ amount: zod.z.string(),
1209
+ // The senate-latest RSS feed omits this field that senate-trades includes.
1210
+ capitalGainsOver200USD: zod.z.string().optional(),
1211
+ comment: zod.z.string(),
1212
+ link: zod.z.string()
1213
+ });
1214
+ var HouseTradingResponseSchema = zod.z.object({
1215
+ symbol: zod.z.string(),
1216
+ disclosureDate: zod.z.string(),
1217
+ transactionDate: zod.z.string(),
1218
+ firstName: zod.z.string(),
1219
+ lastName: zod.z.string(),
1220
+ office: zod.z.string(),
1221
+ district: zod.z.string(),
1222
+ owner: zod.z.string(),
1223
+ assetDescription: zod.z.string(),
1224
+ assetType: zod.z.string(),
1225
+ type: zod.z.string(),
1226
+ amount: zod.z.string(),
1227
+ capitalGainsOver200USD: zod.z.string(),
1228
+ comment: zod.z.string(),
1229
+ link: zod.z.string()
1230
+ });
1231
+ var SenateHouseTradingByNameResponseSchema = zod.z.object({
1232
+ symbol: zod.z.string(),
1233
+ disclosureDate: zod.z.string(),
1234
+ transactionDate: zod.z.string(),
1235
+ firstName: zod.z.string(),
1236
+ lastName: zod.z.string(),
1237
+ office: zod.z.string(),
1238
+ district: zod.z.string(),
1239
+ owner: zod.z.string(),
1240
+ assetDescription: zod.z.string(),
1241
+ assetType: zod.z.string(),
1242
+ type: zod.z.string(),
1243
+ amount: zod.z.string(),
1244
+ capitalGainsOver200USD: zod.z.string(),
1245
+ comment: zod.z.string(),
1246
+ link: zod.z.string()
1247
+ });
1248
+ var StockSplitSchema = zod.z.object({
1249
+ date: zod.z.string(),
1250
+ label: zod.z.string(),
1251
+ numerator: zod.z.number(),
1252
+ denominator: zod.z.number()
1253
+ });
1254
+ var StockSplitResponseSchema = zod.z.object({
1255
+ symbol: zod.z.string(),
1256
+ historical: zod.z.array(StockSplitSchema)
1257
+ });
1258
+ var StockDividendSchema = zod.z.object({
1259
+ date: zod.z.string(),
1260
+ label: zod.z.string(),
1261
+ adjDividend: zod.z.number(),
1262
+ dividend: zod.z.number(),
1263
+ recordDate: zod.z.string(),
1264
+ paymentDate: zod.z.string(),
1265
+ declarationDate: zod.z.string()
1266
+ });
1267
+ var StockDividendResponseSchema = zod.z.object({
1268
+ symbol: zod.z.string(),
1269
+ historical: zod.z.array(StockDividendSchema)
1270
+ });
1271
+ var MarketCapSchema = zod.z.object({
1272
+ symbol: zod.z.string(),
1273
+ date: zod.z.string(),
1274
+ marketCap: zod.z.number()
1275
+ });
1276
+ var StockRealTimePriceSchema = zod.z.object({
1277
+ symbol: zod.z.string(),
1278
+ price: zod.z.number()
1279
+ });
1280
+ var StockRealTimePriceFullSchema = zod.z.object({
1281
+ bidSize: zod.z.number(),
1282
+ askPrice: zod.z.number(),
1283
+ volume: zod.z.number(),
1284
+ askSize: zod.z.number(),
1285
+ bidPrice: zod.z.number(),
1286
+ lastSalePrice: zod.z.number(),
1287
+ lastSaleSize: zod.z.number(),
1288
+ lastSaleTime: zod.z.number(),
1289
+ fmpLast: zod.z.number(),
1290
+ lastUpdated: zod.z.number(),
1291
+ symbol: zod.z.string()
1292
+ });
43
1293
 
1294
+ exports.ArticleSchema = ArticleSchema;
1295
+ exports.AvailableCountriesSchema = AvailableCountriesSchema;
1296
+ exports.AvailableExchangesSchema = AvailableExchangesSchema;
1297
+ exports.AvailableIndexesListSchema = AvailableIndexesListSchema;
1298
+ exports.AvailableIndustriesSchema = AvailableIndustriesSchema;
1299
+ exports.AvailableSectorsSchema = AvailableSectorsSchema;
1300
+ exports.BalanceSheetGrowthSchema = BalanceSheetGrowthSchema;
1301
+ exports.BalanceSheetSchema = BalanceSheetSchema;
1302
+ exports.BeneficialOwnershipResponseSchema = BeneficialOwnershipResponseSchema;
1303
+ exports.CashFlowStatementSchema = CashFlowStatementSchema;
1304
+ exports.CashflowGrowthSchema = CashflowGrowthSchema;
1305
+ exports.CikMapperBySymbolResponseSchema = CikMapperBySymbolResponseSchema;
1306
+ exports.CikMapperResponseSchema = CikMapperResponseSchema;
1307
+ exports.CompanyNotesSchema = CompanyNotesSchema;
1308
+ exports.CompanyProfileSchema = CompanyProfileSchema;
1309
+ exports.CompanyTranscriptDataSchema = CompanyTranscriptDataSchema;
1310
+ exports.CryptoListSchema = CryptoListSchema;
1311
+ exports.DividendsCalendarSchema = DividendsCalendarSchema;
1312
+ exports.ETFCountryWeightingSchema = ETFCountryWeightingSchema;
1313
+ exports.ETFHolderSchema = ETFHolderSchema;
1314
+ exports.ETFHoldingDatesSchema = ETFHoldingDatesSchema;
1315
+ exports.ETFHoldingSchema = ETFHoldingSchema;
1316
+ exports.ETFListSchema = ETFListSchema;
1317
+ exports.ETFProfileSchema = ETFProfileSchema;
1318
+ exports.ETFStockExposureSchema = ETFStockExposureSchema;
1319
+ exports.ETFWeightingSchema = ETFWeightingSchema;
1320
+ exports.EarningsCalendarSchema = EarningsCalendarSchema;
1321
+ exports.EarningsCallTranscriptSchema = EarningsCallTranscriptSchema;
1322
+ exports.EarningsConfirmedSchema = EarningsConfirmedSchema;
1323
+ exports.EarningsHistoricalSchema = EarningsHistoricalSchema;
1324
+ exports.EarningsSurprisesSchema = EarningsSurprisesSchema;
1325
+ exports.EconomicIndicatorNameSchema = EconomicIndicatorNameSchema;
1326
+ exports.EconomicIndicatorSchema = EconomicIndicatorSchema;
1327
+ exports.EconomicsCalendarSchema = EconomicsCalendarSchema;
1328
+ exports.EnterpriseValueSchema = EnterpriseValueSchema;
44
1329
  exports.Exchange = Exchange;
1330
+ exports.ExecutiveCompensationSchema = ExecutiveCompensationSchema;
1331
+ exports.FailToDeliverResponseSchema = FailToDeliverResponseSchema;
1332
+ exports.FinancialGrowthSchema = FinancialGrowthSchema;
1333
+ exports.FinancialRatiosSchema = FinancialRatiosSchema;
1334
+ exports.ForexListSchema = ForexListSchema;
1335
+ exports.Form13FResponseSchema = Form13FResponseSchema;
1336
+ exports.HistoricalEmployeeCountSchema = HistoricalEmployeeCountSchema;
1337
+ exports.HistoricalPriceDataSchema = HistoricalPriceDataSchema;
1338
+ exports.HistoricalPriceResponseSchema = HistoricalPriceResponseSchema;
1339
+ exports.HistoricalSharesFloatSchema = HistoricalSharesFloatSchema;
1340
+ exports.HouseTradingResponseSchema = HouseTradingResponseSchema;
1341
+ exports.IPOCalendarSchema = IPOCalendarSchema;
1342
+ exports.IncomeGrowthSchema = IncomeGrowthSchema;
1343
+ exports.IncomeStatementSchema = IncomeStatementSchema;
1344
+ exports.IndividualIndustryClassificationParamsSchema = IndividualIndustryClassificationParamsSchema;
1345
+ exports.IndustryClassificationCodeSchema = IndustryClassificationCodeSchema;
1346
+ exports.IndustryClassificationCodesParamsSchema = IndustryClassificationCodesParamsSchema;
1347
+ exports.IndustryClassificationSchema = IndustryClassificationSchema;
1348
+ exports.InsiderTradeStatisticsResponseSchema = InsiderTradeStatisticsResponseSchema;
1349
+ exports.InsiderTradingRSSResponseSchema = InsiderTradingRSSResponseSchema;
1350
+ exports.InsiderTradingSearchResponseSchema = InsiderTradingSearchResponseSchema;
1351
+ exports.InsidersBySymbolResponseSchema = InsidersBySymbolResponseSchema;
1352
+ exports.InstitutionalHolderResponseSchema = InstitutionalHolderResponseSchema;
1353
+ exports.IntradayPriceSchema = IntradayPriceSchema;
1354
+ exports.KeyMetricsSchema = KeyMetricsSchema;
1355
+ exports.MarketCapSchema = MarketCapSchema;
1356
+ exports.MarketHolidaySchema = MarketHolidaySchema;
1357
+ exports.MarketHoursSchema = MarketHoursSchema;
1358
+ exports.MarketIndexSchema = MarketIndexSchema;
1359
+ exports.MarketPerformanceSchema = MarketPerformanceSchema;
1360
+ exports.MarketSectorPerformanceSchema = MarketSectorPerformanceSchema;
1361
+ exports.MutualFundHoldingSchema = MutualFundHoldingSchema;
1362
+ exports.NewsSchema = NewsSchema;
45
1363
  exports.Period = Period;
1364
+ exports.QuoteSchema = QuoteSchema;
1365
+ exports.RSSFeed8KItemSchema = RSSFeed8KItemSchema;
1366
+ exports.RSSFeed8KParamsSchema = RSSFeed8KParamsSchema;
1367
+ exports.RSSFeedAllItemSchema = RSSFeedAllItemSchema;
1368
+ exports.RSSFeedItemSchema = RSSFeedItemSchema;
1369
+ exports.RSSFeedParamsSchema = RSSFeedParamsSchema;
1370
+ exports.RSSFeedV3ItemSchema = RSSFeedV3ItemSchema;
1371
+ exports.RSSFeedV3ParamsSchema = RSSFeedV3ParamsSchema;
1372
+ exports.SECFilingSchema = SECFilingSchema;
1373
+ exports.SECFilingsParamsSchema = SECFilingsParamsSchema;
1374
+ exports.ScreenerParamsSchema = ScreenerParamsSchema;
1375
+ exports.ScreenerSchema = ScreenerSchema;
1376
+ exports.SenateHouseTradingByNameResponseSchema = SenateHouseTradingByNameResponseSchema;
1377
+ exports.SenateTradingResponseSchema = SenateTradingResponseSchema;
1378
+ exports.SharesFloatSchema = SharesFloatSchema;
1379
+ exports.SplitsCalendarSchema = SplitsCalendarSchema;
1380
+ exports.StockDividendResponseSchema = StockDividendResponseSchema;
1381
+ exports.StockDividendSchema = StockDividendSchema;
1382
+ exports.StockListSchema = StockListSchema;
1383
+ exports.StockRealTimePriceFullSchema = StockRealTimePriceFullSchema;
1384
+ exports.StockRealTimePriceSchema = StockRealTimePriceSchema;
1385
+ exports.StockSplitResponseSchema = StockSplitResponseSchema;
1386
+ exports.StockSplitSchema = StockSplitSchema;
46
1387
  exports.TransactionType = TransactionType;
1388
+ exports.TransactionTypeRecordSchema = TransactionTypeRecordSchema;
1389
+ exports.TreasuryRateSchema = TreasuryRateSchema;
47
1390
  //# sourceMappingURL=index.js.map
48
1391
  //# sourceMappingURL=index.js.map