fmp-node-api 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -14,13 +14,6 @@ interface ErrorResponse extends APIResponse<never> {
14
14
  error: string;
15
15
  status: number;
16
16
  }
17
- type UnwrapSingle<T> = T extends [infer U] ? U : T extends (infer U)[] ? U | U[] : T;
18
- interface UnwrappedAPIResponse<T = unknown> {
19
- success: boolean;
20
- data?: UnwrapSingle<T>;
21
- error?: string;
22
- status?: number;
23
- }
24
17
  interface FMPConfig {
25
18
  apiKey: string;
26
19
  baseURL?: string;
@@ -130,6 +123,10 @@ interface StockSplit {
130
123
  numerator: number;
131
124
  denominator: number;
132
125
  }
126
+ interface StockSplitResponse {
127
+ symbol: string;
128
+ historical: StockSplit[];
129
+ }
133
130
  interface StockDividend {
134
131
  date: string;
135
132
  label: string;
@@ -139,16 +136,15 @@ interface StockDividend {
139
136
  paymentDate: string;
140
137
  declarationDate: string;
141
138
  }
139
+ interface StockDividendResponse {
140
+ symbol: string;
141
+ historical: StockDividend[];
142
+ }
142
143
  interface MarketCap {
143
144
  symbol: string;
144
145
  date: string;
145
146
  marketCap: number;
146
147
  }
147
- interface StockHistoricalPriceData extends HistoricalPriceData {
148
- }
149
- interface StockHistoricalPriceResponse extends HistoricalPriceResponse {
150
- historical: StockHistoricalPriceData[];
151
- }
152
148
 
153
149
  interface FinancialStatementsParams extends SymbolParams, PeriodParams {
154
150
  limit?: number;
@@ -547,6 +543,23 @@ interface FinancialGrowth extends GrowthStatementBase {
547
543
  rdexpenseGrowth: number;
548
544
  sgaexpensesGrowth: number;
549
545
  }
546
+ interface EarningsHistorical {
547
+ date: string;
548
+ symbol: string;
549
+ eps: number;
550
+ epsEstimated: number;
551
+ time: string;
552
+ revenue: number;
553
+ revenueEstimated: number;
554
+ updatedFromDate: string;
555
+ fiscalDateEnding: string;
556
+ }
557
+ interface EarningsSurprises {
558
+ date: string;
559
+ symbol: string;
560
+ actualEarningResult: number;
561
+ estimatedEarning: number;
562
+ }
550
563
 
551
564
  interface ForexQuoteParams extends SymbolParams {
552
565
  }
@@ -579,8 +592,6 @@ interface ForexQuote {
579
592
  timestamp: number;
580
593
  }
581
594
 
582
- interface CryptoQuoteParams extends SymbolParams {
583
- }
584
595
  interface CryptoHistoricalParams extends SymbolParams, DateRangeParams {
585
596
  timeseries?: number;
586
597
  }
@@ -588,13 +599,14 @@ interface CryptoListParams {
588
599
  }
589
600
  interface CryptoQuote {
590
601
  symbol: string;
602
+ name: string;
591
603
  price: number;
592
604
  changesPercentage: number;
593
605
  change: number;
594
606
  dayLow: number;
595
607
  dayHigh: number;
596
- yearLow: number;
597
608
  yearHigh: number;
609
+ yearLow: number;
598
610
  marketCap: number;
599
611
  priceAvg50: number;
600
612
  priceAvg200: number;
@@ -603,86 +615,86 @@ interface CryptoQuote {
603
615
  exchange: string;
604
616
  open: number;
605
617
  previousClose: number;
606
- eps: number;
607
- pe: number;
608
- earningsAnnouncement: string;
618
+ eps: number | null;
619
+ pe: number | null;
620
+ earningsAnnouncement: string | null;
609
621
  sharesOutstanding: number;
610
622
  timestamp: number;
611
623
  }
612
624
 
613
- interface ETFQuoteParams extends SymbolParams {
614
- }
615
- interface ETFProfileParams extends SymbolParams {
616
- }
617
- interface ETFHoldersParams extends SymbolParams, PaginationParams {
618
- }
619
- interface ETFListParams {
625
+ interface ETFHoldingDates {
626
+ date: string;
620
627
  }
621
- interface ETFQuote {
628
+ interface ETFHolding {
629
+ cik: string;
630
+ acceptanceTime: string;
631
+ date: string;
622
632
  symbol: string;
623
- price: number;
624
- changesPercentage: number;
625
- change: number;
626
- dayLow: number;
627
- dayHigh: number;
628
- yearLow: number;
629
- yearHigh: number;
630
- marketCap: number;
631
- priceAvg50: number;
632
- priceAvg200: number;
633
- volume: number;
634
- avgVolume: number;
635
- exchange: string;
636
- open: number;
637
- previousClose: number;
638
- eps: number;
639
- pe: number;
640
- earningsAnnouncement: string;
641
- sharesOutstanding: number;
642
- timestamp: number;
633
+ name: string;
634
+ lei: string;
635
+ title: string;
636
+ cusip: string;
637
+ isin: string;
638
+ balance: number;
639
+ units: string;
640
+ cur_cd: string;
641
+ valUsd: number;
642
+ pctVal: number;
643
+ payoffProfile: string;
644
+ assetCat: string;
645
+ issuerCat: string;
646
+ invCountry: string;
647
+ isRestrictedSec: string;
648
+ fairValLevel: string;
649
+ isCashCollateral: string;
650
+ isNonCashCollateral: string;
651
+ isLoanByFund: string;
652
+ }
653
+ interface ETFHolder {
654
+ asset: string;
655
+ name: string;
656
+ isin: string;
657
+ cusip: string;
658
+ sharesNumber: number;
659
+ weightPercentage: number;
660
+ marketValue: number;
661
+ updated: string;
643
662
  }
644
663
  interface ETFProfile {
645
664
  symbol: string;
646
- price: number;
647
- beta: number;
648
- volAvg: number;
649
- marketCap: number;
650
- lastDiv: number;
651
- range: string;
652
- changes: number;
653
- companyName: string;
654
- currency: string;
655
- cik: string;
656
- isin: string;
665
+ assetClass: string;
666
+ aum: number;
667
+ avgVolume: number;
657
668
  cusip: string;
658
- exchange: string;
659
- exchangeShortName: string;
660
- industry: string;
661
- website: string;
662
669
  description: string;
663
- ceo: string;
670
+ domicile: string;
671
+ etfCompany: string;
672
+ expenseRatio: number;
673
+ inceptionDate: string;
674
+ isin: string;
675
+ name: string;
676
+ nav: number;
677
+ navCurrency: string;
678
+ sectorsList: {
679
+ exposure: string;
680
+ industry: string;
681
+ }[];
682
+ website: string;
683
+ holdingsCount: number;
684
+ }
685
+ interface ETFWeighting {
664
686
  sector: string;
687
+ weightPercentage: string;
688
+ }
689
+ interface ETFCountryWeighting {
665
690
  country: string;
666
- fullTimeEmployees: string;
667
- phone: string;
668
- address: string;
669
- city: string;
670
- state: string;
671
- zip: string;
672
- dcfDiff: number;
673
- dcf: number;
674
- image: string;
675
- ipoDate: string;
676
- defaultImage: boolean;
677
- isEtf: boolean;
678
- isActivelyTrading: boolean;
679
- isAdr: boolean;
680
- isFund: boolean;
691
+ weightPercentage: string;
681
692
  }
682
- interface ETFHolding {
683
- asset: string;
684
- weightPercent: number;
685
- shares: number;
693
+ interface ETFStockExposure {
694
+ etfSymbol: string;
695
+ assetExposure: string;
696
+ sharesNumber: number;
697
+ weightPercentage: number;
686
698
  marketValue: number;
687
699
  }
688
700
 
@@ -849,56 +861,36 @@ interface Unemployment {
849
861
  changePercent: number;
850
862
  }
851
863
 
852
- interface MarketHoursParams {
853
- }
854
- interface MarketPerformanceParams {
855
- }
856
- interface MarketGainersParams {
857
- }
858
- interface MarketLosersParams {
859
- }
860
- interface MarketMostActiveParams {
861
- }
862
- interface MarketSectorPerformanceParams {
863
- }
864
- interface MarketIndexParams extends DateRangeParams {
865
- }
866
864
  interface MarketHours {
867
865
  stockExchangeName: string;
868
866
  stockMarketHours: {
869
867
  openingHour: string;
870
868
  closingHour: string;
871
- gmtOffset: number;
872
869
  };
873
- holidays: string[];
870
+ stockMarketHolidays: MarketHoliday[];
874
871
  isTheStockMarketOpen: boolean;
875
872
  isTheEuronextMarketOpen: boolean;
876
873
  isTheForexMarketOpen: boolean;
877
874
  isTheCryptoMarketOpen: boolean;
878
875
  }
876
+ interface MarketHoliday {
877
+ year: number;
878
+ 'Martin Luther King, Jr. Day': string;
879
+ "Presidents' Day": string;
880
+ 'Good Friday': string;
881
+ 'Memorial Day': string;
882
+ Juneteenth: string;
883
+ 'Independence Day': string;
884
+ 'Labor Day': string;
885
+ 'Thanksgiving Day': string;
886
+ Christmas: string;
887
+ }
879
888
  interface MarketPerformance {
880
- ticker: string;
881
- companyName: string;
889
+ symbol: string;
890
+ name: string;
891
+ change: number;
882
892
  price: number;
883
893
  changesPercentage: number;
884
- changes: number;
885
- dayLow: number;
886
- dayHigh: number;
887
- yearLow: number;
888
- yearHigh: number;
889
- marketCap: number;
890
- priceAvg50: number;
891
- priceAvg200: number;
892
- volume: number;
893
- avgVolume: number;
894
- exchange: string;
895
- open: number;
896
- previousClose: number;
897
- eps: number;
898
- pe: number;
899
- earningsAnnouncement: string;
900
- sharesOutstanding: number;
901
- timestamp: number;
902
894
  }
903
895
  interface MarketSectorPerformance {
904
896
  sector: string;
@@ -906,27 +898,27 @@ interface MarketSectorPerformance {
906
898
  }
907
899
  interface MarketIndex {
908
900
  symbol: string;
909
- name: string;
910
901
  price: number;
911
- changesPercentage: number;
902
+ extendedPrice: number | null;
912
903
  change: number;
913
- dayLow: number;
914
904
  dayHigh: number;
915
- yearLow: number;
916
- yearHigh: number;
917
- marketCap: number;
918
- priceAvg50: number;
919
- priceAvg200: number;
920
- volume: number;
921
- avgVolume: number;
922
- exchange: string;
923
- open: number;
905
+ dayLow: number;
924
906
  previousClose: number;
925
- eps: number;
926
- pe: number;
927
- earningsAnnouncement: string;
928
- sharesOutstanding: number;
929
- timestamp: number;
907
+ volume: number | null;
908
+ open: number;
909
+ close: number | null;
910
+ lastTradeTime: string;
911
+ lastExtendedTradeTime: string | null;
912
+ updatedAt: string;
913
+ createdAt: string;
914
+ type: string;
915
+ name: string;
916
+ range: string;
917
+ yearHigh: number;
918
+ yearLow: number;
919
+ priceAvg50: number | null;
920
+ priceAvg200: number | null;
921
+ changesPercentage: number;
930
922
  }
931
923
 
932
924
  interface EarningsCalendar {
@@ -985,8 +977,9 @@ interface StockList {
985
977
  symbol: string;
986
978
  exchange: string;
987
979
  exchangeShortName: string;
988
- price: string;
980
+ price: number;
989
981
  name: string;
982
+ type: string;
990
983
  }
991
984
  interface ETFList {
992
985
  symbol: string;
@@ -1120,7 +1113,8 @@ declare class FMPClient {
1120
1113
  private apiKey;
1121
1114
  constructor(config: FMPConfig);
1122
1115
  private createClient;
1123
- get<T>(endpoint: string, version?: 'v3' | 'v4' | 'stable', params?: Record<string, any>): Promise<UnwrappedAPIResponse<T>>;
1116
+ get<T>(endpoint: string, version?: 'v3' | 'v4' | 'stable', params?: Record<string, any>): Promise<APIResponse<T>>;
1117
+ getSingle<T>(endpoint: string, version?: 'v3' | 'v4' | 'stable', params?: Record<string, any>): Promise<APIResponse<T>>;
1124
1118
  private getClientForVersion;
1125
1119
  }
1126
1120
 
@@ -1135,7 +1129,7 @@ declare class StockEndpoints {
1135
1129
  */
1136
1130
  getQuote({ symbol }: {
1137
1131
  symbol: string;
1138
- }): Promise<UnwrappedAPIResponse<StockQuote | null>>;
1132
+ }): Promise<APIResponse<StockQuote | null>>;
1139
1133
  /**
1140
1134
  * Get historical stock prices
1141
1135
  * https://site.financialmodelingprep.com/developer/docs#daily-chart-charts
@@ -1148,25 +1142,25 @@ declare class StockEndpoints {
1148
1142
  symbol: string;
1149
1143
  from?: string;
1150
1144
  to?: string;
1151
- }): Promise<UnwrappedAPIResponse<StockHistoricalPriceResponse>>;
1145
+ }): Promise<APIResponse<HistoricalPriceResponse>>;
1152
1146
  /**
1153
1147
  * Get market cap
1154
1148
  * https://site.financialmodelingprep.com/developer/docs#market-cap-company-information
1155
1149
  * @param symbol - The stock symbol to get the market cap for
1156
1150
  * @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.
1157
1151
  */
1158
- getMarketCap({ symbol, }: {
1152
+ getMarketCap({ symbol }: {
1159
1153
  symbol: string;
1160
- }): Promise<UnwrappedAPIResponse<MarketCap | null>>;
1154
+ }): Promise<APIResponse<MarketCap | null>>;
1161
1155
  /**
1162
1156
  * Get stock splits
1163
1157
  * https://site.financialmodelingprep.com/developer/docs#splits-historical-splits
1164
1158
  * @param symbol - The stock symbol to get the splits for
1165
1159
  * @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.
1166
1160
  */
1167
- getStockSplits({ symbol, }: {
1161
+ getStockSplits({ symbol }: {
1168
1162
  symbol: string;
1169
- }): Promise<UnwrappedAPIResponse<StockSplit[]>>;
1163
+ }): Promise<APIResponse<StockSplitResponse>>;
1170
1164
  /**
1171
1165
  * Get dividend history
1172
1166
  * https://site.financialmodelingprep.com/developer/docs#dividends-historical-dividends
@@ -1175,7 +1169,7 @@ declare class StockEndpoints {
1175
1169
  */
1176
1170
  getDividendHistory({ symbol, }: {
1177
1171
  symbol: string;
1178
- }): Promise<UnwrappedAPIResponse<StockDividend[]>>;
1172
+ }): Promise<APIResponse<StockDividendResponse>>;
1179
1173
  }
1180
1174
 
1181
1175
  declare class FinancialEndpoints {
@@ -1189,25 +1183,25 @@ declare class FinancialEndpoints {
1189
1183
  * @param limit - The number of periods to get
1190
1184
  * @returns FMP's Income Statement API provides access to real-time income statement data for a wide range of companies, including public companies, private companies, and ETFs. This data can be used to track a company's profitability over time, to compare a company to its competitors, and to identify trends in a company's business.
1191
1185
  */
1192
- getIncomeStatement({ symbol, period, limit, }: FinancialStatementsParams): Promise<UnwrappedAPIResponse<IncomeStatement[]>>;
1186
+ getIncomeStatement({ symbol, period, limit, }: FinancialStatementsParams): Promise<APIResponse<IncomeStatement[]>>;
1193
1187
  /**
1194
1188
  * Get balance sheet
1195
1189
  * https://site.financialmodelingprep.com/developer/docs#balance-sheet-statements-financial-statements
1196
1190
  * @param symbol - The stock symbol to get the balance sheet for
1197
1191
  * @param period - The period to get the balance sheet for (annual or quarter)
1198
1192
  * @param limit - The number of periods to get
1199
- * @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.
1193
+ * @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.
1200
1194
  */
1201
- getBalanceSheet({ symbol, period, limit, }: FinancialStatementsParams): Promise<UnwrappedAPIResponse<BalanceSheet[]>>;
1195
+ getBalanceSheet({ symbol, period, limit, }: FinancialStatementsParams): Promise<APIResponse<BalanceSheet[]>>;
1202
1196
  /**
1203
1197
  * Get cash flow statement
1204
1198
  * https://site.financialmodelingprep.com/developer/docs#cashflow-statements-financial-statements
1205
1199
  * @param symbol - The stock symbol to get the cash flow statement for
1206
1200
  * @param period - The period to get the cash flow statement for (annual or quarter)
1207
1201
  * @param limit - The number of periods to get
1208
- * @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.
1202
+ * @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.
1209
1203
  */
1210
- getCashFlowStatement({ symbol, period, limit, }: FinancialStatementsParams): Promise<UnwrappedAPIResponse<CashFlowStatement[]>>;
1204
+ getCashFlowStatement({ symbol, period, limit, }: FinancialStatementsParams): Promise<APIResponse<CashFlowStatement[]>>;
1211
1205
  /**
1212
1206
  * Get key metrics
1213
1207
  * https://site.financialmodelingprep.com/developer/docs#key-metrics-statement-analysis
@@ -1216,7 +1210,7 @@ declare class FinancialEndpoints {
1216
1210
  * @param limit - The number of periods to get
1217
1211
  * @returns Get key financial metrics for a company, including revenue, net income, and price-to-earnings ratio (P/E ratio). Assess a company's financial performance and compare it to its competitors.
1218
1212
  */
1219
- getKeyMetrics({ symbol, period, limit, }: FinancialStatementsParams): Promise<UnwrappedAPIResponse<KeyMetrics[]>>;
1213
+ getKeyMetrics({ symbol, period, limit, }: FinancialStatementsParams): Promise<APIResponse<KeyMetrics[]>>;
1220
1214
  /**
1221
1215
  * Get financial ratios
1222
1216
  * https://site.financialmodelingprep.com/developer/docs#ratios-statement-analysis
@@ -1225,7 +1219,7 @@ declare class FinancialEndpoints {
1225
1219
  * @param limit - The number of periods to get
1226
1220
  * @returns Get financial ratios for a company, such as the P/B ratio and the ROE. Assess a company's financial health and compare it to its competitors.
1227
1221
  */
1228
- getFinancialRatios({ symbol, period, limit, }: FinancialStatementsParams): Promise<UnwrappedAPIResponse<FinancialRatios[]>>;
1222
+ getFinancialRatios({ symbol, period, limit, }: FinancialStatementsParams): Promise<APIResponse<FinancialRatios[]>>;
1229
1223
  /**
1230
1224
  * Get enterprise value
1231
1225
  * https://site.financialmodelingprep.com/developer/docs#enterprise-values-statement-analysis
@@ -1234,7 +1228,7 @@ declare class FinancialEndpoints {
1234
1228
  * @param limit - The number of periods to get
1235
1229
  * @returns Get the enterprise value of a company, which is the total value of a company, including its equity and debt. Assess a company's overall value and compare it to its peers.
1236
1230
  */
1237
- getEnterpriseValue({ symbol, period, limit, }: FinancialStatementsParams): Promise<UnwrappedAPIResponse<EnterpriseValue[]>>;
1231
+ getEnterpriseValue({ symbol, period, limit, }: FinancialStatementsParams): Promise<APIResponse<EnterpriseValue[]>>;
1238
1232
  /**
1239
1233
  * Get cashflow growth
1240
1234
  * https://site.financialmodelingprep.com/developer/docs#cashflow-growth-statement-analysis
@@ -1243,7 +1237,7 @@ declare class FinancialEndpoints {
1243
1237
  * @param limit - The number of periods to get
1244
1238
  * @returns Get the cash flow growth rate for a company. Measure how quickly a company's cash flow is growing.
1245
1239
  */
1246
- getCashflowGrowth({ symbol, period, limit, }: FinancialStatementsParams): Promise<UnwrappedAPIResponse<CashflowGrowth[]>>;
1240
+ getCashflowGrowth({ symbol, period, limit, }: FinancialStatementsParams): Promise<APIResponse<CashflowGrowth[]>>;
1247
1241
  /**
1248
1242
  * Get income growth
1249
1243
  * https://site.financialmodelingprep.com/developer/docs#income-growth-statement-analysis
@@ -1252,7 +1246,7 @@ declare class FinancialEndpoints {
1252
1246
  * @param limit - The number of periods to get
1253
1247
  * @returns Get the income growth rate for a company. Measure how quickly a company's income is growing.
1254
1248
  */
1255
- getIncomeGrowth({ symbol, period, limit, }: FinancialStatementsParams): Promise<UnwrappedAPIResponse<IncomeGrowth[]>>;
1249
+ getIncomeGrowth({ symbol, period, limit, }: FinancialStatementsParams): Promise<APIResponse<IncomeGrowth[]>>;
1256
1250
  /**
1257
1251
  * Get balance sheet growth
1258
1252
  * https://site.financialmodelingprep.com/developer/docs#balance-sheet-growth-statement-analysis
@@ -1261,7 +1255,7 @@ declare class FinancialEndpoints {
1261
1255
  * @param limit - The number of periods to get
1262
1256
  * @returns Get the balance sheet growth rate for a company. Measure how quickly a company's assets and liabilities are growing.
1263
1257
  */
1264
- getBalanceSheetGrowth({ symbol, period, limit, }: FinancialStatementsParams): Promise<UnwrappedAPIResponse<BalanceSheetGrowth[]>>;
1258
+ getBalanceSheetGrowth({ symbol, period, limit, }: FinancialStatementsParams): Promise<APIResponse<BalanceSheetGrowth[]>>;
1265
1259
  /**
1266
1260
  * Get financial growth
1267
1261
  * https://site.financialmodelingprep.com/developer/docs#financial-growth-statement-analysis
@@ -1270,7 +1264,23 @@ declare class FinancialEndpoints {
1270
1264
  * @param limit - The number of periods to get
1271
1265
  * @returns Financial Growth Get the financial growth rate for a company. Measure how quickly a company's overall financial performance is improving.
1272
1266
  */
1273
- getFinancialGrowth({ symbol, period, limit, }: FinancialStatementsParams): Promise<UnwrappedAPIResponse<FinancialGrowth[]>>;
1267
+ getFinancialGrowth({ symbol, period, limit, }: FinancialStatementsParams): Promise<APIResponse<FinancialGrowth[]>>;
1268
+ /**
1269
+ * Get earnings historical
1270
+ * https://site.financialmodelingprep.com/developer/docs#earnings-historical-earnings
1271
+ * @param symbol - The stock symbol to get the earnings historical for
1272
+ * @param limit - The number of periods to get
1273
+ * @returns A list of historical & upcoming earnings announcements for a specific company, including the date, estimated EPS, and actual EPS.
1274
+ */
1275
+ getEarningsHistorical({ symbol, limit, }: FinancialStatementsParams): Promise<APIResponse<EarningsHistorical[]>>;
1276
+ /**
1277
+ * Get earnings surprises
1278
+ * https://site.financialmodelingprep.com/developer/docs#earnings-surprises-earnings
1279
+ * @param symbol - The stock symbol to get the earnings surprises for
1280
+ * @param limit - The number of periods to get
1281
+ * @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.
1282
+ */
1283
+ getEarningsSurprises({ symbol, }: FinancialStatementsParams): Promise<APIResponse<EarningsSurprises[]>>;
1274
1284
  }
1275
1285
 
1276
1286
  declare class ForexEndpoints {
@@ -1278,24 +1288,33 @@ declare class ForexEndpoints {
1278
1288
  constructor(client: FMPClient);
1279
1289
  /**
1280
1290
  * Get forex quote
1291
+ * @param params - Parameters for the forex quote request
1292
+ * @returns Forex quote data
1281
1293
  */
1282
- getQuote(params: ForexQuoteParams): Promise<UnwrappedAPIResponse<ForexQuote[]>>;
1294
+ getQuote(params: ForexQuoteParams): Promise<APIResponse<ForexQuote[]>>;
1283
1295
  /**
1284
1296
  * Get historical forex prices
1297
+ * @param symbol - The forex symbol to get the historical prices for
1298
+ * @param from - The start date to get the historical prices for
1299
+ * @param to - The end date to get the historical prices for
1300
+ * @returns Historical forex price data
1285
1301
  */
1286
1302
  getHistoricalPrice({ symbol, from, to, }: {
1287
1303
  symbol: string;
1288
1304
  from?: string;
1289
1305
  to?: string;
1290
- }): Promise<UnwrappedAPIResponse<HistoricalPriceResponse>>;
1306
+ }): Promise<APIResponse<HistoricalPriceResponse>>;
1291
1307
  /**
1292
1308
  * Get forex rates for a specific base currency
1309
+ * @param baseCurrency - The base currency to get forex rates for
1310
+ * @returns Forex rates data
1293
1311
  */
1294
- getForexRates(baseCurrency?: string): Promise<UnwrappedAPIResponse<Record<string, number>>>;
1312
+ getForexRates(baseCurrency?: string): Promise<APIResponse<Record<string, number>>>;
1295
1313
  /**
1296
1314
  * Get all forex rates
1315
+ * @returns All forex rates data
1297
1316
  */
1298
- getAllForexRates(): Promise<UnwrappedAPIResponse<Record<string, Record<string, number>>>>;
1317
+ getAllForexRates(): Promise<APIResponse<Record<string, Record<string, number>>>>;
1299
1318
  }
1300
1319
 
1301
1320
  declare class CryptoEndpoints {
@@ -1303,33 +1322,84 @@ declare class CryptoEndpoints {
1303
1322
  constructor(client: FMPClient);
1304
1323
  /**
1305
1324
  * Get crypto quote
1325
+ * https://site.financialmodelingprep.com/developer/docs#full-quote-crypto
1326
+ * @param symbol - The crypto symbol to get the quote for
1327
+ * @returns Crypto quote data
1306
1328
  */
1307
- getQuote(params: CryptoQuoteParams): Promise<UnwrappedAPIResponse<CryptoQuote[]>>;
1329
+ getQuote({ symbol }: {
1330
+ symbol: string;
1331
+ }): Promise<APIResponse<CryptoQuote | null>>;
1308
1332
  /**
1309
1333
  * Get historical crypto prices
1334
+ * https://site.financialmodelingprep.com/developer/docs#cryptocurrency-daily-crypto
1335
+ * @param symbol - The crypto symbol to get the historical prices for
1336
+ * @param from - The start date to get the historical prices for
1337
+ * @param to - The end date to get the historical prices for
1338
+ * @returns Provides daily price data for all cryptocurrencies that are traded on exchanges around the world.
1310
1339
  */
1311
1340
  getHistoricalPrice({ symbol, from, to, }: {
1312
1341
  symbol: string;
1313
1342
  from?: string;
1314
1343
  to?: string;
1315
- }): Promise<UnwrappedAPIResponse<HistoricalPriceResponse>>;
1344
+ }): Promise<APIResponse<HistoricalPriceResponse>>;
1316
1345
  }
1317
1346
 
1318
1347
  declare class ETFEndpoints {
1319
1348
  private client;
1320
1349
  constructor(client: FMPClient);
1321
1350
  /**
1322
- * Get ETF quote
1351
+ * Get ETF holding dates
1352
+ * https://site.financialmodelingprep.com/developer/docs#etf-holding-dates-etf-holdings
1353
+ * @param symbol - The symbol of the ETF to get the holding dates for
1354
+ * @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.
1323
1355
  */
1324
- getQuote(params: ETFQuoteParams): Promise<UnwrappedAPIResponse<ETFQuote[]>>;
1356
+ getHoldingDates({ symbol }: SymbolParams): Promise<APIResponse<ETFHoldingDates[]>>;
1357
+ /**
1358
+ * Get ETF holdings
1359
+ * https://site.financialmodelingprep.com/developer/docs#etf-holdings-etf-holdings
1360
+ * @param symbol - The symbol of the ETF to get the holdings for
1361
+ * @param date - The date to get the holdings for
1362
+ * @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.
1363
+ */
1364
+ getHoldings({ symbol, date, }: {
1365
+ symbol: string;
1366
+ date: string;
1367
+ }): Promise<APIResponse<ETFHolding[]>>;
1368
+ /**
1369
+ * Get ETF holder
1370
+ * https://site.financialmodelingprep.com/developer/docs#etf-holder-etf-holdings
1371
+ * @param symbol - The symbol of the ETF to get the holder for
1372
+ * @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.
1373
+ */
1374
+ getHolder({ symbol }: SymbolParams): Promise<APIResponse<ETFHolder[]>>;
1325
1375
  /**
1326
1376
  * Get ETF profile
1377
+ * https://site.financialmodelingprep.com/developer/docs#etf-information-etf-holdings
1378
+ * @param symbol - The symbol of the ETF to get the profile for
1379
+ * @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.
1327
1380
  */
1328
- getProfile(params: ETFProfileParams): Promise<UnwrappedAPIResponse<ETFProfile[]>>;
1381
+ getProfile({ symbol }: SymbolParams): Promise<APIResponse<ETFProfile | null>>;
1329
1382
  /**
1330
- * Get ETF holdings
1383
+ * Get ETF sector weighting
1384
+ * https://site.financialmodelingprep.com/developer/docs#etf-sector-weighting-etf-holdings
1385
+ * @param symbol - The symbol of the ETF to get the sector exposure for
1386
+ * @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.
1331
1387
  */
1332
- getHoldings(params: ETFHoldersParams): Promise<UnwrappedAPIResponse<ETFHolding[]>>;
1388
+ getSectorWeighting({ symbol }: SymbolParams): Promise<APIResponse<ETFWeighting[]>>;
1389
+ /**
1390
+ * Get ETF country weighting
1391
+ * https://site.financialmodelingprep.com/developer/docs#etf-country-weighting-etf-holdings
1392
+ * @param symbol - The symbol of the ETF to get the country weighting for
1393
+ * @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.
1394
+ */
1395
+ getCountryWeighting({ symbol }: SymbolParams): Promise<APIResponse<ETFCountryWeighting[]>>;
1396
+ /**
1397
+ * Get ETF Stock exposure
1398
+ * https://site.financialmodelingprep.com/developer/docs#etf-sector-exposure-etf-holdings
1399
+ * @param symbol - The symbol of the ETF to get the stock exposure for
1400
+ * @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.
1401
+ */
1402
+ getStockExposure({ symbol }: SymbolParams): Promise<APIResponse<ETFStockExposure[]>>;
1333
1403
  }
1334
1404
 
1335
1405
  declare class MutualFundEndpoints {
@@ -1337,16 +1407,18 @@ declare class MutualFundEndpoints {
1337
1407
  constructor(client: FMPClient);
1338
1408
  /**
1339
1409
  * Get mutual fund quote
1410
+ * @param params - Parameters for the mutual fund quote request
1411
+ * @returns Mutual fund quote data
1340
1412
  */
1341
- getQuote(params: MutualFundQuoteParams): Promise<UnwrappedAPIResponse<MutualFundQuote[]>>;
1413
+ getQuote(params: MutualFundQuoteParams): Promise<APIResponse<MutualFundQuote[]>>;
1342
1414
  /**
1343
1415
  * Get mutual fund profile
1344
1416
  */
1345
- getProfile(params: MutualFundProfileParams): Promise<UnwrappedAPIResponse<MutualFundProfile[]>>;
1417
+ getProfile(params: MutualFundProfileParams): Promise<APIResponse<MutualFundProfile[]>>;
1346
1418
  /**
1347
1419
  * Get mutual fund holdings
1348
1420
  */
1349
- getHoldings(params: MutualFundHoldersParams): Promise<UnwrappedAPIResponse<MutualFundHolding[]>>;
1421
+ getHoldings(params: MutualFundHoldersParams): Promise<APIResponse<MutualFundHolding[]>>;
1350
1422
  }
1351
1423
 
1352
1424
  declare class BondEndpoints {
@@ -1354,16 +1426,22 @@ declare class BondEndpoints {
1354
1426
  constructor(client: FMPClient);
1355
1427
  /**
1356
1428
  * Get bond quote
1429
+ * @param params - Parameters for the bond quote request
1430
+ * @returns Bond quote data
1357
1431
  */
1358
- getQuote(params: BondQuoteParams): Promise<UnwrappedAPIResponse<BondQuote[]>>;
1432
+ getQuote(params: BondQuoteParams): Promise<APIResponse<BondQuote[]>>;
1359
1433
  /**
1360
1434
  * Get historical bond prices
1435
+ * @param symbol - The bond symbol to get the historical prices for
1436
+ * @param from - The start date to get the historical prices for
1437
+ * @param to - The end date to get the historical prices for
1438
+ * @returns Historical bond price data
1361
1439
  */
1362
1440
  getHistoricalPrice({ symbol, from, to, }: {
1363
1441
  symbol: string;
1364
1442
  from?: string;
1365
1443
  to?: string;
1366
- }): Promise<UnwrappedAPIResponse<HistoricalPriceResponse>>;
1444
+ }): Promise<APIResponse<HistoricalPriceResponse>>;
1367
1445
  }
1368
1446
 
1369
1447
  declare class EconomicEndpoints {
@@ -1372,23 +1450,23 @@ declare class EconomicEndpoints {
1372
1450
  /**
1373
1451
  * Get treasury rates
1374
1452
  */
1375
- getTreasuryRates(params?: TreasuryRateParams): Promise<UnwrappedAPIResponse<TreasuryRate[]>>;
1453
+ getTreasuryRates(params?: TreasuryRateParams): Promise<APIResponse<TreasuryRate[]>>;
1376
1454
  /**
1377
1455
  * Get federal funds rate
1378
1456
  */
1379
- getFederalFundsRate(params?: FederalFundsRateParams): Promise<UnwrappedAPIResponse<FederalFundsRate[]>>;
1457
+ getFederalFundsRate(params?: FederalFundsRateParams): Promise<APIResponse<FederalFundsRate[]>>;
1380
1458
  /**
1381
1459
  * Get CPI data
1382
1460
  */
1383
- getCPI(params?: CPIParams): Promise<UnwrappedAPIResponse<CPI[]>>;
1461
+ getCPI(params?: CPIParams): Promise<APIResponse<CPI[]>>;
1384
1462
  /**
1385
1463
  * Get GDP data
1386
1464
  */
1387
- getGDP(params?: GDPParams): Promise<UnwrappedAPIResponse<GDP[]>>;
1465
+ getGDP(params?: GDPParams): Promise<APIResponse<GDP[]>>;
1388
1466
  /**
1389
1467
  * Get unemployment data
1390
1468
  */
1391
- getUnemployment(params?: UnemploymentParams): Promise<UnwrappedAPIResponse<Unemployment[]>>;
1469
+ getUnemployment(params?: UnemploymentParams): Promise<APIResponse<Unemployment[]>>;
1392
1470
  }
1393
1471
 
1394
1472
  declare class MarketEndpoints {
@@ -1397,31 +1475,39 @@ declare class MarketEndpoints {
1397
1475
  /**
1398
1476
  * Get market hours
1399
1477
  */
1400
- getMarketHours(): Promise<UnwrappedAPIResponse<MarketHours>>;
1478
+ getMarketHours(): Promise<APIResponse<MarketHours>>;
1401
1479
  /**
1402
1480
  * Get market performance
1403
1481
  */
1404
- getMarketPerformance(): Promise<UnwrappedAPIResponse<MarketPerformance[]>>;
1482
+ getMarketPerformance(): Promise<APIResponse<MarketPerformance[]>>;
1405
1483
  /**
1406
1484
  * Get top gainers
1485
+ * https://site.financialmodelingprep.com/developer/docs#market-biggest-gainers-market-overview
1486
+ * @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.
1407
1487
  */
1408
- getGainers(): Promise<UnwrappedAPIResponse<MarketPerformance[]>>;
1488
+ getGainers(): Promise<APIResponse<MarketPerformance[]>>;
1409
1489
  /**
1410
1490
  * Get top losers
1491
+ * https://site.financialmodelingprep.com/developer/docs#market-biggest-losers-market-overview
1492
+ * @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.
1411
1493
  */
1412
- getLosers(): Promise<UnwrappedAPIResponse<MarketPerformance[]>>;
1494
+ getLosers(): Promise<APIResponse<MarketPerformance[]>>;
1413
1495
  /**
1414
1496
  * Get most active stocks
1415
1497
  */
1416
- getMostActive(): Promise<UnwrappedAPIResponse<MarketPerformance[]>>;
1498
+ getMostActive(): Promise<APIResponse<MarketPerformance[]>>;
1417
1499
  /**
1418
1500
  * Get sector performance
1501
+ * https://site.financialmodelingprep.com/developer/docs#sector-performance-market-overview
1502
+ * @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.
1419
1503
  */
1420
- getSectorPerformance(): Promise<UnwrappedAPIResponse<MarketSectorPerformance[]>>;
1504
+ getSectorPerformance(): Promise<APIResponse<MarketSectorPerformance[]>>;
1421
1505
  /**
1422
1506
  * Get market indices
1507
+ * https://site.financialmodelingprep.com/developer/docs#market-index-market-overview
1508
+ * @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.
1423
1509
  */
1424
- getMarketIndex(params?: MarketIndexParams): Promise<UnwrappedAPIResponse<MarketIndex[]>>;
1510
+ getMarketIndex(): Promise<APIResponse<MarketIndex[]>>;
1425
1511
  }
1426
1512
 
1427
1513
  declare class ListEndpoints {
@@ -1432,31 +1518,31 @@ declare class ListEndpoints {
1432
1518
  * https://site.financialmodelingprep.com/developer/docs#symbol-list-stock-list
1433
1519
  * @returns The stock list
1434
1520
  */
1435
- getStockList(): Promise<UnwrappedAPIResponse<StockList[]>>;
1521
+ getStockList(): Promise<APIResponse<StockList[]>>;
1436
1522
  /**
1437
1523
  * Get ETF list
1438
1524
  * https://site.financialmodelingprep.com/developer/docs#exchange-traded-fund-search-stock-list
1439
1525
  * @returns The ETF list
1440
1526
  */
1441
- getETFList(): Promise<UnwrappedAPIResponse<ETFList[]>>;
1527
+ getETFList(): Promise<APIResponse<ETFList[]>>;
1442
1528
  /**
1443
1529
  * Get crypto list
1444
1530
  * https://site.financialmodelingprep.com/developer/docs#cryptocurrencies-list-crypto
1445
1531
  * @returns The crypto list
1446
1532
  */
1447
- getCryptoList(): Promise<UnwrappedAPIResponse<CryptoList[]>>;
1533
+ getCryptoList(): Promise<APIResponse<CryptoList[]>>;
1448
1534
  /**
1449
1535
  * Get forex list
1450
1536
  * https://site.financialmodelingprep.com/developer/docs#forex-list-forex
1451
1537
  * @returns The forex list
1452
1538
  */
1453
- getForexList(): Promise<UnwrappedAPIResponse<ForexList[]>>;
1539
+ getForexList(): Promise<APIResponse<ForexList[]>>;
1454
1540
  /**
1455
1541
  * Get available indexes list
1456
1542
  * https://site.financialmodelingprep.com/developer/docs#available-indexes
1457
1543
  * @returns The available indexes list
1458
1544
  */
1459
- getAvailableIndexes(): Promise<UnwrappedAPIResponse<AvailableIndexesList[]>>;
1545
+ getAvailableIndexes(): Promise<APIResponse<AvailableIndexesList[]>>;
1460
1546
  }
1461
1547
 
1462
1548
  declare class CalendarEndpoints {
@@ -1469,7 +1555,7 @@ declare class CalendarEndpoints {
1469
1555
  * @param to - The end date to get the earnings calendar for
1470
1556
  * @returns The earnings calendar
1471
1557
  */
1472
- getEarningsCalendar({ from, to }?: DateRangeParams): Promise<UnwrappedAPIResponse<EarningsCalendar[]>>;
1558
+ getEarningsCalendar({ from, to }?: DateRangeParams): Promise<APIResponse<EarningsCalendar[]>>;
1473
1559
  /**
1474
1560
  * Get dividends calendar
1475
1561
  * https://site.financialmodelingprep.com/developer/docs#dividends-calendar-dividends
@@ -1477,7 +1563,7 @@ declare class CalendarEndpoints {
1477
1563
  * @param to - The end date to get the dividends calendar for
1478
1564
  * @returns The dividends calendar
1479
1565
  */
1480
- getDividendsCalendar({ from, to }?: DateRangeParams): Promise<UnwrappedAPIResponse<DividendsCalendar[]>>;
1566
+ getDividendsCalendar({ from, to }?: DateRangeParams): Promise<APIResponse<DividendsCalendar[]>>;
1481
1567
  /**
1482
1568
  * Get economics calendar
1483
1569
  * https://site.financialmodelingprep.com/developer/docs#economics-calendar-economics-data
@@ -1485,7 +1571,7 @@ declare class CalendarEndpoints {
1485
1571
  * @param to - The end date to get the economics calendar for
1486
1572
  * @returns The economics calendar
1487
1573
  */
1488
- getEconomicsCalendar({ from, to }?: DateRangeParams): Promise<UnwrappedAPIResponse<EconomicsCalendar[]>>;
1574
+ getEconomicsCalendar({ from, to }?: DateRangeParams): Promise<APIResponse<EconomicsCalendar[]>>;
1489
1575
  /**
1490
1576
  * Get IPO calendar
1491
1577
  * https://site.financialmodelingprep.com/developer/docs#ipo-calender-by-ipo-calendar
@@ -1493,7 +1579,7 @@ declare class CalendarEndpoints {
1493
1579
  * @param to - The end date to get the IPO calendar for
1494
1580
  * @returns The IPO calendar
1495
1581
  */
1496
- getIPOCalendar({ from, to }?: DateRangeParams): Promise<UnwrappedAPIResponse<IPOCalendar[]>>;
1582
+ getIPOCalendar({ from, to }?: DateRangeParams): Promise<APIResponse<IPOCalendar[]>>;
1497
1583
  /**
1498
1584
  * Get stock splits calendar
1499
1585
  * https://site.financialmodelingprep.com/developer/docs#splits-calendar-splits
@@ -1501,7 +1587,7 @@ declare class CalendarEndpoints {
1501
1587
  * @param to - The end date to get the stock splits calendar for
1502
1588
  * @returns The stock splits calendar
1503
1589
  */
1504
- getSplitsCalendar({ from, to }?: DateRangeParams): Promise<UnwrappedAPIResponse<SplitsCalendar[]>>;
1590
+ getSplitsCalendar({ from, to }?: DateRangeParams): Promise<APIResponse<SplitsCalendar[]>>;
1505
1591
  }
1506
1592
 
1507
1593
  declare class CompanyEndpoints {
@@ -1515,7 +1601,7 @@ declare class CompanyEndpoints {
1515
1601
  */
1516
1602
  getCompanyProfile({ symbol, }: {
1517
1603
  symbol: string;
1518
- }): Promise<UnwrappedAPIResponse<CompanyProfile | null>>;
1604
+ }): Promise<APIResponse<CompanyProfile | null>>;
1519
1605
  /**
1520
1606
  * Get executive compensation
1521
1607
  * https://site.financialmodelingprep.com/developer/docs#executive-compensation-company-information
@@ -1524,7 +1610,7 @@ declare class CompanyEndpoints {
1524
1610
  */
1525
1611
  getExecutiveCompensation({ symbol, }: {
1526
1612
  symbol: string;
1527
- }): Promise<UnwrappedAPIResponse<ExecutiveCompensation[] | null>>;
1613
+ }): Promise<APIResponse<ExecutiveCompensation[] | null>>;
1528
1614
  /**
1529
1615
  * Get company notes
1530
1616
  * https://site.financialmodelingprep.com/developer/docs#company-notes-company-information
@@ -1533,7 +1619,7 @@ declare class CompanyEndpoints {
1533
1619
  */
1534
1620
  getCompanyNotes({ symbol, }: {
1535
1621
  symbol: string;
1536
- }): Promise<UnwrappedAPIResponse<CompanyNotes[] | null>>;
1622
+ }): Promise<APIResponse<CompanyNotes[] | null>>;
1537
1623
  /**
1538
1624
  * Get historical employee count
1539
1625
  * https://site.financialmodelingprep.com/developer/docs#historical-employee-company-information
@@ -1542,16 +1628,16 @@ declare class CompanyEndpoints {
1542
1628
  */
1543
1629
  getHistoricalEmployeeCount({ symbol, }: {
1544
1630
  symbol: string;
1545
- }): Promise<UnwrappedAPIResponse<HistoricalEmployeeCount[] | null>>;
1631
+ }): Promise<APIResponse<HistoricalEmployeeCount[] | null>>;
1546
1632
  /**
1547
1633
  * Get shares float
1548
1634
  * https://site.financialmodelingprep.com/developer/docs#company-share-float-share-float
1549
1635
  * @param symbol - The stock symbol to get the shares float for
1550
1636
  * @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.
1551
1637
  */
1552
- getSharesFloat({ symbol, }: {
1638
+ getSharesFloat({ symbol }: {
1553
1639
  symbol: string;
1554
- }): Promise<UnwrappedAPIResponse<SharesFloat | null>>;
1640
+ }): Promise<APIResponse<SharesFloat | null>>;
1555
1641
  /**
1556
1642
  * Get historical shares float
1557
1643
  * https://site.financialmodelingprep.com/developer/docs#company-historical-share-float
@@ -1560,7 +1646,7 @@ declare class CompanyEndpoints {
1560
1646
  */
1561
1647
  getHistoricalSharesFloat({ symbol, }: {
1562
1648
  symbol: string;
1563
- }): Promise<UnwrappedAPIResponse<HistoricalSharesFloat[] | null>>;
1649
+ }): Promise<APIResponse<HistoricalSharesFloat[] | null>>;
1564
1650
  /**
1565
1651
  * Get earnings call transcript
1566
1652
  * https://site.financialmodelingprep.com/developer/docs#earnings-transcript-earnings-transcripts
@@ -1573,7 +1659,7 @@ declare class CompanyEndpoints {
1573
1659
  symbol: string;
1574
1660
  year: number;
1575
1661
  quarter: number;
1576
- }): Promise<UnwrappedAPIResponse<EarningsCallTranscript[] | null>>;
1662
+ }): Promise<APIResponse<EarningsCallTranscript[] | null>>;
1577
1663
  }
1578
1664
 
1579
1665
  /**
@@ -1742,4 +1828,4 @@ declare const HTTP_STATUS: {
1742
1828
  readonly INTERNAL_SERVER_ERROR: 500;
1743
1829
  };
1744
1830
 
1745
- 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, type CryptoQuoteParams, DEFAULT_LIMIT, DEFAULT_TIMEOUT, type DateRangeParams, type DividendsCalendar, ERROR_MESSAGES, ETFEndpoints, type ETFHoldersParams, type ETFHolding, type ETFList, type ETFListParams, type ETFProfile, type ETFProfileParams, type ETFQuote, type ETFQuoteParams, EXCHANGES, type EarningsCalendar, type EarningsCallTranscript, 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 MarketGainersParams, type MarketHours, type MarketHoursParams, type MarketIndex, type MarketIndexParams, type MarketLosersParams, type MarketMostActiveParams, type MarketPerformance, type MarketPerformanceParams, type MarketSectorPerformance, type MarketSectorPerformanceParams, 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, StockEndpoints, type StockHistoricalPriceData, type StockHistoricalPriceResponse, type StockList, type StockQuote, type StockSplit, type SuccessResponse, type SymbolParams, type TreasuryRate, type TreasuryRateParams, type Unemployment, type UnemploymentParams, type UnwrapSingle, type UnwrappedAPIResponse, formatCurrency, formatDate, formatLargeNumber, formatNumber, formatPercentage, formatReadableDate, formatTimestamp, formatVolume, validateApiKey, validateDate, validateLimit, validatePage, validatePeriod, validateSymbol };
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 };