-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All Tests from Class HistoricalTests are failing #75
Comments
I have the same problem in a .net core 8 application. Thanks! |
I found out what happened – Yahoo has closed access to downloading CSV files with historical data. Another method to get the data, using charts, is still working. I might implement it, but I can't guarantee it. |
Using charts, more exactly the url https://query2.finance.yahoo.com/v8/finance/chart, I get the following exception: |
Correct. Interestingly, the 'chart' way works without crumbs. You can try it in an Incognito browser tab: Also, I found the warning in the Python API here: That explains the 'The remote server returned an error: (429) Too Many Requests" exception. |
I switch to new api, and create new pull request (#77). Unfortunately looks like author abandon this project. Probably, later, I'll create independent fork. |
Also, Yahoo Finance often returns error 401 now. It looks like it depends on the time of day, often in the morning, and almost never in the evening or at night. |
In my code, I use a 1-second timeout between each request, which successfully works for more than 500 requests. |
Thank you @jabacrack for the fix. It helped me a lot! |
Do you have an example on how is this implemented? or a test to work it out? just getting started with this cool api and hit this issue right away... |
@joslat You can look at my merge request or my fork. |
All tests are throwing this exception:
Flurl.Http.FlurlHttpException : Call failed with status code 401 (Unauthorized):
Also in my app where I use your package - same error. One week ago it worked fine for me.
The text was updated successfully, but these errors were encountered: