3
3
[ ![ .NET] ( https://github.com/MatthiWare/FinancialModelingPrep.NET/actions/workflows/dotnet.yml/badge.svg )] ( https://github.com/MatthiWare/FinancialModelingPrep.NET/actions/workflows/dotnet.yml )
4
4
[ ![ Nuget] ( https://buildstats.info/nuget/MatthiWare.FinancialModelingPrep )] ( https://www.nuget.org/packages/MatthiWare.FinancialModelingPrep/ )
5
5
6
- .NET 5 API Client For https://financialmodelingprep.com/ API written in C#
6
+ .NET 7 API Client For https://financialmodelingprep.com/ API written in C#
7
7
8
8
## Installation
9
+
9
10
``` powershell
10
11
PM> Install-Package MatthiWare.FinancialModelingPrep
11
12
```
12
13
13
14
# Quick Start
14
15
15
16
### Register FinancialModelingPrepApiClient in Dependency Injection provider
16
- > You can find your API Key here https://financialmodelingprep.com/developer/docs/dashboard
17
- ``` csharp
17
+
18
+ > You can find your API Key here https://site.financialmodelingprep.com/developer/docs/dashboard/
19
+
20
+ ``` csharp
18
21
using MatthiWare .FinancialModelingPrep ;
19
22
20
- Services .AddFinancialModelingPrepApiClient (new FinancialModelingPrepOptions ()
23
+ Services .AddFinancialModelingPrepApiClient (new FinancialModelingPrepOptions ()
21
24
{
22
25
ApiKey = " API-KEY-HERE"
23
26
});
@@ -41,7 +44,7 @@ var quoteResult = await api.CompanyValuation.GetQuoteAsync("AAPL");
41
44
42
45
### Get Stock Price Quote
43
46
44
- ``` csharp
47
+ ``` csharp
45
48
var response = await api .CompanyValuation .GetQuoteAsync (" AAPL" );
46
49
47
50
// Display Apple Stock Quote
@@ -50,7 +53,7 @@ Console.WriteLine($"$AAPL is currently trading at: {response.Data.Price}");
50
53
51
54
### All API Responses are wrapped in an ` ApiResponse<T> ` object.
52
55
53
- ``` csharp
56
+ ``` csharp
54
57
public class ApiResponse <T >
55
58
{
56
59
/// <summary >
@@ -72,21 +75,22 @@ public class ApiResponse<T>
72
75
73
76
Example:
74
77
75
- ``` csharp
78
+ ``` csharp
76
79
var response = await api .CompanyValuation .GetQuoteAsync (" AAPL" );
77
80
78
81
// Display Apple Stock Quote
79
82
if (! quoteResult .HasError )
80
83
{
81
84
Console .WriteLine ($" $AAPL is currently trading at: {response .Data .Price }" );
82
- }
83
- else
85
+ }
86
+ else
84
87
{
85
88
Console .WriteLine ($" Error occured, message: {response .Error }" );
86
89
}
87
90
```
88
91
89
92
### Covered Endpoints
93
+
90
94
- Company Valuation
91
95
- Advanced Data
92
96
- Insider Trading (Not yet covered)
@@ -98,14 +102,12 @@ else
98
102
- Market Indexes
99
103
- Alternative Data (Not yet covered)
100
104
- Commodities (Not yet covered)
101
- - ETF (Not yet covered)
105
+ - ETF (Partially covered)
102
106
- Mutual Funds (Not yet covered)
103
- - Euronext
104
- - TSX
105
107
- Stock Market (Partially covered)
106
- - Cryptocurrencies (Not yet covered)
107
- - Forex (Not yet covered)
108
+ - Cryptocurrencies (Partially covered)
109
+ - Forex (Partially covered)
108
110
109
111
### Contribute
110
- Create a PR where you add or improve an Endpoint
111
112
113
+ Create a PR where you add or improve an Endpoint
0 commit comments