Skip to content

Commit d5d8dd3

Browse files
committed
Add GetSymbolsWithFinancialStatements API call.
1 parent 3981b2e commit d5d8dd3

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

FinancialModelingPrepApi/Abstractions/CompanyValuation/ICompanyValuationProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public interface ICompanyValuationProvider
2727
public Task<ApiResponse<List<MarketCapResponse>>> GetHistoricalMarketCapitalizationAsync(string symbol, int? limit = 100);
2828

2929
public Task<ApiResponse<List<SymbolResponse>>> GetSymbolsListAsync();
30+
public Task<ApiResponse<List<string>>> GetSymbolsWithFinancialStatementsAsync();
3031
public Task<ApiResponse<List<SymbolResponse>>> GetTradableSymbolsListAsync();
3132
public Task<ApiResponse<List<SymbolResponse>>> GetETFListAsync();
3233

FinancialModelingPrepApi/Core/CompanyValuation/CompanyValuationProvider.cs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,18 @@ public Task<ApiResponse<List<SymbolResponse>>> GetTradableSymbolsListAsync()
7575
return client.GetJsonAsync<List<SymbolResponse>>(url, pathParams, null);
7676
}
7777

78+
public Task<ApiResponse<List<string>>> GetSymbolsWithFinancialStatementsAsync()
79+
{
80+
const string url = "[version]/financial-statement-symbol-lists";
81+
82+
var pathParams = new NameValueCollection()
83+
{
84+
{ "version", ApiVersion.v3.ToString() }
85+
};
86+
87+
return client.GetJsonAsync<List<string>>(url, pathParams, null);
88+
}
89+
7890
public Task<ApiResponse<List<EnterpriseValueResponse>>> GetEnterpriseValueAsync(string symbol, Period period = Period.Quarter, int? limit = 40)
7991
{
8092
const string url = "[version]/enterprise-values/[symbol]";

Tests/CompanyValuation/CompanyValuationTests.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,15 @@ public async Task GetTradableSymbolsList()
102102
Assert.NotEmpty(result.Data);
103103
}
104104

105+
[Fact]
106+
public async Task GetSymbolsWithFinancialStatementsAsync()
107+
{
108+
var result = await api.GetSymbolsWithFinancialStatementsAsync();
109+
110+
result.AssertNoErrors();
111+
Assert.NotEmpty(result.Data);
112+
}
113+
105114
[Fact]
106115
public async Task GetEnterpriseValue()
107116
{

0 commit comments

Comments
 (0)