diff --git a/FinancialModelingPrepApi/Abstractions/CompanyValuation/ICompanyValuationProvider.cs b/FinancialModelingPrepApi/Abstractions/CompanyValuation/ICompanyValuationProvider.cs index 1d193a2..d4c5077 100644 --- a/FinancialModelingPrepApi/Abstractions/CompanyValuation/ICompanyValuationProvider.cs +++ b/FinancialModelingPrepApi/Abstractions/CompanyValuation/ICompanyValuationProvider.cs @@ -27,8 +27,6 @@ public interface ICompanyValuationProvider public Task>> GetCompanyKeyMetricsAsync(string symbol, Period period = Period.Annual, int? limit = 130); public Task> GetDiscountedCashFlowAsync(string symbol); - public Task>> GetHistoricalDiscountedCashFlowAsync(string symbol, Period period = Period.Annual); - public Task>> GetHistoricalDiscountedCashFlowDailyAsync(string symbol, int? limit = 100); public Task> GetMarketCapitalizationAsync(string symbol); public Task>> GetHistoricalMarketCapitalizationAsync(string symbol, int? limit = 100); diff --git a/FinancialModelingPrepApi/Core/CompanyValuation/CompanyValuationProvider.cs b/FinancialModelingPrepApi/Core/CompanyValuation/CompanyValuationProvider.cs index b25f433..3489260 100644 --- a/FinancialModelingPrepApi/Core/CompanyValuation/CompanyValuationProvider.cs +++ b/FinancialModelingPrepApi/Core/CompanyValuation/CompanyValuationProvider.cs @@ -306,46 +306,6 @@ public async Task> GetDiscountedCashFlowAsync(string sy return ApiResponse.FromSucces(result.Data.First()); } - public Task>> GetHistoricalDiscountedCashFlowAsync(string symbol, Period period = Period.Annual) - { - const string url = "[version]/historical-discounted-cash-flow-statement/[symbol]"; - - var pathParams = new NameValueCollection() - { - { "version", ApiVersion.v3.ToString() }, - { "symbol", symbol } - }; - - var queryString = new QueryStringBuilder(); - - if (period != Period.Annual) - { - queryString.Add("period", period.ToString().ToLower()); - } - - return client.GetJsonAsync>(url, pathParams, queryString); - } - - public Task>> GetHistoricalDiscountedCashFlowDailyAsync(string symbol, int? limit = 100) - { - const string url = "[version]/historical-discounted-cash-flow-statement/[symbol]"; - - var pathParams = new NameValueCollection() - { - { "version", ApiVersion.v3.ToString() }, - { "symbol", symbol } - }; - - var queryString = new QueryStringBuilder(); - - if (limit != null) - { - queryString.Add("limit", limit); - } - - return client.GetJsonAsync>(url, pathParams, queryString); - } - public async Task> GetRatiosTTMAsync(string symbol) { const string url = "[version]/ratios-ttm/[symbol]"; diff --git a/Tests/CompanyValuation/CompanyValuationTests.cs b/Tests/CompanyValuation/CompanyValuationTests.cs index 502ea8d..e83c303 100644 --- a/Tests/CompanyValuation/CompanyValuationTests.cs +++ b/Tests/CompanyValuation/CompanyValuationTests.cs @@ -340,26 +340,6 @@ public async Task GetDiscountedCashFlowAsync() Assert.Equal("AAPL", result.Data.Symbol); } - [Fact] - public async Task GetHistoricalDiscountedCashFlowAsync() - { - var result = await api.GetHistoricalDiscountedCashFlowAsync("AAPL", Period.Quarter); - - result.AssertNoErrors(); - Assert.NotEmpty(result.Data); - Assert.All(result.Data, data => Assert.Equal("AAPL", data.Symbol)); - } - - [Fact] - public async Task GetHistoricalDiscountedCashFlowDailyAsync() - { - var result = await api.GetHistoricalDiscountedCashFlowDailyAsync("AAPL", 5); - - result.AssertNoErrors(); - Assert.NotEmpty(result.Data); - Assert.Equal(5, result.Data.Count); - Assert.All(result.Data, data => Assert.Equal("AAPL", data.Symbol)); - } [Theory] [InlineData("AAPL")]