Context
The YahooFinanceApi used to work fine at least as of a few months ago.
Here's a short program which demonstrates the issue:
using YahooFinanceApi;
var data = Yahoo.GetHistoricalAsync("MSFT", new DateTime(2021, 1, 1), DateTime.Now).Result;
Here's the result of running that program:
Unhandled exception. System.AggregateException: One or more errors occurred. (Failure to create client.)
---> System.Exception: Failure to create client.
at YahooFinanceApi.YahooClientFactory.CreateClientAsync(CancellationToken token)
at YahooFinanceApi.YahooClientFactory.GetClientAndCrumbAsync(Boolean reset, CancellationToken token)
at YahooFinanceApi.Yahoo.GetResponseStreamAsync(String symbol, Nullable`1 startTime, Nullable`1 endTime, Period period, String events, CancellationToken token)
at YahooFinanceApi.Yahoo.GetTicksAsync[ITick](String symbol, Nullable`1 startTime, Nullable`1 endTime, Period period, ShowOption showOption, Func`2 instanceFunction, CancellationToken token)
at YahooFinanceApi.Yahoo.GetHistoricalAsync(String symbol, Nullable`1 startTime, Nullable`1 endTime, Period period, CancellationToken token)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()
at Program.<Main>$(String[] args) in C:\Users\dharm\Dropbox\Documents\VisualStudio\YahooFinanceApiSpx\YahooFinanceApiSpx\Program.cs:line 3
Question
Any suggestions for getting the example program to work?
