Skip to content

Commit 63be43b

Browse files
Update Nugets and restructure license notes (#32)
* Imrove docu * Update nugets * Improve docu * Refactor licenses
1 parent 618ff31 commit 63be43b

File tree

5 files changed

+132
-71
lines changed

5 files changed

+132
-71
lines changed

NOTICE.MD

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
This project includes data from the following external resources:
3+
4+
1. **Xetra Instruments Data**:
5+
- URL: https://www.xetra.com/resource/blob/1528/76087c675c856fe7720917da03a62a34/data/t7-xetr-allTradableInstruments.csv
6+
- License: Please refer to Xetra's terms of service or data usage policy at https://www.xetra.com/xetra-de/instrumente/alle-handelbaren-instrumente
7+
8+
2. **S&P 500 Symbols (DatahubIo)**:
9+
- URL: https://raw.githubusercontent.com/datasets/s-and-p-500-companies-financials/refs/heads/main/data/constituents-financials.csv
10+
- License: This dataset is licensed under the Public Domain Dedication and License (PDDL). The PDDL allows unrestricted use, sharing, modification, and distribution of the data for any purpose, including commercial use.
11+
- Notice: The PDDL allows unrestricted use, modification, and distribution of the data. The MIT/BSD licenses permit free use of the code with attribution and disclaimers. While formal credit is not required, it is recommended to include a link back or provide credit to Rufus Pollock and the Open Knowledge Foundation.
12+
13+
3. **NASDAQ Symbols (DatahubIo)**:
14+
- URL: https://raw.githubusercontent.com/datasets/nasdaq-listings/refs/heads/main/data/nasdaq-listed-symbols.csv
15+
- License: This dataset is licensed under the Public Domain Dedication and License (PDDL). The PDDL allows unrestricted use, sharing, modification, and distribution of the data for any purpose, including commercial use.
16+
- Notice: The data originates from the NASDAQ OMX Group, which retains copyright over the original information. Users should review the copyright notice of the source dataset to ensure compliance with any specific restrictions regarding public or commercial use.
17+
- Source Data Copyright: Copyright © 2010, The NASDAQ OMX Group, Inc. All rights reserved.
18+
19+
4. **Yahoo Finance Data**:
20+
- URL: https://finance.yahoo.com/
21+
- License: Please review Yahoo Finance's terms of service at https://legal.yahoo.com/us/en/yahoo/terms/otos/index.html
22+
23+
5. **Alpha Vantage API**:
24+
Usage: This application uses the Alpha Vantage API to retrieve financial data. The API is used in accordance with Alpha Vantage's Terms of Service.
25+
Attribution Requirement:Per Alpha Vantage's terms, users must provide attribution to Alpha Vantage when displaying data retrieved from the API.
26+
Note: For more information, visit the Alpha Vantage API Documentation https://www.alphavantage.co/documentation/.
27+
28+
29+
Please review the associated licenses to ensure proper usage and attribution.

README.md

Lines changed: 63 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,44 +9,42 @@
99
[![NuGet Downloads](https://img.shields.io/nuget/dt/Finance.NET.svg)](https://www.nuget.org/packages/Finance.NET)
1010
[![Star this repo](https://img.shields.io/github/stars/thorstenalpers/Finance.NET.svg?style=social&label=Star&maxAge=60)](https://github.com/thorstenalpers/Finance.NET)
1111

12-
An easy-to-use .NET library for accessing and aggregating financial data from multiple sources. This library provides functionality to retrieve financial information through APIs and HTML scraping from various providers.
12+
An easy-to-use .NET library for accessing and aggregating financial data from multiple sources.
1313

14-
## Features
14+
This library enables developers to retrieve financial data via APIs and HTML scraping from a variety of providers. It's ideal for building analytical tools, dashboards, or financial applications that require access to market data.
1515

16-
* **Retrieve Instruments:** Access tradable ticker symbols and related details for financial instruments.
17-
* **Fundamentals:** Fetch key financial metrics and company fundamentals.
18-
* **Historical Records:** Obtain historical data for charting or analysis.
19-
* **Real-Time Quotes:** Get live updates on stock prices and other market data.
16+
---
2017

21-
## Table of contents
18+
## ⭐ Features
2219

23-
* [Getting started](#getting-started)
24-
* [Services](#services)
25-
* [Yahoo! Finance](#yahoo-finance)
26-
* [Alpha Vantage](#alpha-vantage)
27-
* [DataHub](#datahub)
28-
* [Xetra](#xetra)
29-
* [Disclaimer](#disclaimer)
20+
* **Retrieve Instruments:** Get tradable ticker symbols and associated details.
21+
* **Fundamentals:** Access key financial metrics and company fundamentals.
22+
* **Historical Records:** Fetch historical data for analysis or charting.
23+
* **Real-Time Quotes:** Receive live updates on stock prices and market data.
3024

31-
## Getting started
25+
---
26+
27+
## 🚀 Getting started
28+
29+
This section guides you through installing Finance.NET, configuring services, and basic data retrieval.
3230

3331
### Installation
3432

35-
To integrate Finance .NET into your project, install it via NuGet.
33+
Install via NuGet:
3634

3735
```shell
3836
dotnet add package Finance.NET
3937
```
4038

41-
### Adding to Service Collection
39+
### Register in Service Collection
4240

43-
Register Finance .NET in your service collection to enable dependency injection.
41+
Add Finance.NET to your service collection for dependency injection:
4442

4543
```csharp
4644
services.AddFinanceNet();
4745
```
4846

49-
You can also provide a custom configuration.
47+
Optional: Configure with custom settings.
5048

5149
```csharp
5250
services.AddFinanceNet(new FinanceNetConfiguration
@@ -59,7 +57,7 @@ services.AddFinanceNet(new FinanceNetConfiguration
5957

6058
### Basic Usage
6159

62-
To fetch historical records and the latest ticker for Tesla stock.
60+
Example: Retrieve historical and real-time data for Tesla (TSLA):
6361

6462
```csharp
6563
public async Task Run(IYahooFinanceService yahooService)
@@ -78,13 +76,18 @@ public async Task Run(IYahooFinanceService yahooService)
7876
}
7977
```
8078

81-
## Services
79+
---
8280

83-
## Yahoo! Finance
81+
## 🔌Finance.NET Service Interfaces
8482

85-
[Yahoo! Finance](https://finance.yahoo.com/) is one of the most popular platforms for market data, company fundamentals, historical records, and real-time stock quotes.
83+
Finance.NET exposes modular service interfaces for accessing diverse financial data through a consistent API. Each interface corresponds to a specific provider and supports its unique features.
8684

87-
### Methods
85+
86+
### Yahoo! Finance
87+
88+
Provides market data, company fundamentals, historical records, and real-time quotes.
89+
90+
#### Methods
8891

8992
<details><summary><code>GetInstrumentsAsync</code></summary>
9093

@@ -528,9 +531,12 @@ public async Task Run(IYahooFinanceService yahooService)
528531

529532
</details>
530533

534+
---
535+
531536
## Alpha Vantage
532537

533-
[Alpha Vantage](https://www.alphavantage.co) is a well-regarded provider of stock, forex, and cryptocurrency data, offering historical records and intraday prices.
538+
Offers stock, forex, and cryptocurrency data including intraday and historical records.
539+
534540

535541
### Get an API key
536542

@@ -791,9 +797,11 @@ public async Task Run(IAlphaVantageService alphaVantageService)
791797

792798
</details>
793799

800+
---
801+
794802
## DataHub
795803

796-
[DataHub](https://datahub.io) is a popular source for accessing comprehensive data, including Nasdaq and S&P 500 companies.
804+
Accesses datasets like Nasdaq and S&P 500 companies.
797805

798806
### Methods
799807

@@ -876,9 +884,11 @@ public async Task Run(IDataHubService datahubService)
876884

877885
</details>
878886

887+
---
888+
879889
## Xetra
880890

881-
[Xetra](https://www.xetra.com/) is a leading European electronic trading platform, widely known for providing access to financial instruments listed on the Xetra market.
891+
A major European trading platform offering data on Xetra-listed instruments.
882892

883893
### Methods
884894

@@ -924,13 +934,36 @@ public async Task Run(IXetraService xetraService)
924934

925935
<div style="height: 1px;"></div>
926936

927-
## Disclaimer
937+
---
938+
939+
## 🤝 How to Contribute
928940

929-
Finance .NET is an open-source tool that uses Yahoo's and other publicly available APIs, and is intended for research and educational purposes.
941+
We welcome contributions to Finance.NET! If you’d like to improve the project, please:
930942

931-
#### Wen using the following services, you should refer to their respective terms of use
943+
1. Check out our [contributing guidelines](CONTRIBUTING.md).
944+
2. Ideally, open an issue before starting work.
945+
3. Submit a pull request with your changes.
946+
947+
Thank you for helping make Finance.NET better!
948+
949+
---
950+
951+
## ℹ️ Disclaimer
952+
953+
Finance.NET is an open-source project using publicly accessible APIs and scraping techniques. It is intended for educational and research purposes.
954+
955+
For legal usage, refer to the terms of each data provider:
932956

933957
* Alpha Vantage: [Terms of use](https://www.alphavantage.co/)
934958
* DataHub: [S&P 500 Companies Terms of Use](https://github.com/datasets/s-and-p-500-companies), [NASDAQ Listings Terms of Use](https://github.com/datasets/nasdaq-listings)
935959
* Yahoo! Finance: [API Terms of Use](https://policies.yahoo.com/us/en/yahoo/terms/product-atos/apiforydn/index.htm), [Website Terms of Use](https://legal.yahoo.com/us/en/yahoo/terms/otos/index.html), [General Terms](https://policies.yahoo.com/us/en/yahoo/terms/index.htm)
936960
* Xetra: [Terms of use](https://www.xetra.com/xetra-de/instrumente/alle-handelbaren-instrumente)
961+
962+
963+
For additional licensing and attribution details, see [NOTICE.md](./NOTICE.md) and [THIRD_PARTY_LICENSES.md](./THIRD_PARTY_LICENSES.md).
964+
965+
---
966+
967+
## 🐞 Report a Bug
968+
969+
If you encounter any issues or bugs, please [report them here](https://github.com/thorstenalpers/Finance.NET/issues).

licenses.txt renamed to THIRD_PARTY_LICENSES.txt

Lines changed: 28 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
####################################################################################################
22
Package:AngleSharp
3-
Version:1.1.2
3+
Version:1.3.0
44
project URL:https://anglesharp.github.io/
55
Description:AngleSharp is the ultimate angle brackets parser library. It parses HTML5, CSS3, and XML to construct a DOM based on the official W3C specification.
66
licenseUrl:https://licenses.nuget.org/MIT
77
license Type:MIT
88

99
####################################################################################################
1010
Package:AngleSharp.XPath
11-
Version:2.0.4
11+
Version:2.0.5
1212
project URL:https://github.com/AngleSharp/AngleSharp.XPath/
1313
Description:XPath support for AngleSharp
1414
licenseUrl:https://licenses.nuget.org/MIT
@@ -24,7 +24,7 @@ license Type:LICENSE
2424

2525
####################################################################################################
2626
Package:AutoMapper
27-
Version:10.0.1
27+
Version:10.1.1
2828
project URL:https://automapper.org/
2929
Description:A convention-based object-object mapper.
3030
licenseUrl:https://licenses.nuget.org/MIT
@@ -38,6 +38,22 @@ Description:A library for reading and writing CSV files. Extremely fast, flexibl
3838
licenseUrl:https://licenses.nuget.org/MS-PL%20OR%20Apache-2.0
3939
license Type:MS-PL OR Apache-2.0
4040

41+
####################################################################################################
42+
Package:Microsoft.Extensions.Configuration
43+
Version:8.0.0
44+
project URL:https://dot.net/
45+
Description:Implementation of key-value pair based configuration for Microsoft.Extensions.Configuration. Includes the memory configuration provider.
46+
licenseUrl:https://licenses.nuget.org/MIT
47+
license Type:MIT
48+
49+
####################################################################################################
50+
Package:Microsoft.Extensions.Configuration.UserSecrets
51+
Version:8.0.1
52+
project URL:https://dot.net/
53+
Description:User secrets configuration provider implementation for Microsoft.Extensions.Configuration. User secrets mechanism enables you to override application configuration settings with values stored in the local secrets file. You can use UserSecretsConfigurationExtensions.AddUserSecrets extension method on IConfigurationBuilder to add user secrets provider to the configuration builder.
54+
licenseUrl:https://licenses.nuget.org/MIT
55+
license Type:MIT
56+
4157
####################################################################################################
4258
Package:Microsoft.Extensions.Http
4359
Version:6.0.1
@@ -68,12 +84,20 @@ license Type:MIT
6884

6985
####################################################################################################
7086
Package:Newtonsoft.Json
71-
Version:13.0.1
87+
Version:13.0.3
7288
project URL:https://www.newtonsoft.com/json
7389
Description:Json.NET is a popular high-performance JSON framework for .NET
7490
licenseUrl:https://licenses.nuget.org/MIT
7591
license Type:MIT
7692

93+
####################################################################################################
94+
Package:Polly
95+
Version:8.5.2
96+
project URL:https://github.com/App-vNext/Polly
97+
Description:Polly is a .NET resilience and transient-fault-handling library that allows developers to express resilience and transient fault handling policies such as Retry, Circuit Breaker, Timeout, Bulkhead Isolation, and Fallback in a fluent and thread-safe manner.
98+
licenseUrl:https://licenses.nuget.org/BSD-3-Clause
99+
license Type:BSD-3-Clause
100+
77101
####################################################################################################
78102
Package:System.ComponentModel.Annotations
79103
Version:5.0.0
@@ -96,32 +120,3 @@ When using NuGet 3.x this package requires at least version 3.4.
96120
licenseUrl:https://licenses.nuget.org/MIT
97121
license Type:MIT
98122

99-
100-
This project includes data from the following external resources:
101-
102-
1. **Xetra Instruments Data**:
103-
- URL: https://www.xetra.com/resource/blob/1528/76087c675c856fe7720917da03a62a34/data/t7-xetr-allTradableInstruments.csv
104-
- License: Please refer to Xetra's terms of service or data usage policy at https://www.xetra.com/xetra-de/instrumente/alle-handelbaren-instrumente
105-
106-
2. **S&P 500 Symbols (DatahubIo)**:
107-
- URL: https://raw.githubusercontent.com/datasets/s-and-p-500-companies-financials/refs/heads/main/data/constituents-financials.csv
108-
- License: This dataset is licensed under the Public Domain Dedication and License (PDDL). The PDDL allows unrestricted use, sharing, modification, and distribution of the data for any purpose, including commercial use.
109-
- Notice: The PDDL allows unrestricted use, modification, and distribution of the data. The MIT/BSD licenses permit free use of the code with attribution and disclaimers. While formal credit is not required, it is recommended to include a link back or provide credit to Rufus Pollock and the Open Knowledge Foundation.
110-
111-
3. **NASDAQ Symbols (DatahubIo)**:
112-
- URL: https://raw.githubusercontent.com/datasets/nasdaq-listings/refs/heads/main/data/nasdaq-listed-symbols.csv
113-
- License: This dataset is licensed under the Public Domain Dedication and License (PDDL). The PDDL allows unrestricted use, sharing, modification, and distribution of the data for any purpose, including commercial use.
114-
- Notice: The data originates from the NASDAQ OMX Group, which retains copyright over the original information. Users should review the copyright notice of the source dataset to ensure compliance with any specific restrictions regarding public or commercial use.
115-
- Source Data Copyright: Copyright © 2010, The NASDAQ OMX Group, Inc. All rights reserved.
116-
117-
4. **Yahoo Finance Data**:
118-
- URL: https://finance.yahoo.com/
119-
- License: Please review Yahoo Finance's terms of service at https://legal.yahoo.com/us/en/yahoo/terms/otos/index.html
120-
121-
5. **Alpha Vantage API**:
122-
Usage: This application uses the Alpha Vantage API to retrieve financial data. The API is used in accordance with Alpha Vantage's Terms of Service.
123-
Attribution Requirement:Per Alpha Vantage's terms, users must provide attribution to Alpha Vantage when displaying data retrieved from the API.
124-
Note: For more information, visit the Alpha Vantage API Documentation https://www.alphavantage.co/documentation/.
125-
126-
127-
Please review the associated licenses to ensure proper usage and attribution.

release-notes/v1.0.8.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
### What's Changed
2+
3+
* Updated NuGet package dependencies to latest versions for improved stability and compatibility.
4+

src/Finance.NET.csproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,31 @@
1010
<EnforceCodeStyleInBuild>True</EnforceCodeStyleInBuild>
1111
<LangVersion>latest</LangVersion>
1212
<GenerateDocumentationFile>true</GenerateDocumentationFile>
13-
14-
<PackageId>Finance.NET</PackageId>
15-
<Version>1.0.7</Version>
13+
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
14+
<PackageId>Finance.NET</PackageId>
15+
<Version>1.0.8</Version>
1616
<Authors>Thorsten Alpers</Authors>
1717
<Owners>Thorsten Alpers</Owners>
1818
<Description>Access financial data from Yahoo Finance and other sources.</Description>
1919
<PackageProjectUrl>https://github.com/thorstenalpers/Finance.NET</PackageProjectUrl>
2020
<RepositoryUrl>https://github.com/thorstenalpers/Finance.NET</RepositoryUrl>
21-
<PackageTags>Finance.NET;Yahoo;DataHub;Alpha Vantage;Nasdaq;Xetra;Finance;Trading</PackageTags>
21+
<PackageTags>Finance.NET;Yahoo;Yahoo Finance;DataHub;Alpha Vantage;Nasdaq;Xetra;Finance;Trading</PackageTags>
2222
<Copyright>Copyright 2024-2025</Copyright>
2323
<RepositoryType>git</RepositoryType>
2424
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2525
<PackageIcon>logo.png</PackageIcon>
2626
<PackageReadmeFile>README.md</PackageReadmeFile>
2727
</PropertyGroup>
2828
<ItemGroup>
29-
<PackageReference Include="AngleSharp" Version="1.1.2" />
30-
<PackageReference Include="AngleSharp.XPath" Version="2.0.4" />
29+
<PackageReference Include="AngleSharp" Version="1.3.0" />
30+
<PackageReference Include="AngleSharp.XPath" Version="2.0.5" />
3131
<PackageReference Include="Ardalis.GuardClauses" Version="5.0.0" />
3232
<PackageReference Include="AutoMapper" Version="10.1.1" />
3333
<PackageReference Include="CsvHelper" Version="33.0.1" />
3434
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.1" />
3535
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.4" />
36-
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
37-
<PackageReference Include="Polly" Version="7.2.4" />
36+
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
37+
<PackageReference Include="Polly" Version="8.5.2" />
3838
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
3939
</ItemGroup>
4040

0 commit comments

Comments
 (0)