fmp-node-api 0.0.3 → 0.0.5

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.mjs CHANGED
@@ -29,8 +29,26 @@ var FMPClient = class {
29
29
  });
30
30
  return client;
31
31
  }
32
- // Smart routing method
32
+ // Standard get method - returns raw API response
33
33
  async get(endpoint, version = "v3", params) {
34
+ const client = this.getClientForVersion(version);
35
+ try {
36
+ const response = await client.get(endpoint, { params });
37
+ return {
38
+ success: true,
39
+ data: response.data,
40
+ status: response.status
41
+ };
42
+ } catch (error) {
43
+ return {
44
+ success: false,
45
+ error: error.message || "Unknown error occurred",
46
+ status: error.response?.status || 500
47
+ };
48
+ }
49
+ }
50
+ // Get method for single-object endpoints - unwraps single-item arrays
51
+ async getSingle(endpoint, version = "v3", params) {
34
52
  const client = this.getClientForVersion(version);
35
53
  try {
36
54
  const response = await client.get(endpoint, { params });
@@ -124,16 +142,19 @@ var StockEndpoints = class {
124
142
  }
125
143
  /**
126
144
  * Get real-time stock quote
127
- * https://site.financialmodelingprep.com/developer/docs#full-quote-quote
145
+ * @deprecated Use `fmp.quote.getQuote()` instead. This method will be removed in version 0.1.0.
128
146
  * @param symbol - The stock symbol to get the quote for
129
147
  * @returns This endpoint gives you the latest bid and ask prices for a stock, as well as the volume and last trade price in real time.
130
148
  */
131
149
  async getQuote({ symbol }) {
132
- return this.client.get(`/quote/${symbol}`, "v3");
150
+ console.warn(
151
+ "\u26A0\uFE0F StockEndpoints.getQuote() is deprecated. Use fmp.quote.getQuote() instead. This method will be removed in version 0.1.0."
152
+ );
153
+ return this.client.getSingle(`/quote/${symbol}`, "v3");
133
154
  }
134
155
  /**
135
156
  * Get historical stock prices
136
- * https://site.financialmodelingprep.com/developer/docs#daily-chart-charts
157
+ * @deprecated Use `fmp.quote.getHistoricalPrice()` instead. This method will be removed in version 0.1.0.
137
158
  * @param symbol - The stock symbol to get the historical prices for
138
159
  * @param from - The start date to get the historical prices for
139
160
  * @param to - The end date to get the historical prices for
@@ -144,10 +165,13 @@ var StockEndpoints = class {
144
165
  from,
145
166
  to
146
167
  }) {
168
+ console.warn(
169
+ "\u26A0\uFE0F StockEndpoints.getHistoricalPrice() is deprecated. Use fmp.quote.getHistoricalPrice() instead. This method will be removed in version 0.1.0."
170
+ );
147
171
  const params = {};
148
172
  if (from) params.from = from;
149
173
  if (to) params.to = to;
150
- return this.client.get(`/historical-price-full/${symbol}`, "v3", params);
174
+ return this.client.getSingle(`/historical-price-full/${symbol}`, "v3", params);
151
175
  }
152
176
  /**
153
177
  * Get market cap
@@ -155,10 +179,8 @@ var StockEndpoints = class {
155
179
  * @param symbol - The stock symbol to get the market cap for
156
180
  * @returns The FMP Market Cap endpoint provides the current market capitalization of a company. Market cap is a measure of the size and relative importance of a company in the stock market. It is calculated by multiplying the current share price by the number of outstanding shares.
157
181
  */
158
- async getMarketCap({
159
- symbol
160
- }) {
161
- return this.client.get(`/market-capitalization/${symbol}`, "v3");
182
+ async getMarketCap({ symbol }) {
183
+ return this.client.getSingle(`/market-capitalization/${symbol}`, "v3");
162
184
  }
163
185
  /**
164
186
  * Get stock splits
@@ -166,10 +188,8 @@ var StockEndpoints = class {
166
188
  * @param symbol - The stock symbol to get the splits for
167
189
  * @returns A list of historical stock splits for publicly traded companies, including the date of the stock split, the split ratio, and the type of stock split.
168
190
  */
169
- async getStockSplits({
170
- symbol
171
- }) {
172
- return this.client.get(`/stock-split-calendar/${symbol}`, "v3");
191
+ async getStockSplits({ symbol }) {
192
+ return this.client.get(`/historical-price-full/stock_split/${symbol}`, "v3");
173
193
  }
174
194
  /**
175
195
  * Get dividend history
@@ -180,7 +200,7 @@ var StockEndpoints = class {
180
200
  async getDividendHistory({
181
201
  symbol
182
202
  }) {
183
- return this.client.get(`/historical-price-full/stock_dividend/${symbol}`, "v3");
203
+ return this.client.getSingle(`/historical-price-full/stock_dividend/${symbol}`, "v3");
184
204
  }
185
205
  };
186
206
 
@@ -210,7 +230,7 @@ var FinancialEndpoints = class {
210
230
  * @param symbol - The stock symbol to get the balance sheet for
211
231
  * @param period - The period to get the balance sheet for (annual or quarter)
212
232
  * @param limit - The number of periods to get
213
- * @returns The balance sheet is a financial statement that displays a company’s total assets, liabilities, and shareholder equity over a specific timeframe (quarterly or yearly). Investors can use this statement to determine if the company can fund its operations, meet its debt obligations, and pay a dividend.
233
+ * @returns The balance sheet is a financial statement that displays a company's total assets, liabilities, and shareholder equity over a specific timeframe (quarterly or yearly). Investors can use this statement to determine if the company can fund its operations, meet its debt obligations, and pay a dividend.
214
234
  */
215
235
  async getBalanceSheet({
216
236
  symbol,
@@ -228,7 +248,7 @@ var FinancialEndpoints = class {
228
248
  * @param symbol - The stock symbol to get the cash flow statement for
229
249
  * @param period - The period to get the cash flow statement for (annual or quarter)
230
250
  * @param limit - The number of periods to get
231
- * @returns The cash flow statement is a financial statement that highlights how cash moves through the company, including both cash inflows and outflows. This statement shows the cash flows in 3 main categories “Operating Cash Flows”, “Investing Cash Flows”, and “Financing Cash Flows”, which help investors to understand if the company is making money or losing money by conducting business.
251
+ * @returns The cash flow statement is a financial statement that highlights how cash moves through the company, including both cash inflows and outflows. This statement shows the cash flows in 3 main categories "Operating Cash Flows", "Investing Cash Flows", and "Financing Cash Flows", which help investors to understand if the company is making money or losing money by conducting business.
232
252
  */
233
253
  async getCashFlowStatement({
234
254
  symbol,
@@ -351,6 +371,31 @@ var FinancialEndpoints = class {
351
371
  }) {
352
372
  return this.client.get(`/financial-growth/${symbol}?period=${period}&limit=${limit}`, "v3");
353
373
  }
374
+ /**
375
+ * Get earnings historical
376
+ * https://site.financialmodelingprep.com/developer/docs#earnings-historical-earnings
377
+ * @param symbol - The stock symbol to get the earnings historical for
378
+ * @param limit - The number of periods to get
379
+ * @returns A list of historical & upcoming earnings announcements for a specific company, including the date, estimated EPS, and actual EPS.
380
+ */
381
+ async getEarningsHistorical({
382
+ symbol,
383
+ limit = 5
384
+ }) {
385
+ return this.client.get(`/historical/earning_calendar/${symbol}?limit=${limit}`, "v3");
386
+ }
387
+ /**
388
+ * Get earnings surprises
389
+ * https://site.financialmodelingprep.com/developer/docs#earnings-surprises-earnings
390
+ * @param symbol - The stock symbol to get the earnings surprises for
391
+ * @param limit - The number of periods to get
392
+ * @returns A list of earnings announcements for publicly traded companies that were either positive or negative surprises. This endpoint includes the date of the earnings announcement, the estimated EPS, the actual EPS, and the earnings surprise.
393
+ */
394
+ async getEarningsSurprises({
395
+ symbol
396
+ }) {
397
+ return this.client.get(`/earnings-surprises/${symbol}`, "v3");
398
+ }
354
399
  };
355
400
 
356
401
  // src/endpoints/forex.ts
@@ -360,18 +405,32 @@ var ForexEndpoints = class {
360
405
  }
361
406
  /**
362
407
  * Get forex quote
408
+ * @deprecated Use `fmp.quote.getQuote()` instead. This method will be removed in version 0.1.0.
409
+ * @param params - Parameters for the forex quote request
410
+ * @returns Forex quote data
363
411
  */
364
412
  async getQuote(params) {
413
+ console.warn(
414
+ "\u26A0\uFE0F ForexEndpoints.getQuote() is deprecated. Use fmp.quote.getQuote() instead. This method will be removed in version 0.1.0."
415
+ );
365
416
  return this.client.get("/quote", "v3", params);
366
417
  }
367
418
  /**
368
419
  * Get historical forex prices
420
+ * @deprecated Use `fmp.quote.getHistoricalPrice()` instead. This method will be removed in version 0.1.0.
421
+ * @param symbol - The forex symbol to get the historical prices for
422
+ * @param from - The start date to get the historical prices for
423
+ * @param to - The end date to get the historical prices for
424
+ * @returns Historical forex price data
369
425
  */
370
426
  async getHistoricalPrice({
371
427
  symbol,
372
428
  from,
373
429
  to
374
430
  }) {
431
+ console.warn(
432
+ "\u26A0\uFE0F ForexEndpoints.getHistoricalPrice() is deprecated. Use fmp.quote.getHistoricalPrice() instead. This method will be removed in version 0.1.0."
433
+ );
375
434
  const params = {};
376
435
  if (from) params.from = from;
377
436
  if (to) params.to = to;
@@ -379,12 +438,15 @@ var ForexEndpoints = class {
379
438
  }
380
439
  /**
381
440
  * Get forex rates for a specific base currency
441
+ * @param baseCurrency - The base currency to get forex rates for
442
+ * @returns Forex rates data
382
443
  */
383
444
  async getForexRates(baseCurrency = "USD") {
384
445
  return this.client.get(`/forex/${baseCurrency}`, "v3");
385
446
  }
386
447
  /**
387
448
  * Get all forex rates
449
+ * @returns All forex rates data
388
450
  */
389
451
  async getAllForexRates() {
390
452
  return this.client.get("/forex", "v3");
@@ -398,22 +460,36 @@ var CryptoEndpoints = class {
398
460
  }
399
461
  /**
400
462
  * Get crypto quote
463
+ * @deprecated Use `fmp.quote.getQuote()` instead. This method will be removed in version 0.1.0.
464
+ * @param symbol - The crypto symbol to get the quote for
465
+ * @returns Crypto quote data
401
466
  */
402
- async getQuote(params) {
403
- return this.client.get("/quote", "v3", params);
467
+ async getQuote({ symbol }) {
468
+ console.warn(
469
+ "\u26A0\uFE0F CryptoEndpoints.getQuote() is deprecated. Use fmp.quote.getQuote() instead. This method will be removed in version 0.1.0."
470
+ );
471
+ return this.client.getSingle(`/quote/${symbol}`, "v3");
404
472
  }
405
473
  /**
406
474
  * Get historical crypto prices
475
+ * @deprecated Use `fmp.quote.getHistoricalPrice()` instead. This method will be removed in version 0.1.0.
476
+ * @param symbol - The crypto symbol to get the historical prices for
477
+ * @param from - The start date to get the historical prices for
478
+ * @param to - The end date to get the historical prices for
479
+ * @returns Provides daily price data for all cryptocurrencies that are traded on exchanges around the world.
407
480
  */
408
481
  async getHistoricalPrice({
409
482
  symbol,
410
483
  from,
411
484
  to
412
485
  }) {
486
+ console.warn(
487
+ "\u26A0\uFE0F CryptoEndpoints.getHistoricalPrice() is deprecated. Use fmp.quote.getHistoricalPrice() instead. This method will be removed in version 0.1.0."
488
+ );
413
489
  const params = {};
414
490
  if (from) params.from = from;
415
491
  if (to) params.to = to;
416
- return this.client.get(`/historical-price-full/${symbol}`, "v3", params);
492
+ return this.client.getSingle(`/historical-price-full/${symbol}`, "v3", params);
417
493
  }
418
494
  };
419
495
 
@@ -423,22 +499,78 @@ var ETFEndpoints = class {
423
499
  this.client = client;
424
500
  }
425
501
  /**
426
- * Get ETF quote
502
+ * Get ETF holding dates
503
+ * https://site.financialmodelingprep.com/developer/docs#etf-holding-dates-etf-holdings
504
+ * @param symbol - The symbol of the ETF to get the holding dates for
505
+ * @returns The FMP ETF Holding Dates endpoint provides a list of the dates on which ETF holdings are updated. For example, an investor may want to know when an ETF's holdings are updated in order to make sure that they are still aligned with their investment goals.
427
506
  */
428
- async getQuote(params) {
429
- return this.client.get("/quote", "v3", params);
507
+ async getHoldingDates({ symbol }) {
508
+ const params = {};
509
+ if (symbol) params.symbol = symbol;
510
+ return this.client.get("/etf-holdings/portfolio-date", "v4", params);
511
+ }
512
+ /**
513
+ * Get ETF holdings
514
+ * https://site.financialmodelingprep.com/developer/docs#etf-holdings-etf-holdings
515
+ * @param symbol - The symbol of the ETF to get the holdings for
516
+ * @param date - The date to get the holdings for
517
+ * @returns The FMP ETF Holdings endpoint provides a list of all the institutional investors that own shares of an ETF. For example, an investor may want to know which ETF has the highest exposure to a particular industry or sector.
518
+ */
519
+ async getHoldings({
520
+ symbol,
521
+ date
522
+ }) {
523
+ const params = {};
524
+ if (symbol) params.symbol = symbol;
525
+ if (date) params.date = date;
526
+ return this.client.get("/etf-holdings", "v4", params);
527
+ }
528
+ /**
529
+ * Get ETF holder
530
+ * https://site.financialmodelingprep.com/developer/docs#etf-holder-etf-holdings
531
+ * @param symbol - The symbol of the ETF to get the holder for
532
+ * @returns This endpoint returns all stocks held by a specific ETF. Assets, share number, and weight are among the fields returned. For example you can get components of SPY, VOO and more.
533
+ */
534
+ async getHolder({ symbol }) {
535
+ return this.client.get(`/etf-holder/${symbol}`, "v3");
430
536
  }
431
537
  /**
432
538
  * Get ETF profile
539
+ * https://site.financialmodelingprep.com/developer/docs#etf-information-etf-holdings
540
+ * @param symbol - The symbol of the ETF to get the profile for
541
+ * @returns The FMP ETF Information endpoint provides basic information about an ETF, such as its ticker symbol, name, expense ratio, and asset under management. For example, an investor may want to compare the expense ratios of different ETFs to find the one that is most cost-effective.
433
542
  */
434
- async getProfile(params) {
435
- return this.client.get("/profile", "v3", params);
543
+ async getProfile({ symbol }) {
544
+ const params = {};
545
+ if (symbol) params.symbol = symbol;
546
+ return this.client.getSingle("/etf-info", "v4", params);
436
547
  }
437
548
  /**
438
- * Get ETF holdings
549
+ * Get ETF sector weighting
550
+ * https://site.financialmodelingprep.com/developer/docs#etf-sector-weighting-etf-holdings
551
+ * @param symbol - The symbol of the ETF to get the sector exposure for
552
+ * @returns The FMP ETF Sector Weighting endpoint provides a breakdown of the percentage of an ETF's assets that are invested in each sector. For example, an investor may want to invest in an ETF that has a high exposure to the technology sector if they believe that the technology sector is poised for growth.
439
553
  */
440
- async getHoldings(params) {
441
- return this.client.get("/holdings", "v3", params);
554
+ async getSectorWeighting({ symbol }) {
555
+ return this.client.get(`/etf-sector-weightings/${symbol}`, "v3");
556
+ }
557
+ /**
558
+ * Get ETF country weighting
559
+ * https://site.financialmodelingprep.com/developer/docs#etf-country-weighting-etf-holdings
560
+ * @param symbol - The symbol of the ETF to get the country weighting for
561
+ * @returns The FMP ETF Country Weighting endpoint provides a breakdown of the percentage of an ETF's assets that are invested in each country. For example, an investor may want to invest in an ETF that has a high exposure to China if they believe that the Chinese economy is poised for growth.
562
+ */
563
+ async getCountryWeighting({ symbol }) {
564
+ return this.client.get(`/etf-country-weightings/${symbol}`, "v3");
565
+ }
566
+ /**
567
+ * Get ETF Stock exposure
568
+ * https://site.financialmodelingprep.com/developer/docs#etf-sector-exposure-etf-holdings
569
+ * @param symbol - The symbol of the ETF to get the stock exposure for
570
+ * @returns This endpoint returns asset exposure from all ETFs that have it in their holdings. It has properties like market value, share number or weight percentage. It can be useful for looking up stock you like to check what ETF has it on their portfolio.
571
+ */
572
+ async getStockExposure({ symbol }) {
573
+ return this.client.get(`/etf-stock-exposure/${symbol}`, "v3");
442
574
  }
443
575
  };
444
576
 
@@ -449,6 +581,9 @@ var MutualFundEndpoints = class {
449
581
  }
450
582
  /**
451
583
  * Get mutual fund quote
584
+ * @deprecated Use `fmp.quote.getQuote()` instead. This method will be removed in a future release.
585
+ * @param params - Parameters for the mutual fund quote request
586
+ * @returns Mutual fund quote data
452
587
  */
453
588
  async getQuote(params) {
454
589
  return this.client.get("/quote", "v3", params);
@@ -474,12 +609,20 @@ var BondEndpoints = class {
474
609
  }
475
610
  /**
476
611
  * Get bond quote
612
+ * @deprecated Use `fmp.quote.getQuote()` instead. This method will be removed in a future release.
613
+ * @param params - Parameters for the bond quote request
614
+ * @returns Bond quote data
477
615
  */
478
616
  async getQuote(params) {
479
617
  return this.client.get("/quote", "v3", params);
480
618
  }
481
619
  /**
482
620
  * Get historical bond prices
621
+ * @deprecated Use `fmp.quote.getHistoricalPrice()` instead. This method will be removed in a future release.
622
+ * @param symbol - The bond symbol to get the historical prices for
623
+ * @param from - The start date to get the historical prices for
624
+ * @param to - The end date to get the historical prices for
625
+ * @returns Historical bond price data
483
626
  */
484
627
  async getHistoricalPrice({
485
628
  symbol,
@@ -549,33 +692,41 @@ var MarketEndpoints = class {
549
692
  }
550
693
  /**
551
694
  * Get top gainers
695
+ * https://site.financialmodelingprep.com/developer/docs#market-biggest-gainers-market-overview
696
+ * @returns The FMP Market Biggest Gainers endpoint provides a list of the stocks that have gained the most value on a given day. This information can be used by investors to identify stocks that are momentum and to potential investment opportunities.
552
697
  */
553
698
  async getGainers() {
554
- return this.client.get("/gainers", "v3");
699
+ return this.client.get("/stock_market/gainers", "v3");
555
700
  }
556
701
  /**
557
702
  * Get top losers
703
+ * https://site.financialmodelingprep.com/developer/docs#market-biggest-losers-market-overview
704
+ * @returns The FMP Market Biggest Losers endpoint provides a list of the stocks that have lost the most value on a given day. This information can be used by investors to identify stocks that are underperforming and to potential trading opportunities.
558
705
  */
559
706
  async getLosers() {
560
- return this.client.get("/losers", "v3");
707
+ return this.client.get("/stock_market/losers", "v3");
561
708
  }
562
709
  /**
563
710
  * Get most active stocks
564
711
  */
565
712
  async getMostActive() {
566
- return this.client.get("/most-active", "v3");
713
+ return this.client.get("/stock_market/actives", "v3");
567
714
  }
568
715
  /**
569
716
  * Get sector performance
717
+ * https://site.financialmodelingprep.com/developer/docs#sector-performance-market-overview
718
+ * @returns The FMP Sector Performance endpoint provides the performance of each sector of the stock market over a specified period of time. This information can be used by investors to identify sectors that are outperforming or underperforming the market.
570
719
  */
571
720
  async getSectorPerformance() {
572
721
  return this.client.get("/sector-performance", "v3");
573
722
  }
574
723
  /**
575
724
  * Get market indices
725
+ * https://site.financialmodelingprep.com/developer/docs#market-index-market-overview
726
+ * @returns The FMP Market Index endpoint provides a list of all the major stock market indices, such as the S&P 500, the Dow Jones Industrial Average, and the Nasdaq Composite Index. This information can be used by investors to track the performance of the overall stock market and to identify sectors and industries that are outperforming or underperforming the market.
576
727
  */
577
- async getMarketIndex(params = {}) {
578
- return this.client.get("/market-index", "v3", params);
728
+ async getMarketIndex() {
729
+ return this.client.get("/quotes/index", "v3");
579
730
  }
580
731
  };
581
732
 
@@ -712,7 +863,7 @@ var CompanyEndpoints = class {
712
863
  async getCompanyProfile({
713
864
  symbol
714
865
  }) {
715
- return this.client.get(`/profile/${symbol}`, "v3");
866
+ return this.client.getSingle(`/profile/${symbol}`, "v3");
716
867
  }
717
868
  /**
718
869
  * Get executive compensation
@@ -756,11 +907,9 @@ var CompanyEndpoints = class {
756
907
  * @param symbol - The stock symbol to get the shares float for
757
908
  * @returns The FMP Company Share Float endpoint provides the total number of shares that are publicly traded for a given company. This is also known as the company's float. The float is calculated by subtracting the number of restricted shares from the total number of outstanding shares.
758
909
  */
759
- async getSharesFloat({
760
- symbol
761
- }) {
910
+ async getSharesFloat({ symbol }) {
762
911
  const params = { symbol };
763
- return this.client.get(`/shares_float`, "v4", params);
912
+ return this.client.getSingle(`/shares_float`, "v4", params);
764
913
  }
765
914
  /**
766
915
  * Get historical shares float
@@ -788,7 +937,56 @@ var CompanyEndpoints = class {
788
937
  quarter
789
938
  }) {
790
939
  const params = { year, quarter };
791
- return this.client.get(`/earning_call_transcript/${symbol}`, "v3", params);
940
+ return this.client.getSingle(`/earning_call_transcript/${symbol}`, "v3", params);
941
+ }
942
+ };
943
+
944
+ // src/endpoints/quote.ts
945
+ var QuoteEndpoints = class {
946
+ constructor(client) {
947
+ this.client = client;
948
+ }
949
+ /**
950
+ * Get quote for any asset type (stock, crypto, forex, commodity, ETF)
951
+ * @param params - Parameters for the quote request
952
+ * @returns Quote data for the specified asset
953
+ */
954
+ async getQuote(params) {
955
+ const { symbol } = params;
956
+ return this.client.getSingle(`/quote/${symbol}`, "v3");
957
+ }
958
+ /**
959
+ * Get historical prices for any asset type
960
+ * @param params - Parameters for the historical price request
961
+ * @returns Historical price data for the specified asset
962
+ */
963
+ async getHistoricalPrice(params) {
964
+ const { symbol, from, to } = params;
965
+ const queryParams = {};
966
+ if (from) queryParams.from = from;
967
+ if (to) queryParams.to = to;
968
+ return this.client.getSingle(`/historical-price-full/${symbol}`, "v3", queryParams);
969
+ }
970
+ /**
971
+ * Get multiple quotes for any asset type
972
+ * @param symbols - Array of symbols to get quotes for
973
+ * @returns Array of quote data
974
+ */
975
+ async getQuotes(symbols) {
976
+ const symbolsParam = symbols.join(",");
977
+ return this.client.get(`/quote/${symbolsParam}`, "v3");
978
+ }
979
+ /**
980
+ * Get intraday data for any asset type
981
+ * @param params - Parameters for the intraday request
982
+ * @returns Intraday price data for the specified asset
983
+ */
984
+ async getIntraday(params) {
985
+ const { symbol, interval, from, to } = params;
986
+ const queryParams = {};
987
+ if (from) queryParams.from = from;
988
+ if (to) queryParams.to = to;
989
+ return this.client.get(`/historical-chart/${interval}/${symbol}`, "v3", queryParams);
792
990
  }
793
991
  };
794
992
 
@@ -799,16 +997,17 @@ var FMP = class {
799
997
  const client = new FMPClient(config);
800
998
  this.stock = new StockEndpoints(client);
801
999
  this.financial = new FinancialEndpoints(client);
802
- this.forex = new ForexEndpoints(client);
803
1000
  this.crypto = new CryptoEndpoints(client);
804
1001
  this.etf = new ETFEndpoints(client);
805
- this.mutualFund = new MutualFundEndpoints(client);
806
- this.bond = new BondEndpoints(client);
807
- this.economic = new EconomicEndpoints(client);
808
1002
  this.market = new MarketEndpoints(client);
809
1003
  this.list = new ListEndpoints(client);
810
1004
  this.calendar = new CalendarEndpoints(client);
811
1005
  this.company = new CompanyEndpoints(client);
1006
+ this.quote = new QuoteEndpoints(client);
1007
+ this.forex = new ForexEndpoints(client);
1008
+ this.economic = new EconomicEndpoints(client);
1009
+ this.bond = new BondEndpoints(client);
1010
+ this.mutualFund = new MutualFundEndpoints(client);
812
1011
  }
813
1012
  /**
814
1013
  * Get the underlying client instance for advanced usage
@@ -955,6 +1154,6 @@ var HTTP_STATUS = {
955
1154
  INTERNAL_SERVER_ERROR: 500
956
1155
  };
957
1156
 
958
- export { BondEndpoints, COUNTRIES, CalendarEndpoints, CompanyEndpoints, CryptoEndpoints, DEFAULT_LIMIT, DEFAULT_TIMEOUT, ERROR_MESSAGES, ETFEndpoints, EXCHANGES, EconomicEndpoints, Exchange, FMP, FMPClient, FinancialEndpoints, ForexEndpoints, HTTP_STATUS, ListEndpoints, MAX_LIMIT, MarketEndpoints, MutualFundEndpoints, PERIODS, Period, SECTORS, StockEndpoints, formatCurrency, formatDate, formatLargeNumber, formatNumber, formatPercentage, formatReadableDate, formatTimestamp, formatVolume, validateApiKey, validateDate, validateLimit, validatePage, validatePeriod, validateSymbol };
1157
+ export { BondEndpoints, COUNTRIES, CalendarEndpoints, CompanyEndpoints, CryptoEndpoints, DEFAULT_LIMIT, DEFAULT_TIMEOUT, ERROR_MESSAGES, ETFEndpoints, EXCHANGES, EconomicEndpoints, Exchange, FMP, FMPClient, FinancialEndpoints, ForexEndpoints, HTTP_STATUS, ListEndpoints, MAX_LIMIT, MarketEndpoints, MutualFundEndpoints, PERIODS, Period, QuoteEndpoints, SECTORS, StockEndpoints, formatCurrency, formatDate, formatLargeNumber, formatNumber, formatPercentage, formatReadableDate, formatTimestamp, formatVolume, validateApiKey, validateDate, validateLimit, validatePage, validatePeriod, validateSymbol };
959
1158
  //# sourceMappingURL=index.mjs.map
960
1159
  //# sourceMappingURL=index.mjs.map