Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions release-notes/v1.3.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### What's Changed

* New `FinanceNetAccessDeniedException` (derives from `FinanceNetException`) for a request Alpha Vantage refuses for the account: a premium-only endpoint called with a free key, or an invalid or missing API key. It is thrown by all four Alpha Vantage methods, is excluded from the retry policy and is not wrapped, so `InnerException` is null. Such a call now fails in well under a second instead of running through the whole back-off budget, which took several minutes. Thanks to @werwolfby for the report and the fix.
* An Alpha Vantage rate-limit notice stays a retryable `FinanceNetException`. `GetOverviewAsync` previously read the notice as an empty overview and reported `FinanceNetNoDataException` without retrying.
* `GetRecordsAsync` still calls `TIME_SERIES_DAILY_ADJUSTED`, which Alpha Vantage serves to premium keys only. With a free key it now fails immediately with `FinanceNetAccessDeniedException`.

### Behaviour Changes

* Existing `catch (FinanceNetException)` blocks keep working. Code that matches on the exact exception type or on the message of a refused Alpha Vantage request needs updating, because the type is now `FinanceNetAccessDeniedException` and the message changed.
2 changes: 1 addition & 1 deletion src/Finance.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>
<PackageId>Finance.NET</PackageId>
<Version>1.2.1</Version>
<Version>1.3.0</Version>
<Authors>Thorsten Alpers</Authors>
<Owners>Thorsten Alpers</Owners>
<Description>A .NET library for retrieving real-time and historical financial data from Yahoo Finance and other popular sources.</Description>
Expand Down
Loading