fmp-node-api 0.2.3 → 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/README.md +4 -4
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/types-only.d.mts +33 -9
- package/dist/types-only.d.ts +33 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -549,7 +549,7 @@ pnpm test:coverage # Generate coverage report
|
|
|
549
549
|
Run from the repo root (it builds `fmp-node-types` first so the runner uses fresh schemas):
|
|
550
550
|
|
|
551
551
|
```bash
|
|
552
|
-
pnpm test:live #
|
|
552
|
+
pnpm test:live # every manifest case (plan-locked excluded)
|
|
553
553
|
pnpm test:live --category quote,stock # only these categories
|
|
554
554
|
pnpm test:live --endpoint getQuote # cases whose name matches
|
|
555
555
|
pnpm test:live --dry-run # list cases, make NO API calls
|
|
@@ -563,9 +563,9 @@ Each result is classified:
|
|
|
563
563
|
- **SKIP** — plan-locked (HTTP 402/403) or rate/quota limited (429)
|
|
564
564
|
- **DRIFT** — extra top-level fields, or a non-nullable field came back `null`
|
|
565
565
|
|
|
566
|
-
Flags: `--delay <ms>` (default 400) paces calls; `--
|
|
566
|
+
Flags: `--delay <ms>` (default 400) paces calls; `--timeout <ms>` (default 30000) is the per-request timeout; `--sample <n>` (default 3) is how many array rows are validated per response; `--max-calls <n>` optionally caps live calls (default: no cap — every selected case runs; a retry can exceed the cap by one); `--include-locked` also runs cases marked `planLocked`; `--fail-on-drift` makes DRIFT fail the exit code. The runner is sequential and throttled to stay within limited API plans (a full run is ~120 calls in ~1–2 minutes) and retries a transient failure (network error / timeout / 5xx) once. Mark any consistently plan-locked endpoints `planLocked: true` in `scripts/live/manifest.ts` so default runs skip them. Exits non-zero when any case FAILs.
|
|
567
567
|
|
|
568
|
-
> Coverage note: the
|
|
568
|
+
> Coverage note: the manifest covers every endpoint category. The classifier logic is unit-tested in `src/__tests__/live/validate.test.ts` (no API key needed).
|
|
569
569
|
|
|
570
570
|
## Development
|
|
571
571
|
|
|
@@ -671,7 +671,7 @@ src/
|
|
|
671
671
|
scripts/
|
|
672
672
|
├── test-endpoint.ts # Manual live-API endpoint inspector (raw JSON, one endpoint)
|
|
673
673
|
└── live/ # Live-API shape-check tool (pnpm test:live)
|
|
674
|
-
├── run.ts # CLI runner (flags, throttle,
|
|
674
|
+
├── run.ts # CLI runner (flags, throttle, retry, summary)
|
|
675
675
|
├── manifest.ts # Data-driven registry of cases (endpoint + inputs + schema)
|
|
676
676
|
└── tsconfig.json # Type-checks the runner (pnpm type-check:live)
|
|
677
677
|
```
|
package/dist/index.d.mts
CHANGED
|
@@ -3625,6 +3625,7 @@ declare class AftermarketEndpoints {
|
|
|
3625
3625
|
*
|
|
3626
3626
|
* Returns the most recent aftermarket trade including price, trade size, and
|
|
3627
3627
|
* timestamp. Useful for tracking price action outside regular trading hours.
|
|
3628
|
+
* `tradeSize` is `null` when FMP reports no trade size (e.g. after the post-market session closes).
|
|
3628
3629
|
*
|
|
3629
3630
|
* @param symbol - The stock symbol (e.g., 'AAPL')
|
|
3630
3631
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -3625,6 +3625,7 @@ declare class AftermarketEndpoints {
|
|
|
3625
3625
|
*
|
|
3626
3626
|
* Returns the most recent aftermarket trade including price, trade size, and
|
|
3627
3627
|
* timestamp. Useful for tracking price action outside regular trading hours.
|
|
3628
|
+
* `tradeSize` is `null` when FMP reports no trade size (e.g. after the post-market session closes).
|
|
3628
3629
|
*
|
|
3629
3630
|
* @param symbol - The stock symbol (e.g., 'AAPL')
|
|
3630
3631
|
*
|
package/dist/types-only.d.mts
CHANGED
|
@@ -1444,6 +1444,8 @@ declare const FinancialRatiosSchema: z.ZodObject<{
|
|
|
1444
1444
|
priceToEarningsRatio: z.ZodNumber;
|
|
1445
1445
|
priceToEarningsGrowthRatio: z.ZodNumber;
|
|
1446
1446
|
forwardPriceToEarningsGrowthRatio: z.ZodNumber;
|
|
1447
|
+
priceToEarningsDilutedRatio: z.ZodNumber;
|
|
1448
|
+
priceToEarningsDilutedGrowthRatio: z.ZodNumber;
|
|
1447
1449
|
priceToBookRatio: z.ZodNumber;
|
|
1448
1450
|
priceToSalesRatio: z.ZodNumber;
|
|
1449
1451
|
priceToFreeCashFlowRatio: z.ZodNumber;
|
|
@@ -1509,6 +1511,8 @@ declare const FinancialRatiosSchema: z.ZodObject<{
|
|
|
1509
1511
|
priceToEarningsRatio: number;
|
|
1510
1512
|
priceToEarningsGrowthRatio: number;
|
|
1511
1513
|
forwardPriceToEarningsGrowthRatio: number;
|
|
1514
|
+
priceToEarningsDilutedRatio: number;
|
|
1515
|
+
priceToEarningsDilutedGrowthRatio: number;
|
|
1512
1516
|
priceToBookRatio: number;
|
|
1513
1517
|
priceToSalesRatio: number;
|
|
1514
1518
|
priceToFreeCashFlowRatio: number;
|
|
@@ -1574,6 +1578,8 @@ declare const FinancialRatiosSchema: z.ZodObject<{
|
|
|
1574
1578
|
priceToEarningsRatio: number;
|
|
1575
1579
|
priceToEarningsGrowthRatio: number;
|
|
1576
1580
|
forwardPriceToEarningsGrowthRatio: number;
|
|
1581
|
+
priceToEarningsDilutedRatio: number;
|
|
1582
|
+
priceToEarningsDilutedGrowthRatio: number;
|
|
1577
1583
|
priceToBookRatio: number;
|
|
1578
1584
|
priceToSalesRatio: number;
|
|
1579
1585
|
priceToFreeCashFlowRatio: number;
|
|
@@ -2429,6 +2435,8 @@ declare const FinancialRatiosTTMSchema: z.ZodObject<{
|
|
|
2429
2435
|
priceToEarningsRatioTTM: z.ZodNumber;
|
|
2430
2436
|
priceToEarningsGrowthRatioTTM: z.ZodNumber;
|
|
2431
2437
|
forwardPriceToEarningsGrowthRatioTTM: z.ZodNumber;
|
|
2438
|
+
priceToEarningsDilutedRatioTTM: z.ZodNumber;
|
|
2439
|
+
priceToEarningsDilutedGrowthRatioTTM: z.ZodNumber;
|
|
2432
2440
|
priceToBookRatioTTM: z.ZodNumber;
|
|
2433
2441
|
priceToSalesRatioTTM: z.ZodNumber;
|
|
2434
2442
|
priceToFreeCashFlowRatioTTM: z.ZodNumber;
|
|
@@ -2491,6 +2499,8 @@ declare const FinancialRatiosTTMSchema: z.ZodObject<{
|
|
|
2491
2499
|
priceToEarningsRatioTTM: number;
|
|
2492
2500
|
priceToEarningsGrowthRatioTTM: number;
|
|
2493
2501
|
forwardPriceToEarningsGrowthRatioTTM: number;
|
|
2502
|
+
priceToEarningsDilutedRatioTTM: number;
|
|
2503
|
+
priceToEarningsDilutedGrowthRatioTTM: number;
|
|
2494
2504
|
priceToBookRatioTTM: number;
|
|
2495
2505
|
priceToSalesRatioTTM: number;
|
|
2496
2506
|
priceToFreeCashFlowRatioTTM: number;
|
|
@@ -2552,6 +2562,8 @@ declare const FinancialRatiosTTMSchema: z.ZodObject<{
|
|
|
2552
2562
|
priceToEarningsRatioTTM: number;
|
|
2553
2563
|
priceToEarningsGrowthRatioTTM: number;
|
|
2554
2564
|
forwardPriceToEarningsGrowthRatioTTM: number;
|
|
2565
|
+
priceToEarningsDilutedRatioTTM: number;
|
|
2566
|
+
priceToEarningsDilutedGrowthRatioTTM: number;
|
|
2555
2567
|
priceToBookRatioTTM: number;
|
|
2556
2568
|
priceToSalesRatioTTM: number;
|
|
2557
2569
|
priceToFreeCashFlowRatioTTM: number;
|
|
@@ -3293,28 +3305,28 @@ declare const MutualFundHoldingSchema: z.ZodObject<{
|
|
|
3293
3305
|
type MutualFundHolding = z.infer<typeof MutualFundHoldingSchema>;
|
|
3294
3306
|
|
|
3295
3307
|
declare const NewsSchema: z.ZodObject<{
|
|
3296
|
-
symbol: z.ZodString
|
|
3308
|
+
symbol: z.ZodNullable<z.ZodString>;
|
|
3297
3309
|
publishedDate: z.ZodString;
|
|
3298
3310
|
publisher: z.ZodString;
|
|
3299
3311
|
title: z.ZodString;
|
|
3300
|
-
image: z.ZodString
|
|
3312
|
+
image: z.ZodNullable<z.ZodString>;
|
|
3301
3313
|
site: z.ZodString;
|
|
3302
3314
|
text: z.ZodString;
|
|
3303
3315
|
url: z.ZodString;
|
|
3304
3316
|
}, "strip", z.ZodTypeAny, {
|
|
3305
|
-
symbol: string;
|
|
3317
|
+
symbol: string | null;
|
|
3306
3318
|
title: string;
|
|
3307
3319
|
url: string;
|
|
3308
|
-
image: string;
|
|
3320
|
+
image: string | null;
|
|
3309
3321
|
publishedDate: string;
|
|
3310
3322
|
publisher: string;
|
|
3311
3323
|
site: string;
|
|
3312
3324
|
text: string;
|
|
3313
3325
|
}, {
|
|
3314
|
-
symbol: string;
|
|
3326
|
+
symbol: string | null;
|
|
3315
3327
|
title: string;
|
|
3316
3328
|
url: string;
|
|
3317
|
-
image: string;
|
|
3329
|
+
image: string | null;
|
|
3318
3330
|
publishedDate: string;
|
|
3319
3331
|
publisher: string;
|
|
3320
3332
|
site: string;
|
|
@@ -3920,6 +3932,7 @@ declare const ScreenerSchema: z.ZodObject<{
|
|
|
3920
3932
|
price: z.ZodNumber;
|
|
3921
3933
|
lastAnnualDividend: z.ZodNullable<z.ZodNumber>;
|
|
3922
3934
|
volume: z.ZodNumber;
|
|
3935
|
+
avgVolume: z.ZodNumber;
|
|
3923
3936
|
exchange: z.ZodString;
|
|
3924
3937
|
exchangeShortName: z.ZodString;
|
|
3925
3938
|
country: z.ZodString;
|
|
@@ -3940,6 +3953,7 @@ declare const ScreenerSchema: z.ZodObject<{
|
|
|
3940
3953
|
isEtf: boolean;
|
|
3941
3954
|
isActivelyTrading: boolean;
|
|
3942
3955
|
isFund: boolean;
|
|
3956
|
+
avgVolume: number;
|
|
3943
3957
|
exchangeShortName: string;
|
|
3944
3958
|
lastAnnualDividend: number | null;
|
|
3945
3959
|
}, {
|
|
@@ -3956,6 +3970,7 @@ declare const ScreenerSchema: z.ZodObject<{
|
|
|
3956
3970
|
isEtf: boolean;
|
|
3957
3971
|
isActivelyTrading: boolean;
|
|
3958
3972
|
isFund: boolean;
|
|
3973
|
+
avgVolume: number;
|
|
3959
3974
|
exchangeShortName: string;
|
|
3960
3975
|
lastAnnualDividend: number | null;
|
|
3961
3976
|
}>;
|
|
@@ -4312,6 +4327,7 @@ type TechnicalIndicator = z.infer<typeof TechnicalIndicatorSchema>;
|
|
|
4312
4327
|
|
|
4313
4328
|
declare const SenateTradingResponseSchema: z.ZodObject<{
|
|
4314
4329
|
symbol: z.ZodString;
|
|
4330
|
+
senateID: z.ZodString;
|
|
4315
4331
|
disclosureDate: z.ZodString;
|
|
4316
4332
|
transactionDate: z.ZodString;
|
|
4317
4333
|
firstName: z.ZodString;
|
|
@@ -4333,6 +4349,7 @@ declare const SenateTradingResponseSchema: z.ZodObject<{
|
|
|
4333
4349
|
transactionDate: string;
|
|
4334
4350
|
owner: string;
|
|
4335
4351
|
office: string;
|
|
4352
|
+
senateID: string;
|
|
4336
4353
|
disclosureDate: string;
|
|
4337
4354
|
firstName: string;
|
|
4338
4355
|
lastName: string;
|
|
@@ -4349,6 +4366,7 @@ declare const SenateTradingResponseSchema: z.ZodObject<{
|
|
|
4349
4366
|
transactionDate: string;
|
|
4350
4367
|
owner: string;
|
|
4351
4368
|
office: string;
|
|
4369
|
+
senateID: string;
|
|
4352
4370
|
disclosureDate: string;
|
|
4353
4371
|
firstName: string;
|
|
4354
4372
|
lastName: string;
|
|
@@ -4361,6 +4379,7 @@ declare const SenateTradingResponseSchema: z.ZodObject<{
|
|
|
4361
4379
|
}>;
|
|
4362
4380
|
declare const HouseTradingResponseSchema: z.ZodObject<{
|
|
4363
4381
|
symbol: z.ZodString;
|
|
4382
|
+
senateID: z.ZodString;
|
|
4364
4383
|
disclosureDate: z.ZodString;
|
|
4365
4384
|
transactionDate: z.ZodString;
|
|
4366
4385
|
firstName: z.ZodString;
|
|
@@ -4382,6 +4401,7 @@ declare const HouseTradingResponseSchema: z.ZodObject<{
|
|
|
4382
4401
|
transactionDate: string;
|
|
4383
4402
|
owner: string;
|
|
4384
4403
|
office: string;
|
|
4404
|
+
senateID: string;
|
|
4385
4405
|
disclosureDate: string;
|
|
4386
4406
|
firstName: string;
|
|
4387
4407
|
lastName: string;
|
|
@@ -4398,6 +4418,7 @@ declare const HouseTradingResponseSchema: z.ZodObject<{
|
|
|
4398
4418
|
transactionDate: string;
|
|
4399
4419
|
owner: string;
|
|
4400
4420
|
office: string;
|
|
4421
|
+
senateID: string;
|
|
4401
4422
|
disclosureDate: string;
|
|
4402
4423
|
firstName: string;
|
|
4403
4424
|
lastName: string;
|
|
@@ -4410,6 +4431,7 @@ declare const HouseTradingResponseSchema: z.ZodObject<{
|
|
|
4410
4431
|
}>;
|
|
4411
4432
|
declare const SenateHouseTradingByNameResponseSchema: z.ZodObject<{
|
|
4412
4433
|
symbol: z.ZodString;
|
|
4434
|
+
senateID: z.ZodString;
|
|
4413
4435
|
disclosureDate: z.ZodString;
|
|
4414
4436
|
transactionDate: z.ZodString;
|
|
4415
4437
|
firstName: z.ZodString;
|
|
@@ -4431,6 +4453,7 @@ declare const SenateHouseTradingByNameResponseSchema: z.ZodObject<{
|
|
|
4431
4453
|
transactionDate: string;
|
|
4432
4454
|
owner: string;
|
|
4433
4455
|
office: string;
|
|
4456
|
+
senateID: string;
|
|
4434
4457
|
disclosureDate: string;
|
|
4435
4458
|
firstName: string;
|
|
4436
4459
|
lastName: string;
|
|
@@ -4447,6 +4470,7 @@ declare const SenateHouseTradingByNameResponseSchema: z.ZodObject<{
|
|
|
4447
4470
|
transactionDate: string;
|
|
4448
4471
|
owner: string;
|
|
4449
4472
|
office: string;
|
|
4473
|
+
senateID: string;
|
|
4450
4474
|
disclosureDate: string;
|
|
4451
4475
|
firstName: string;
|
|
4452
4476
|
lastName: string;
|
|
@@ -4705,18 +4729,18 @@ interface CompaniesPriceListResponse<T> {
|
|
|
4705
4729
|
declare const AftermarketTradeSchema: z.ZodObject<{
|
|
4706
4730
|
symbol: z.ZodString;
|
|
4707
4731
|
price: z.ZodNumber;
|
|
4708
|
-
tradeSize: z.ZodNumber
|
|
4732
|
+
tradeSize: z.ZodNullable<z.ZodNumber>;
|
|
4709
4733
|
timestamp: z.ZodNumber;
|
|
4710
4734
|
}, "strip", z.ZodTypeAny, {
|
|
4711
4735
|
symbol: string;
|
|
4712
4736
|
price: number;
|
|
4713
4737
|
timestamp: number;
|
|
4714
|
-
tradeSize: number;
|
|
4738
|
+
tradeSize: number | null;
|
|
4715
4739
|
}, {
|
|
4716
4740
|
symbol: string;
|
|
4717
4741
|
price: number;
|
|
4718
4742
|
timestamp: number;
|
|
4719
|
-
tradeSize: number;
|
|
4743
|
+
tradeSize: number | null;
|
|
4720
4744
|
}>;
|
|
4721
4745
|
type AftermarketTrade = z.infer<typeof AftermarketTradeSchema>;
|
|
4722
4746
|
declare const AftermarketQuoteSchema: z.ZodObject<{
|
package/dist/types-only.d.ts
CHANGED
|
@@ -1444,6 +1444,8 @@ declare const FinancialRatiosSchema: z.ZodObject<{
|
|
|
1444
1444
|
priceToEarningsRatio: z.ZodNumber;
|
|
1445
1445
|
priceToEarningsGrowthRatio: z.ZodNumber;
|
|
1446
1446
|
forwardPriceToEarningsGrowthRatio: z.ZodNumber;
|
|
1447
|
+
priceToEarningsDilutedRatio: z.ZodNumber;
|
|
1448
|
+
priceToEarningsDilutedGrowthRatio: z.ZodNumber;
|
|
1447
1449
|
priceToBookRatio: z.ZodNumber;
|
|
1448
1450
|
priceToSalesRatio: z.ZodNumber;
|
|
1449
1451
|
priceToFreeCashFlowRatio: z.ZodNumber;
|
|
@@ -1509,6 +1511,8 @@ declare const FinancialRatiosSchema: z.ZodObject<{
|
|
|
1509
1511
|
priceToEarningsRatio: number;
|
|
1510
1512
|
priceToEarningsGrowthRatio: number;
|
|
1511
1513
|
forwardPriceToEarningsGrowthRatio: number;
|
|
1514
|
+
priceToEarningsDilutedRatio: number;
|
|
1515
|
+
priceToEarningsDilutedGrowthRatio: number;
|
|
1512
1516
|
priceToBookRatio: number;
|
|
1513
1517
|
priceToSalesRatio: number;
|
|
1514
1518
|
priceToFreeCashFlowRatio: number;
|
|
@@ -1574,6 +1578,8 @@ declare const FinancialRatiosSchema: z.ZodObject<{
|
|
|
1574
1578
|
priceToEarningsRatio: number;
|
|
1575
1579
|
priceToEarningsGrowthRatio: number;
|
|
1576
1580
|
forwardPriceToEarningsGrowthRatio: number;
|
|
1581
|
+
priceToEarningsDilutedRatio: number;
|
|
1582
|
+
priceToEarningsDilutedGrowthRatio: number;
|
|
1577
1583
|
priceToBookRatio: number;
|
|
1578
1584
|
priceToSalesRatio: number;
|
|
1579
1585
|
priceToFreeCashFlowRatio: number;
|
|
@@ -2429,6 +2435,8 @@ declare const FinancialRatiosTTMSchema: z.ZodObject<{
|
|
|
2429
2435
|
priceToEarningsRatioTTM: z.ZodNumber;
|
|
2430
2436
|
priceToEarningsGrowthRatioTTM: z.ZodNumber;
|
|
2431
2437
|
forwardPriceToEarningsGrowthRatioTTM: z.ZodNumber;
|
|
2438
|
+
priceToEarningsDilutedRatioTTM: z.ZodNumber;
|
|
2439
|
+
priceToEarningsDilutedGrowthRatioTTM: z.ZodNumber;
|
|
2432
2440
|
priceToBookRatioTTM: z.ZodNumber;
|
|
2433
2441
|
priceToSalesRatioTTM: z.ZodNumber;
|
|
2434
2442
|
priceToFreeCashFlowRatioTTM: z.ZodNumber;
|
|
@@ -2491,6 +2499,8 @@ declare const FinancialRatiosTTMSchema: z.ZodObject<{
|
|
|
2491
2499
|
priceToEarningsRatioTTM: number;
|
|
2492
2500
|
priceToEarningsGrowthRatioTTM: number;
|
|
2493
2501
|
forwardPriceToEarningsGrowthRatioTTM: number;
|
|
2502
|
+
priceToEarningsDilutedRatioTTM: number;
|
|
2503
|
+
priceToEarningsDilutedGrowthRatioTTM: number;
|
|
2494
2504
|
priceToBookRatioTTM: number;
|
|
2495
2505
|
priceToSalesRatioTTM: number;
|
|
2496
2506
|
priceToFreeCashFlowRatioTTM: number;
|
|
@@ -2552,6 +2562,8 @@ declare const FinancialRatiosTTMSchema: z.ZodObject<{
|
|
|
2552
2562
|
priceToEarningsRatioTTM: number;
|
|
2553
2563
|
priceToEarningsGrowthRatioTTM: number;
|
|
2554
2564
|
forwardPriceToEarningsGrowthRatioTTM: number;
|
|
2565
|
+
priceToEarningsDilutedRatioTTM: number;
|
|
2566
|
+
priceToEarningsDilutedGrowthRatioTTM: number;
|
|
2555
2567
|
priceToBookRatioTTM: number;
|
|
2556
2568
|
priceToSalesRatioTTM: number;
|
|
2557
2569
|
priceToFreeCashFlowRatioTTM: number;
|
|
@@ -3293,28 +3305,28 @@ declare const MutualFundHoldingSchema: z.ZodObject<{
|
|
|
3293
3305
|
type MutualFundHolding = z.infer<typeof MutualFundHoldingSchema>;
|
|
3294
3306
|
|
|
3295
3307
|
declare const NewsSchema: z.ZodObject<{
|
|
3296
|
-
symbol: z.ZodString
|
|
3308
|
+
symbol: z.ZodNullable<z.ZodString>;
|
|
3297
3309
|
publishedDate: z.ZodString;
|
|
3298
3310
|
publisher: z.ZodString;
|
|
3299
3311
|
title: z.ZodString;
|
|
3300
|
-
image: z.ZodString
|
|
3312
|
+
image: z.ZodNullable<z.ZodString>;
|
|
3301
3313
|
site: z.ZodString;
|
|
3302
3314
|
text: z.ZodString;
|
|
3303
3315
|
url: z.ZodString;
|
|
3304
3316
|
}, "strip", z.ZodTypeAny, {
|
|
3305
|
-
symbol: string;
|
|
3317
|
+
symbol: string | null;
|
|
3306
3318
|
title: string;
|
|
3307
3319
|
url: string;
|
|
3308
|
-
image: string;
|
|
3320
|
+
image: string | null;
|
|
3309
3321
|
publishedDate: string;
|
|
3310
3322
|
publisher: string;
|
|
3311
3323
|
site: string;
|
|
3312
3324
|
text: string;
|
|
3313
3325
|
}, {
|
|
3314
|
-
symbol: string;
|
|
3326
|
+
symbol: string | null;
|
|
3315
3327
|
title: string;
|
|
3316
3328
|
url: string;
|
|
3317
|
-
image: string;
|
|
3329
|
+
image: string | null;
|
|
3318
3330
|
publishedDate: string;
|
|
3319
3331
|
publisher: string;
|
|
3320
3332
|
site: string;
|
|
@@ -3920,6 +3932,7 @@ declare const ScreenerSchema: z.ZodObject<{
|
|
|
3920
3932
|
price: z.ZodNumber;
|
|
3921
3933
|
lastAnnualDividend: z.ZodNullable<z.ZodNumber>;
|
|
3922
3934
|
volume: z.ZodNumber;
|
|
3935
|
+
avgVolume: z.ZodNumber;
|
|
3923
3936
|
exchange: z.ZodString;
|
|
3924
3937
|
exchangeShortName: z.ZodString;
|
|
3925
3938
|
country: z.ZodString;
|
|
@@ -3940,6 +3953,7 @@ declare const ScreenerSchema: z.ZodObject<{
|
|
|
3940
3953
|
isEtf: boolean;
|
|
3941
3954
|
isActivelyTrading: boolean;
|
|
3942
3955
|
isFund: boolean;
|
|
3956
|
+
avgVolume: number;
|
|
3943
3957
|
exchangeShortName: string;
|
|
3944
3958
|
lastAnnualDividend: number | null;
|
|
3945
3959
|
}, {
|
|
@@ -3956,6 +3970,7 @@ declare const ScreenerSchema: z.ZodObject<{
|
|
|
3956
3970
|
isEtf: boolean;
|
|
3957
3971
|
isActivelyTrading: boolean;
|
|
3958
3972
|
isFund: boolean;
|
|
3973
|
+
avgVolume: number;
|
|
3959
3974
|
exchangeShortName: string;
|
|
3960
3975
|
lastAnnualDividend: number | null;
|
|
3961
3976
|
}>;
|
|
@@ -4312,6 +4327,7 @@ type TechnicalIndicator = z.infer<typeof TechnicalIndicatorSchema>;
|
|
|
4312
4327
|
|
|
4313
4328
|
declare const SenateTradingResponseSchema: z.ZodObject<{
|
|
4314
4329
|
symbol: z.ZodString;
|
|
4330
|
+
senateID: z.ZodString;
|
|
4315
4331
|
disclosureDate: z.ZodString;
|
|
4316
4332
|
transactionDate: z.ZodString;
|
|
4317
4333
|
firstName: z.ZodString;
|
|
@@ -4333,6 +4349,7 @@ declare const SenateTradingResponseSchema: z.ZodObject<{
|
|
|
4333
4349
|
transactionDate: string;
|
|
4334
4350
|
owner: string;
|
|
4335
4351
|
office: string;
|
|
4352
|
+
senateID: string;
|
|
4336
4353
|
disclosureDate: string;
|
|
4337
4354
|
firstName: string;
|
|
4338
4355
|
lastName: string;
|
|
@@ -4349,6 +4366,7 @@ declare const SenateTradingResponseSchema: z.ZodObject<{
|
|
|
4349
4366
|
transactionDate: string;
|
|
4350
4367
|
owner: string;
|
|
4351
4368
|
office: string;
|
|
4369
|
+
senateID: string;
|
|
4352
4370
|
disclosureDate: string;
|
|
4353
4371
|
firstName: string;
|
|
4354
4372
|
lastName: string;
|
|
@@ -4361,6 +4379,7 @@ declare const SenateTradingResponseSchema: z.ZodObject<{
|
|
|
4361
4379
|
}>;
|
|
4362
4380
|
declare const HouseTradingResponseSchema: z.ZodObject<{
|
|
4363
4381
|
symbol: z.ZodString;
|
|
4382
|
+
senateID: z.ZodString;
|
|
4364
4383
|
disclosureDate: z.ZodString;
|
|
4365
4384
|
transactionDate: z.ZodString;
|
|
4366
4385
|
firstName: z.ZodString;
|
|
@@ -4382,6 +4401,7 @@ declare const HouseTradingResponseSchema: z.ZodObject<{
|
|
|
4382
4401
|
transactionDate: string;
|
|
4383
4402
|
owner: string;
|
|
4384
4403
|
office: string;
|
|
4404
|
+
senateID: string;
|
|
4385
4405
|
disclosureDate: string;
|
|
4386
4406
|
firstName: string;
|
|
4387
4407
|
lastName: string;
|
|
@@ -4398,6 +4418,7 @@ declare const HouseTradingResponseSchema: z.ZodObject<{
|
|
|
4398
4418
|
transactionDate: string;
|
|
4399
4419
|
owner: string;
|
|
4400
4420
|
office: string;
|
|
4421
|
+
senateID: string;
|
|
4401
4422
|
disclosureDate: string;
|
|
4402
4423
|
firstName: string;
|
|
4403
4424
|
lastName: string;
|
|
@@ -4410,6 +4431,7 @@ declare const HouseTradingResponseSchema: z.ZodObject<{
|
|
|
4410
4431
|
}>;
|
|
4411
4432
|
declare const SenateHouseTradingByNameResponseSchema: z.ZodObject<{
|
|
4412
4433
|
symbol: z.ZodString;
|
|
4434
|
+
senateID: z.ZodString;
|
|
4413
4435
|
disclosureDate: z.ZodString;
|
|
4414
4436
|
transactionDate: z.ZodString;
|
|
4415
4437
|
firstName: z.ZodString;
|
|
@@ -4431,6 +4453,7 @@ declare const SenateHouseTradingByNameResponseSchema: z.ZodObject<{
|
|
|
4431
4453
|
transactionDate: string;
|
|
4432
4454
|
owner: string;
|
|
4433
4455
|
office: string;
|
|
4456
|
+
senateID: string;
|
|
4434
4457
|
disclosureDate: string;
|
|
4435
4458
|
firstName: string;
|
|
4436
4459
|
lastName: string;
|
|
@@ -4447,6 +4470,7 @@ declare const SenateHouseTradingByNameResponseSchema: z.ZodObject<{
|
|
|
4447
4470
|
transactionDate: string;
|
|
4448
4471
|
owner: string;
|
|
4449
4472
|
office: string;
|
|
4473
|
+
senateID: string;
|
|
4450
4474
|
disclosureDate: string;
|
|
4451
4475
|
firstName: string;
|
|
4452
4476
|
lastName: string;
|
|
@@ -4705,18 +4729,18 @@ interface CompaniesPriceListResponse<T> {
|
|
|
4705
4729
|
declare const AftermarketTradeSchema: z.ZodObject<{
|
|
4706
4730
|
symbol: z.ZodString;
|
|
4707
4731
|
price: z.ZodNumber;
|
|
4708
|
-
tradeSize: z.ZodNumber
|
|
4732
|
+
tradeSize: z.ZodNullable<z.ZodNumber>;
|
|
4709
4733
|
timestamp: z.ZodNumber;
|
|
4710
4734
|
}, "strip", z.ZodTypeAny, {
|
|
4711
4735
|
symbol: string;
|
|
4712
4736
|
price: number;
|
|
4713
4737
|
timestamp: number;
|
|
4714
|
-
tradeSize: number;
|
|
4738
|
+
tradeSize: number | null;
|
|
4715
4739
|
}, {
|
|
4716
4740
|
symbol: string;
|
|
4717
4741
|
price: number;
|
|
4718
4742
|
timestamp: number;
|
|
4719
|
-
tradeSize: number;
|
|
4743
|
+
tradeSize: number | null;
|
|
4720
4744
|
}>;
|
|
4721
4745
|
type AftermarketTrade = z.infer<typeof AftermarketTradeSchema>;
|
|
4722
4746
|
declare const AftermarketQuoteSchema: z.ZodObject<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fmp-node-api",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4-beta.0",
|
|
4
4
|
"description": "A comprehensive Node.js wrapper for Financial Modeling Prep API",
|
|
5
5
|
"disclaimer": "This package is not affiliated with, endorsed by, or sponsored by Financial Modeling Prep (FMP). This is an independent, community-developed wrapper.",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"tsx": "^4.7.0",
|
|
56
56
|
"typescript": "^5.3.3",
|
|
57
57
|
"zod": "^3.25.76",
|
|
58
|
-
"fmp-node-types": "0.2.
|
|
58
|
+
"fmp-node-types": "0.2.4-beta.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "tsup",
|