Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Did yfinance and yahoo_fin for Python stop working recently?

yfinance and yahoo_fin no longer seem to work in their entirety.

Is anyone else experiencing this problem with no financial data for any company using these packages?

Does anyone know if these have been deprecated or blocked or if yfinance and yahoo_fin are still working?

EDIT: The .history seems to be working, also the .info on some companies does work but not all.

like image 730
Anon Omiss Avatar asked Nov 30 '22 07:11

Anon Omiss


2 Answers

This fixed the issue

pip install yfinance --upgrade --no-cache-dir 
like image 161
Sri Avatar answered Dec 15 '22 11:12

Sri


I had a similar issue with yfinance. It worked in the morning of July 9 but stopped working around 5pm EST, July 9. I resolved the issue by installing the latest release, 0.1.62 (https://pypi.org/project/yfinance/#history), which was released on July 9.

Step 1: uninstall the current version of yfinance, !pip uninstall -y yfinance.

Step 2: install the current version of yfinance, pip install yfinance

I did nothing special to install version 0.1.62, but I checked that there was a folder, yfinance-0.1.62.dist-info to verify the version.

like image 34
Cam Avatar answered Dec 15 '22 10:12

Cam