Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
fmp-node-sdk@2.0.0
Major Changes
49cda76: ## Breaking Changes
API Migration: v3/v4 → Stable API
This is a complete API migration. The SDK now uses FMP's new stable API instead of the legacy v3/v4 endpoints.
https://financialmodelingprep.com/apitohttps://financialmodelingprep.com/stable/v3/profile/AAPL→/profile?symbol=AAPL)If you were customizing the
baseUrlin your config, you'll need to update it.Endpoint Changes
All endpoints have been migrated. Examples of changes:
v3/profile/{symbol}profile?symbol=v3/quote/{symbol}quote?symbol=v3/searchsearch-symbol,search-namev3/analyst-estimatesanalyst-estimatesv4/price-targetprice-targetv3/gradegradesv4/profile/allprofile-bulkv4/dcfdcf-bulkv3/income-statement/{symbol}income-statement?symbol=v3/historical-price-full/{symbol}historical-price-eod/full?symbol=Method Signature Changes
CompanyResource.search()is now deprecated, usesearchSymbol()orsearchName()CompanyResource.getDelistedCompanies(limit?)now takes(page, limit)parametersBulkResource.getAllProfiles()now takes optionalpartparameter for paginationBulkResource.getAllETFHoldings()now takes optionalpartparameter for paginationCommoditiesResource.getHistoricalPrices()now returnsHistoricalPrice[]instead of{ historical: HistoricalPrice[] }Type Changes
DCFValuation and LeveredDCF
'Stock Price'property tostockPriceQuote type - Nullable fields
The following fields are now nullable to accurately reflect the API response:
marketCap:number→number | nullpriceAvg50:number→number | nullpriceAvg200:number→number | nulleps:number→number | nullpe:number→number | nullearningsAnnouncement:string→string | nullsharesOutstanding:number→number | nullEarningsSurprise type
actualEarningResult:number→number | nullestimatedEarning:number→number | nullNew Features
NewsResource
getAvailableTranscriptSymbols()- Get symbols with available earnings call transcriptssearchPressReleases(query, limit)- Search press releasessearchStockNews(query, limit)- Search stock newssearchCryptoNews(query, limit)- Search crypto newssearchForexNews(query, limit)- Search forex newsInsiderResource
getHolderPerformanceSummary(cik, date)- 13F portfolio holdings performancegetIndustryPerformanceSummary(cik, date)- 13F industry portfolio holdings performanceAnalystResource
getGradesSummary(symbol)- Analyst grades summaryValuationResource
getCustomLeveredDCF(symbol)- Custom levered DCF valuationCompanyResource
searchSymbol(query, limit, exchange)- Search by symbolsearchName(query, limit, exchange)- Search by company namegetBatchAftermarketTrades(symbols)- Batch aftermarket tradesgetETFList()- List of all ETFsgetMutualFundList()- List of all mutual fundsNew Types
PortfolioHoldingsSummary- 13F portfolio holdings summaryIndustryPortfolioHoldingsSummary- 13F industry portfolio holdings summaryFundListItem- ETF/Mutual fund list itemQuoteShort- Simplified quote dataAftermarketTrade- Aftermarket trade dataAftermarketQuote- Aftermarket quote dataPriceChange- Stock price change dataMigration Guide
/apito/stable.search()with.searchSymbol()or.searchName()result['Stock Price']toresult.stockPrice{ historical: [] }