fmp-node-api 0.0.4 → 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/README.md CHANGED
@@ -64,13 +64,12 @@ const fmp = new FMP({
64
64
 
65
65
  ### Available Modules
66
66
 
67
+ - **`fmp.quote`** - Quote data for stocks, forex, crypto, commodities, and ETFs
67
68
  - **`fmp.stock`** - Stock market data (quotes, profiles, historical prices, etc.)
68
69
  - **`fmp.financial`** - Financial statements (income, balance sheet, cash flow)
69
- - **`fmp.forex`** - Foreign exchange data
70
70
  - **`fmp.crypto`** - Cryptocurrency data
71
71
  - **`fmp.etf`** - ETF data and holdings
72
72
  - **`fmp.mutualFund`** - Mutual fund data
73
- - **`fmp.bond`** - Bond market data
74
73
  - **`fmp.economic`** - Economic indicators
75
74
  - **`fmp.market`** - Market-wide data and performance
76
75
  - **`fmp.list`** - Stock lists and indices
package/dist/index.d.mts CHANGED
@@ -33,64 +33,80 @@ interface PaginationParams {
33
33
  interface PeriodParams {
34
34
  period?: 'annual' | 'quarter';
35
35
  }
36
- interface HistoricalPriceData {
37
- date: string;
38
- open: number;
39
- high: number;
40
- low: number;
41
- close: number;
42
- adjClose: number;
43
- volume: number;
44
- unadjustedVolume: number;
45
- change: number;
46
- changePercent: number;
47
- vwap: number;
48
- label: string;
49
- changeOverTime: number;
36
+ interface QueryParams {
37
+ [key: string]: string | number | boolean | undefined;
50
38
  }
51
- interface HistoricalPriceResponse {
39
+ declare enum Period {
40
+ ANNUAL = "annual",
41
+ QUARTER = "quarter"
42
+ }
43
+ declare enum Exchange {
44
+ NYSE = "NYSE",
45
+ NASDAQ = "NASDAQ",
46
+ AMEX = "AMEX",
47
+ TSX = "TSX",
48
+ LSE = "LSE",
49
+ ASX = "ASX",
50
+ NSE = "NSE",
51
+ BSE = "BSE"
52
+ }
53
+
54
+ interface QuoteParams {
52
55
  symbol: string;
53
- historical: HistoricalPriceData[];
54
56
  }
55
- interface QueryParams {
56
- [key: string]: string | number | boolean | undefined;
57
+ interface HistoricalPriceParams {
58
+ symbol: string;
59
+ from?: string;
60
+ to?: string;
61
+ }
62
+ interface IntradayParams {
63
+ symbol: string;
64
+ interval: '1min' | '5min' | '15min' | '30min' | '1hour' | '4hour';
65
+ from?: string;
66
+ to?: string;
57
67
  }
58
68
  interface Quote {
59
69
  symbol: string;
70
+ name: string;
60
71
  price: number;
72
+ changesPercentage: number;
61
73
  change: number;
62
- changePercent: number;
63
74
  dayLow: number;
64
75
  dayHigh: number;
65
- yearLow: number;
66
76
  yearHigh: number;
67
- marketCap: number;
77
+ yearLow: number;
78
+ marketCap: number | null;
68
79
  priceAvg50: number;
69
80
  priceAvg200: number;
81
+ exchange: string;
70
82
  volume: number;
71
83
  avgVolume: number;
72
- exchange: string;
73
84
  open: number;
74
85
  previousClose: number;
75
- eps: number;
76
- pe: number;
77
- earningsAnnouncement: string;
78
- sharesOutstanding: number;
86
+ eps: number | null;
87
+ pe: number | null;
88
+ earningsAnnouncement: string | null;
89
+ sharesOutstanding: number | null;
79
90
  timestamp: number;
80
91
  }
81
- declare enum Period {
82
- ANNUAL = "annual",
83
- QUARTER = "quarter"
92
+ interface HistoricalPriceData {
93
+ date: string;
94
+ open: number;
95
+ high: number;
96
+ low: number;
97
+ close: number;
98
+ adjClose: number;
99
+ volume: number;
100
+ unadjustedVolume: number;
101
+ change: number;
102
+ changePercent: number;
103
+ vwap: number;
104
+ label: string;
105
+ changeOverTime: number;
84
106
  }
85
- declare enum Exchange {
86
- NYSE = "NYSE",
87
- NASDAQ = "NASDAQ",
88
- AMEX = "AMEX",
89
- TSX = "TSX",
90
- LSE = "LSE",
91
- ASX = "ASX",
92
- NSE = "NSE",
93
- BSE = "BSE"
107
+ interface HistoricalPriceResponse {
108
+ symbol: string;
109
+ historical: HistoricalPriceData[];
94
110
  }
95
111
 
96
112
  interface StockQuote {
@@ -1123,7 +1139,7 @@ declare class StockEndpoints {
1123
1139
  constructor(client: FMPClient);
1124
1140
  /**
1125
1141
  * Get real-time stock quote
1126
- * https://site.financialmodelingprep.com/developer/docs#full-quote-quote
1142
+ * @deprecated Use `fmp.quote.getQuote()` instead. This method will be removed in version 0.1.0.
1127
1143
  * @param symbol - The stock symbol to get the quote for
1128
1144
  * @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.
1129
1145
  */
@@ -1132,7 +1148,7 @@ declare class StockEndpoints {
1132
1148
  }): Promise<APIResponse<StockQuote | null>>;
1133
1149
  /**
1134
1150
  * Get historical stock prices
1135
- * https://site.financialmodelingprep.com/developer/docs#daily-chart-charts
1151
+ * @deprecated Use `fmp.quote.getHistoricalPrice()` instead. This method will be removed in version 0.1.0.
1136
1152
  * @param symbol - The stock symbol to get the historical prices for
1137
1153
  * @param from - The start date to get the historical prices for
1138
1154
  * @param to - The end date to get the historical prices for
@@ -1288,12 +1304,14 @@ declare class ForexEndpoints {
1288
1304
  constructor(client: FMPClient);
1289
1305
  /**
1290
1306
  * Get forex quote
1307
+ * @deprecated Use `fmp.quote.getQuote()` instead. This method will be removed in version 0.1.0.
1291
1308
  * @param params - Parameters for the forex quote request
1292
1309
  * @returns Forex quote data
1293
1310
  */
1294
1311
  getQuote(params: ForexQuoteParams): Promise<APIResponse<ForexQuote[]>>;
1295
1312
  /**
1296
1313
  * Get historical forex prices
1314
+ * @deprecated Use `fmp.quote.getHistoricalPrice()` instead. This method will be removed in version 0.1.0.
1297
1315
  * @param symbol - The forex symbol to get the historical prices for
1298
1316
  * @param from - The start date to get the historical prices for
1299
1317
  * @param to - The end date to get the historical prices for
@@ -1322,7 +1340,7 @@ declare class CryptoEndpoints {
1322
1340
  constructor(client: FMPClient);
1323
1341
  /**
1324
1342
  * Get crypto quote
1325
- * https://site.financialmodelingprep.com/developer/docs#full-quote-crypto
1343
+ * @deprecated Use `fmp.quote.getQuote()` instead. This method will be removed in version 0.1.0.
1326
1344
  * @param symbol - The crypto symbol to get the quote for
1327
1345
  * @returns Crypto quote data
1328
1346
  */
@@ -1331,7 +1349,7 @@ declare class CryptoEndpoints {
1331
1349
  }): Promise<APIResponse<CryptoQuote | null>>;
1332
1350
  /**
1333
1351
  * Get historical crypto prices
1334
- * https://site.financialmodelingprep.com/developer/docs#cryptocurrency-daily-crypto
1352
+ * @deprecated Use `fmp.quote.getHistoricalPrice()` instead. This method will be removed in version 0.1.0.
1335
1353
  * @param symbol - The crypto symbol to get the historical prices for
1336
1354
  * @param from - The start date to get the historical prices for
1337
1355
  * @param to - The end date to get the historical prices for
@@ -1407,6 +1425,7 @@ declare class MutualFundEndpoints {
1407
1425
  constructor(client: FMPClient);
1408
1426
  /**
1409
1427
  * Get mutual fund quote
1428
+ * @deprecated Use `fmp.quote.getQuote()` instead. This method will be removed in a future release.
1410
1429
  * @param params - Parameters for the mutual fund quote request
1411
1430
  * @returns Mutual fund quote data
1412
1431
  */
@@ -1426,12 +1445,14 @@ declare class BondEndpoints {
1426
1445
  constructor(client: FMPClient);
1427
1446
  /**
1428
1447
  * Get bond quote
1448
+ * @deprecated Use `fmp.quote.getQuote()` instead. This method will be removed in a future release.
1429
1449
  * @param params - Parameters for the bond quote request
1430
1450
  * @returns Bond quote data
1431
1451
  */
1432
1452
  getQuote(params: BondQuoteParams): Promise<APIResponse<BondQuote[]>>;
1433
1453
  /**
1434
1454
  * Get historical bond prices
1455
+ * @deprecated Use `fmp.quote.getHistoricalPrice()` instead. This method will be removed in a future release.
1435
1456
  * @param symbol - The bond symbol to get the historical prices for
1436
1457
  * @param from - The start date to get the historical prices for
1437
1458
  * @param to - The end date to get the historical prices for
@@ -1662,6 +1683,35 @@ declare class CompanyEndpoints {
1662
1683
  }): Promise<APIResponse<EarningsCallTranscript[] | null>>;
1663
1684
  }
1664
1685
 
1686
+ declare class QuoteEndpoints {
1687
+ private client;
1688
+ constructor(client: FMPClient);
1689
+ /**
1690
+ * Get quote for any asset type (stock, crypto, forex, commodity, ETF)
1691
+ * @param params - Parameters for the quote request
1692
+ * @returns Quote data for the specified asset
1693
+ */
1694
+ getQuote(params: QuoteParams): Promise<APIResponse<Quote | null>>;
1695
+ /**
1696
+ * Get historical prices for any asset type
1697
+ * @param params - Parameters for the historical price request
1698
+ * @returns Historical price data for the specified asset
1699
+ */
1700
+ getHistoricalPrice(params: HistoricalPriceParams): Promise<APIResponse<HistoricalPriceResponse>>;
1701
+ /**
1702
+ * Get multiple quotes for any asset type
1703
+ * @param symbols - Array of symbols to get quotes for
1704
+ * @returns Array of quote data
1705
+ */
1706
+ getQuotes(symbols: string[]): Promise<APIResponse<Quote[]>>;
1707
+ /**
1708
+ * Get intraday data for any asset type
1709
+ * @param params - Parameters for the intraday request
1710
+ * @returns Intraday price data for the specified asset
1711
+ */
1712
+ getIntraday(params: IntradayParams): Promise<APIResponse<HistoricalPriceData[]>>;
1713
+ }
1714
+
1665
1715
  /**
1666
1716
  * Main FMP API client that provides access to all endpoints
1667
1717
  *
@@ -1697,6 +1747,7 @@ declare class FMP {
1697
1747
  readonly list: ListEndpoints;
1698
1748
  readonly calendar: CalendarEndpoints;
1699
1749
  readonly company: CompanyEndpoints;
1750
+ readonly quote: QuoteEndpoints;
1700
1751
  constructor(config: FMPConfig);
1701
1752
  /**
1702
1753
  * Get the underlying client instance for advanced usage
@@ -1828,4 +1879,4 @@ declare const HTTP_STATUS: {
1828
1879
  readonly INTERNAL_SERVER_ERROR: 500;
1829
1880
  };
1830
1881
 
1831
- export { type APIResponse, type AvailableIndexesList, type BalanceSheet, type BalanceSheetGrowth, BondEndpoints, type BondHistoricalParams, type BondListParams, type BondQuote, type BondQuoteParams, COUNTRIES, type CPI, type CPIParams, CalendarEndpoints, type CashFlowStatement, type CashflowGrowth, CompanyEndpoints, type CompanyNotes, type CompanyProfile, CryptoEndpoints, type CryptoHistoricalParams, type CryptoList, type CryptoListParams, type CryptoQuote, DEFAULT_LIMIT, DEFAULT_TIMEOUT, type DateRangeParams, type DividendsCalendar, ERROR_MESSAGES, type ETFCountryWeighting, ETFEndpoints, type ETFHolder, type ETFHolding, type ETFHoldingDates, type ETFList, type ETFProfile, type ETFStockExposure, type ETFWeighting, EXCHANGES, type EarningsCalendar, type EarningsCallTranscript, type EarningsHistorical, type EarningsSurprises, EconomicEndpoints, type EconomicIndicator, type EconomicIndicatorParams, type EconomicsCalendar, type EnterpriseValue, type ErrorResponse, Exchange, type ExecutiveCompensation, FMP, FMPClient, type FMPConfig, type FederalFundsRate, type FederalFundsRateParams, FinancialEndpoints, type FinancialGrowth, type FinancialRatios, type FinancialStatementBase, type FinancialStatementsParams, ForexEndpoints, type ForexHistoricalParams, type ForexList, type ForexListParams, type ForexQuote, type ForexQuoteParams, type GDP, type GDPParams, type GrowthStatementBase, HTTP_STATUS, type HistoricalEmployeeCount, type HistoricalPriceData, type HistoricalPriceResponse, type HistoricalSharesFloat, type IPOCalendar, type IncomeGrowth, type IncomeStatement, type KeyMetrics, ListEndpoints, MAX_LIMIT, type MarketCap, MarketEndpoints, type MarketHoliday, type MarketHours, type MarketIndex, type MarketPerformance, type MarketSectorPerformance, MutualFundEndpoints, type MutualFundHoldersParams, type MutualFundHolding, type MutualFundListParams, type MutualFundProfile, type MutualFundProfileParams, type MutualFundQuote, type MutualFundQuoteParams, PERIODS, type PaginationParams, Period, type PeriodParams, type QueryParams, type Quote, SECTORS, type SharesFloat, type SplitsCalendar, type StockDividend, type StockDividendResponse, StockEndpoints, type StockList, type StockQuote, type StockSplit, type StockSplitResponse, type SuccessResponse, type SymbolParams, type TreasuryRate, type TreasuryRateParams, type Unemployment, type UnemploymentParams, formatCurrency, formatDate, formatLargeNumber, formatNumber, formatPercentage, formatReadableDate, formatTimestamp, formatVolume, validateApiKey, validateDate, validateLimit, validatePage, validatePeriod, validateSymbol };
1882
+ export { type APIResponse, type AvailableIndexesList, type BalanceSheet, type BalanceSheetGrowth, BondEndpoints, type BondHistoricalParams, type BondListParams, type BondQuote, type BondQuoteParams, COUNTRIES, type CPI, type CPIParams, CalendarEndpoints, type CashFlowStatement, type CashflowGrowth, CompanyEndpoints, type CompanyNotes, type CompanyProfile, CryptoEndpoints, type CryptoHistoricalParams, type CryptoList, type CryptoListParams, type CryptoQuote, DEFAULT_LIMIT, DEFAULT_TIMEOUT, type DateRangeParams, type DividendsCalendar, ERROR_MESSAGES, type ETFCountryWeighting, ETFEndpoints, type ETFHolder, type ETFHolding, type ETFHoldingDates, type ETFList, type ETFProfile, type ETFStockExposure, type ETFWeighting, EXCHANGES, type EarningsCalendar, type EarningsCallTranscript, type EarningsHistorical, type EarningsSurprises, EconomicEndpoints, type EconomicIndicator, type EconomicIndicatorParams, type EconomicsCalendar, type EnterpriseValue, type ErrorResponse, Exchange, type ExecutiveCompensation, FMP, FMPClient, type FMPConfig, type FederalFundsRate, type FederalFundsRateParams, FinancialEndpoints, type FinancialGrowth, type FinancialRatios, type FinancialStatementBase, type FinancialStatementsParams, ForexEndpoints, type ForexHistoricalParams, type ForexList, type ForexListParams, type ForexQuote, type ForexQuoteParams, type GDP, type GDPParams, type GrowthStatementBase, HTTP_STATUS, type HistoricalEmployeeCount, type HistoricalPriceData, type HistoricalPriceParams, type HistoricalPriceResponse, type HistoricalSharesFloat, type IPOCalendar, type IncomeGrowth, type IncomeStatement, type IntradayParams, type KeyMetrics, ListEndpoints, MAX_LIMIT, type MarketCap, MarketEndpoints, type MarketHoliday, type MarketHours, type MarketIndex, type MarketPerformance, type MarketSectorPerformance, MutualFundEndpoints, type MutualFundHoldersParams, type MutualFundHolding, type MutualFundListParams, type MutualFundProfile, type MutualFundProfileParams, type MutualFundQuote, type MutualFundQuoteParams, PERIODS, type PaginationParams, Period, type PeriodParams, type QueryParams, type Quote, QuoteEndpoints, type QuoteParams, SECTORS, type SharesFloat, type SplitsCalendar, type StockDividend, type StockDividendResponse, StockEndpoints, type StockList, type StockQuote, type StockSplit, type StockSplitResponse, type SuccessResponse, type SymbolParams, type TreasuryRate, type TreasuryRateParams, type Unemployment, type UnemploymentParams, formatCurrency, formatDate, formatLargeNumber, formatNumber, formatPercentage, formatReadableDate, formatTimestamp, formatVolume, validateApiKey, validateDate, validateLimit, validatePage, validatePeriod, validateSymbol };
package/dist/index.d.ts CHANGED
@@ -33,64 +33,80 @@ interface PaginationParams {
33
33
  interface PeriodParams {
34
34
  period?: 'annual' | 'quarter';
35
35
  }
36
- interface HistoricalPriceData {
37
- date: string;
38
- open: number;
39
- high: number;
40
- low: number;
41
- close: number;
42
- adjClose: number;
43
- volume: number;
44
- unadjustedVolume: number;
45
- change: number;
46
- changePercent: number;
47
- vwap: number;
48
- label: string;
49
- changeOverTime: number;
36
+ interface QueryParams {
37
+ [key: string]: string | number | boolean | undefined;
50
38
  }
51
- interface HistoricalPriceResponse {
39
+ declare enum Period {
40
+ ANNUAL = "annual",
41
+ QUARTER = "quarter"
42
+ }
43
+ declare enum Exchange {
44
+ NYSE = "NYSE",
45
+ NASDAQ = "NASDAQ",
46
+ AMEX = "AMEX",
47
+ TSX = "TSX",
48
+ LSE = "LSE",
49
+ ASX = "ASX",
50
+ NSE = "NSE",
51
+ BSE = "BSE"
52
+ }
53
+
54
+ interface QuoteParams {
52
55
  symbol: string;
53
- historical: HistoricalPriceData[];
54
56
  }
55
- interface QueryParams {
56
- [key: string]: string | number | boolean | undefined;
57
+ interface HistoricalPriceParams {
58
+ symbol: string;
59
+ from?: string;
60
+ to?: string;
61
+ }
62
+ interface IntradayParams {
63
+ symbol: string;
64
+ interval: '1min' | '5min' | '15min' | '30min' | '1hour' | '4hour';
65
+ from?: string;
66
+ to?: string;
57
67
  }
58
68
  interface Quote {
59
69
  symbol: string;
70
+ name: string;
60
71
  price: number;
72
+ changesPercentage: number;
61
73
  change: number;
62
- changePercent: number;
63
74
  dayLow: number;
64
75
  dayHigh: number;
65
- yearLow: number;
66
76
  yearHigh: number;
67
- marketCap: number;
77
+ yearLow: number;
78
+ marketCap: number | null;
68
79
  priceAvg50: number;
69
80
  priceAvg200: number;
81
+ exchange: string;
70
82
  volume: number;
71
83
  avgVolume: number;
72
- exchange: string;
73
84
  open: number;
74
85
  previousClose: number;
75
- eps: number;
76
- pe: number;
77
- earningsAnnouncement: string;
78
- sharesOutstanding: number;
86
+ eps: number | null;
87
+ pe: number | null;
88
+ earningsAnnouncement: string | null;
89
+ sharesOutstanding: number | null;
79
90
  timestamp: number;
80
91
  }
81
- declare enum Period {
82
- ANNUAL = "annual",
83
- QUARTER = "quarter"
92
+ interface HistoricalPriceData {
93
+ date: string;
94
+ open: number;
95
+ high: number;
96
+ low: number;
97
+ close: number;
98
+ adjClose: number;
99
+ volume: number;
100
+ unadjustedVolume: number;
101
+ change: number;
102
+ changePercent: number;
103
+ vwap: number;
104
+ label: string;
105
+ changeOverTime: number;
84
106
  }
85
- declare enum Exchange {
86
- NYSE = "NYSE",
87
- NASDAQ = "NASDAQ",
88
- AMEX = "AMEX",
89
- TSX = "TSX",
90
- LSE = "LSE",
91
- ASX = "ASX",
92
- NSE = "NSE",
93
- BSE = "BSE"
107
+ interface HistoricalPriceResponse {
108
+ symbol: string;
109
+ historical: HistoricalPriceData[];
94
110
  }
95
111
 
96
112
  interface StockQuote {
@@ -1123,7 +1139,7 @@ declare class StockEndpoints {
1123
1139
  constructor(client: FMPClient);
1124
1140
  /**
1125
1141
  * Get real-time stock quote
1126
- * https://site.financialmodelingprep.com/developer/docs#full-quote-quote
1142
+ * @deprecated Use `fmp.quote.getQuote()` instead. This method will be removed in version 0.1.0.
1127
1143
  * @param symbol - The stock symbol to get the quote for
1128
1144
  * @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.
1129
1145
  */
@@ -1132,7 +1148,7 @@ declare class StockEndpoints {
1132
1148
  }): Promise<APIResponse<StockQuote | null>>;
1133
1149
  /**
1134
1150
  * Get historical stock prices
1135
- * https://site.financialmodelingprep.com/developer/docs#daily-chart-charts
1151
+ * @deprecated Use `fmp.quote.getHistoricalPrice()` instead. This method will be removed in version 0.1.0.
1136
1152
  * @param symbol - The stock symbol to get the historical prices for
1137
1153
  * @param from - The start date to get the historical prices for
1138
1154
  * @param to - The end date to get the historical prices for
@@ -1288,12 +1304,14 @@ declare class ForexEndpoints {
1288
1304
  constructor(client: FMPClient);
1289
1305
  /**
1290
1306
  * Get forex quote
1307
+ * @deprecated Use `fmp.quote.getQuote()` instead. This method will be removed in version 0.1.0.
1291
1308
  * @param params - Parameters for the forex quote request
1292
1309
  * @returns Forex quote data
1293
1310
  */
1294
1311
  getQuote(params: ForexQuoteParams): Promise<APIResponse<ForexQuote[]>>;
1295
1312
  /**
1296
1313
  * Get historical forex prices
1314
+ * @deprecated Use `fmp.quote.getHistoricalPrice()` instead. This method will be removed in version 0.1.0.
1297
1315
  * @param symbol - The forex symbol to get the historical prices for
1298
1316
  * @param from - The start date to get the historical prices for
1299
1317
  * @param to - The end date to get the historical prices for
@@ -1322,7 +1340,7 @@ declare class CryptoEndpoints {
1322
1340
  constructor(client: FMPClient);
1323
1341
  /**
1324
1342
  * Get crypto quote
1325
- * https://site.financialmodelingprep.com/developer/docs#full-quote-crypto
1343
+ * @deprecated Use `fmp.quote.getQuote()` instead. This method will be removed in version 0.1.0.
1326
1344
  * @param symbol - The crypto symbol to get the quote for
1327
1345
  * @returns Crypto quote data
1328
1346
  */
@@ -1331,7 +1349,7 @@ declare class CryptoEndpoints {
1331
1349
  }): Promise<APIResponse<CryptoQuote | null>>;
1332
1350
  /**
1333
1351
  * Get historical crypto prices
1334
- * https://site.financialmodelingprep.com/developer/docs#cryptocurrency-daily-crypto
1352
+ * @deprecated Use `fmp.quote.getHistoricalPrice()` instead. This method will be removed in version 0.1.0.
1335
1353
  * @param symbol - The crypto symbol to get the historical prices for
1336
1354
  * @param from - The start date to get the historical prices for
1337
1355
  * @param to - The end date to get the historical prices for
@@ -1407,6 +1425,7 @@ declare class MutualFundEndpoints {
1407
1425
  constructor(client: FMPClient);
1408
1426
  /**
1409
1427
  * Get mutual fund quote
1428
+ * @deprecated Use `fmp.quote.getQuote()` instead. This method will be removed in a future release.
1410
1429
  * @param params - Parameters for the mutual fund quote request
1411
1430
  * @returns Mutual fund quote data
1412
1431
  */
@@ -1426,12 +1445,14 @@ declare class BondEndpoints {
1426
1445
  constructor(client: FMPClient);
1427
1446
  /**
1428
1447
  * Get bond quote
1448
+ * @deprecated Use `fmp.quote.getQuote()` instead. This method will be removed in a future release.
1429
1449
  * @param params - Parameters for the bond quote request
1430
1450
  * @returns Bond quote data
1431
1451
  */
1432
1452
  getQuote(params: BondQuoteParams): Promise<APIResponse<BondQuote[]>>;
1433
1453
  /**
1434
1454
  * Get historical bond prices
1455
+ * @deprecated Use `fmp.quote.getHistoricalPrice()` instead. This method will be removed in a future release.
1435
1456
  * @param symbol - The bond symbol to get the historical prices for
1436
1457
  * @param from - The start date to get the historical prices for
1437
1458
  * @param to - The end date to get the historical prices for
@@ -1662,6 +1683,35 @@ declare class CompanyEndpoints {
1662
1683
  }): Promise<APIResponse<EarningsCallTranscript[] | null>>;
1663
1684
  }
1664
1685
 
1686
+ declare class QuoteEndpoints {
1687
+ private client;
1688
+ constructor(client: FMPClient);
1689
+ /**
1690
+ * Get quote for any asset type (stock, crypto, forex, commodity, ETF)
1691
+ * @param params - Parameters for the quote request
1692
+ * @returns Quote data for the specified asset
1693
+ */
1694
+ getQuote(params: QuoteParams): Promise<APIResponse<Quote | null>>;
1695
+ /**
1696
+ * Get historical prices for any asset type
1697
+ * @param params - Parameters for the historical price request
1698
+ * @returns Historical price data for the specified asset
1699
+ */
1700
+ getHistoricalPrice(params: HistoricalPriceParams): Promise<APIResponse<HistoricalPriceResponse>>;
1701
+ /**
1702
+ * Get multiple quotes for any asset type
1703
+ * @param symbols - Array of symbols to get quotes for
1704
+ * @returns Array of quote data
1705
+ */
1706
+ getQuotes(symbols: string[]): Promise<APIResponse<Quote[]>>;
1707
+ /**
1708
+ * Get intraday data for any asset type
1709
+ * @param params - Parameters for the intraday request
1710
+ * @returns Intraday price data for the specified asset
1711
+ */
1712
+ getIntraday(params: IntradayParams): Promise<APIResponse<HistoricalPriceData[]>>;
1713
+ }
1714
+
1665
1715
  /**
1666
1716
  * Main FMP API client that provides access to all endpoints
1667
1717
  *
@@ -1697,6 +1747,7 @@ declare class FMP {
1697
1747
  readonly list: ListEndpoints;
1698
1748
  readonly calendar: CalendarEndpoints;
1699
1749
  readonly company: CompanyEndpoints;
1750
+ readonly quote: QuoteEndpoints;
1700
1751
  constructor(config: FMPConfig);
1701
1752
  /**
1702
1753
  * Get the underlying client instance for advanced usage
@@ -1828,4 +1879,4 @@ declare const HTTP_STATUS: {
1828
1879
  readonly INTERNAL_SERVER_ERROR: 500;
1829
1880
  };
1830
1881
 
1831
- export { type APIResponse, type AvailableIndexesList, type BalanceSheet, type BalanceSheetGrowth, BondEndpoints, type BondHistoricalParams, type BondListParams, type BondQuote, type BondQuoteParams, COUNTRIES, type CPI, type CPIParams, CalendarEndpoints, type CashFlowStatement, type CashflowGrowth, CompanyEndpoints, type CompanyNotes, type CompanyProfile, CryptoEndpoints, type CryptoHistoricalParams, type CryptoList, type CryptoListParams, type CryptoQuote, DEFAULT_LIMIT, DEFAULT_TIMEOUT, type DateRangeParams, type DividendsCalendar, ERROR_MESSAGES, type ETFCountryWeighting, ETFEndpoints, type ETFHolder, type ETFHolding, type ETFHoldingDates, type ETFList, type ETFProfile, type ETFStockExposure, type ETFWeighting, EXCHANGES, type EarningsCalendar, type EarningsCallTranscript, type EarningsHistorical, type EarningsSurprises, EconomicEndpoints, type EconomicIndicator, type EconomicIndicatorParams, type EconomicsCalendar, type EnterpriseValue, type ErrorResponse, Exchange, type ExecutiveCompensation, FMP, FMPClient, type FMPConfig, type FederalFundsRate, type FederalFundsRateParams, FinancialEndpoints, type FinancialGrowth, type FinancialRatios, type FinancialStatementBase, type FinancialStatementsParams, ForexEndpoints, type ForexHistoricalParams, type ForexList, type ForexListParams, type ForexQuote, type ForexQuoteParams, type GDP, type GDPParams, type GrowthStatementBase, HTTP_STATUS, type HistoricalEmployeeCount, type HistoricalPriceData, type HistoricalPriceResponse, type HistoricalSharesFloat, type IPOCalendar, type IncomeGrowth, type IncomeStatement, type KeyMetrics, ListEndpoints, MAX_LIMIT, type MarketCap, MarketEndpoints, type MarketHoliday, type MarketHours, type MarketIndex, type MarketPerformance, type MarketSectorPerformance, MutualFundEndpoints, type MutualFundHoldersParams, type MutualFundHolding, type MutualFundListParams, type MutualFundProfile, type MutualFundProfileParams, type MutualFundQuote, type MutualFundQuoteParams, PERIODS, type PaginationParams, Period, type PeriodParams, type QueryParams, type Quote, SECTORS, type SharesFloat, type SplitsCalendar, type StockDividend, type StockDividendResponse, StockEndpoints, type StockList, type StockQuote, type StockSplit, type StockSplitResponse, type SuccessResponse, type SymbolParams, type TreasuryRate, type TreasuryRateParams, type Unemployment, type UnemploymentParams, formatCurrency, formatDate, formatLargeNumber, formatNumber, formatPercentage, formatReadableDate, formatTimestamp, formatVolume, validateApiKey, validateDate, validateLimit, validatePage, validatePeriod, validateSymbol };
1882
+ export { type APIResponse, type AvailableIndexesList, type BalanceSheet, type BalanceSheetGrowth, BondEndpoints, type BondHistoricalParams, type BondListParams, type BondQuote, type BondQuoteParams, COUNTRIES, type CPI, type CPIParams, CalendarEndpoints, type CashFlowStatement, type CashflowGrowth, CompanyEndpoints, type CompanyNotes, type CompanyProfile, CryptoEndpoints, type CryptoHistoricalParams, type CryptoList, type CryptoListParams, type CryptoQuote, DEFAULT_LIMIT, DEFAULT_TIMEOUT, type DateRangeParams, type DividendsCalendar, ERROR_MESSAGES, type ETFCountryWeighting, ETFEndpoints, type ETFHolder, type ETFHolding, type ETFHoldingDates, type ETFList, type ETFProfile, type ETFStockExposure, type ETFWeighting, EXCHANGES, type EarningsCalendar, type EarningsCallTranscript, type EarningsHistorical, type EarningsSurprises, EconomicEndpoints, type EconomicIndicator, type EconomicIndicatorParams, type EconomicsCalendar, type EnterpriseValue, type ErrorResponse, Exchange, type ExecutiveCompensation, FMP, FMPClient, type FMPConfig, type FederalFundsRate, type FederalFundsRateParams, FinancialEndpoints, type FinancialGrowth, type FinancialRatios, type FinancialStatementBase, type FinancialStatementsParams, ForexEndpoints, type ForexHistoricalParams, type ForexList, type ForexListParams, type ForexQuote, type ForexQuoteParams, type GDP, type GDPParams, type GrowthStatementBase, HTTP_STATUS, type HistoricalEmployeeCount, type HistoricalPriceData, type HistoricalPriceParams, type HistoricalPriceResponse, type HistoricalSharesFloat, type IPOCalendar, type IncomeGrowth, type IncomeStatement, type IntradayParams, type KeyMetrics, ListEndpoints, MAX_LIMIT, type MarketCap, MarketEndpoints, type MarketHoliday, type MarketHours, type MarketIndex, type MarketPerformance, type MarketSectorPerformance, MutualFundEndpoints, type MutualFundHoldersParams, type MutualFundHolding, type MutualFundListParams, type MutualFundProfile, type MutualFundProfileParams, type MutualFundQuote, type MutualFundQuoteParams, PERIODS, type PaginationParams, Period, type PeriodParams, type QueryParams, type Quote, QuoteEndpoints, type QuoteParams, SECTORS, type SharesFloat, type SplitsCalendar, type StockDividend, type StockDividendResponse, StockEndpoints, type StockList, type StockQuote, type StockSplit, type StockSplitResponse, type SuccessResponse, type SymbolParams, type TreasuryRate, type TreasuryRateParams, type Unemployment, type UnemploymentParams, formatCurrency, formatDate, formatLargeNumber, formatNumber, formatPercentage, formatReadableDate, formatTimestamp, formatVolume, validateApiKey, validateDate, validateLimit, validatePage, validatePeriod, validateSymbol };