JerBouma / ThePassiveInvestor

Passive Investing for the Average Joe
https://www.jeroenbouma.com/
MIT License
538 stars 68 forks source link

Issue with yahooquery/fc.yahoo.com causing theprivateinvestor not to work #10

Closed niko-ger closed 8 months ago

niko-ger commented 10 months ago

Hi Jeroen,

There seems to be a problem with yahooquery/fc.yahoo.com that causes various applications, including your package thepassiveinvestor, to be unable to retrieve information for any ticker.

More details here: YahooQueryIssue

I personally kept getting the following error in the beginning: ConnectionError: HTTPSConnectionPool(host= fc.yahoo.com , port=443): Max retries exceeded with url: / (Caused by ReadTimeoutError( HTTPSConnectionPool(host= fc.yahoo.com , port=443): Read timed out. (read timeout=5) ))

And then I tried to follow some of the suggested solutions (I am based in Europe/Germany) but none worked for me. I also tried with different versions of yahooquery (the one I got when installing your package was 2.3.3, but what the posts recommended were more recent ones - 2.3.5 or 2.3.7 - but also none of those worked).

Now I am getting from thepassiveinvestor package this error: see the attached pic.

code_error

I was wondering if you have an idea how this can be fixed. Thanks in advance.

Kind regards, Niko

JerBouma commented 10 months ago

Hi Niko, I am going to have a look if I can make the package a bit more robust. Unfortunately, the reliance on Yahoo Finance makes this package a bit unstable. Perhaps give the Finance Toolkit a shot to see if it fits your needs? It also accepts ETFs.

JerBouma commented 8 months ago

Fixed the issue, it unfortunately will always be a bit unstable.

image