MatthiWare.FinancialModelingPrep
0.2.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package MatthiWare.FinancialModelingPrep --version 0.2.0
NuGet\Install-Package MatthiWare.FinancialModelingPrep -Version 0.2.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MatthiWare.FinancialModelingPrep" Version="0.2.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MatthiWare.FinancialModelingPrep --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MatthiWare.FinancialModelingPrep, 0.2.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install MatthiWare.FinancialModelingPrep as a Cake Addin #addin nuget:?package=MatthiWare.FinancialModelingPrep&version=0.2.0 // Install MatthiWare.FinancialModelingPrep as a Cake Tool #tool nuget:?package=MatthiWare.FinancialModelingPrep&version=0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
FinancialModelingPrep.NET
.NET 7 API Client For https://financialmodelingprep.com/ API written in C#
Installation
PM> Install-Package MatthiWare.FinancialModelingPrep
Quick Start
Register FinancialModelingPrepApiClient in Dependency Injection provider
You can find your API Key here https://site.financialmodelingprep.com/developer/docs/dashboard/
using MatthiWare.FinancialModelingPrep;
Services.AddFinancialModelingPrepApiClient(new FinancialModelingPrepOptions()
{
ApiKey = "API-KEY-HERE"
});
var api = ServiceProvider.GetRequiredService<IFinancialModelingPrepApiClient>();
// do something with api like getting the latest Apple Stock Quote
var quoteResult = await api.CompanyValuation.GetQuoteAsync("AAPL");
Create FMP API Client using Factory (without Dependency Injection)
using MatthiWare.FinancialModelingPrep;
var api = FinancialModelingPrepApiClientFactory.CreateClient(new FinancialModelingPrepOptions());
// do something with api like getting the latest Apple Stock Quote
var quoteResult = await api.CompanyValuation.GetQuoteAsync("AAPL");
Get Stock Price Quote
var response = await api.CompanyValuation.GetQuoteAsync("AAPL");
// Display Apple Stock Quote
Console.WriteLine($"$AAPL is currently trading at: {response.Data.Price}");
All API Responses are wrapped in an ApiResponse<T>
object.
public class ApiResponse<T>
{
/// <summary>
/// Error message if any occured
/// </summary>
public string Error { get; }
/// <summary>
/// True if there was an error with the request otherwise false
/// </summary>
public bool HasError { get; }
/// <summary>
/// The FMP API response object <see cref="T"/>
/// </summary>
public T Data { get; }
}
Example:
var response = await api.CompanyValuation.GetQuoteAsync("AAPL");
// Display Apple Stock Quote
if (!quoteResult.HasError)
{
Console.WriteLine($"$AAPL is currently trading at: {response.Data.Price}");
}
else
{
Console.WriteLine($"Error occured, message: {response.Error}");
}
Covered Endpoints
- Company Valuation
- Advanced Data
- Insider Trading (Not yet covered)
- Calendars
- Instituational Fund
- Stock Time Series (Partially covered)
- Technical Indicators (Not yet covered)
- Stock Statistics (Partially covered)
- Market Indexes
- Alternative Data (Not yet covered)
- Commodities (Not yet covered)
- ETF (Partially covered)
- Mutual Funds (Not yet covered)
- Stock Market (Partially covered)
- Cryptocurrencies (Partially covered)
- Forex (Partially covered)
- Economics (Partially covered)
Contribute
Create a PR where you add or improve an Endpoint
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- Bert.RateLimiters (>= 1.0.15)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Http (>= 7.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
-
net7.0
- Bert.RateLimiters (>= 1.0.15)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- Microsoft.Extensions.Http (>= 7.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 7.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.3.0 | 561 | 6/8/2024 |
0.2.2 | 1,330 | 2/8/2023 |
0.2.1 | 287 | 2/6/2023 |
0.2.0 | 383 | 11/19/2022 |
0.1.14 | 514 | 10/2/2022 |
0.1.13 | 491 | 7/10/2022 |
0.1.12 | 501 | 6/17/2022 |
0.1.11 | 448 | 6/16/2022 |
0.1.10 | 447 | 6/8/2022 |
0.1.9 | 562 | 2/19/2022 |
0.1.8 | 379 | 11/19/2021 |
0.1.7 | 345 | 11/5/2021 |
0.1.6 | 336 | 10/2/2021 |
0.1.5 | 342 | 8/9/2021 |
0.1.4 | 395 | 7/11/2021 |
0.1.3 | 402 | 6/4/2021 |
0.1.2 | 377 | 5/31/2021 |
0.1.1 | 361 | 5/24/2021 |
0.1.0 | 376 | 5/20/2021 |
- Include .NET 6 and .NET 7 in nuget package
- Add Economic Indicators