Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 1.14 KB

README.md

File metadata and controls

14 lines (8 loc) · 1.14 KB

yfinance fix for fundamentals data

This repo contains a humble attempt at temporarily fixing the yfinance package for fetching financial data.

There are several limitations to this fix

  1. 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.

  2. 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

Highly recommended alternative

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