This repo contains a humble attempt at temporarily fixing the yfinance package for fetching financial data.
-
I could only fetch consistent data for the US market. For other stock exchanges, please, be sure to validate the data extracted with the official Yahoo Finance Website.
-
As an alternative, I adapted the code by Matt Button. Unfortunately, this will only fetch yearly data (no quarterly available). If you need info from other markets than the US, try using the dev branch of this fork: !pip install https://github.com/rodrigobercini/yfinance@dev
If you need financial data, I'd definitely recommend you to check the yahoo-query package by dpguthrie, which seems to be the best API for extracting financial data from Yahoo Finance. The data is available annualy and quarterly