yfinance 0.1.69


Download market data from Yahoo! Finance API

Download market data from Yahoo! Finance API

Stars: 6350, Watchers: 6350, Forks: 1475, Open Issues: 403

The ranaroussi/yfinance repo was created 4 years ago and was last updated 7 minutes ago.
The project is extremely popular with a mindblowing 6350 github stars!

How to Install yfinance

You can install yfinance using pip

pip install yfinance

or add it to a project with poetry

poetry add yfinance

Package Details

Ran Aroussi
GitHub Repo


  • Office/Business/Financial
  • Office/Business/Financial/Investment
  • Scientific/Engineering/Interface Engine/Protocol Translator
  • Software Development/Libraries
  • Software Development/Libraries/Python Modules
No  yfinance  pypi packages just yet.


A list of common yfinance errors.

No  yfinance  errors just yet.

Code Examples

Here are some yfinance code examples and snippets.

No  yfinance  code examples just yet.

GitHub Issues

The yfinance package as 403 open issues on GitHub

  • Resolves UnboundLocalError in history()
  • fix - "period=max" returns "failed download"
  • "recommendations" empty when the ticker contains a dot
  • Failed download:
  • Unknown Dividend Date Format
  • Error "json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)"
  • Retrieved annual cash flow of TCEHY is inconsistent with website
  • .news not working
  • Question Balance Sheet
  • Data for some dates lost
  • Adjusted Close Price Inaccurate as of 12.10.2021
  • No Exception raised when network not available -> requests ConnectionError
  • Hourly Data Missing Hour 23:00
  • No 52 Week Low/High for most ETFs
  • Tickers failed to load history when a single ticker is provided in either a list or as plain string.

See more issues on GitHub

See Also

pandas-datareader 0.10.0

Data readers extracted from the pandas codebase,should be compatible with recent pandas versions

akshare 1.3.54

AKShare is an elegant and simple financial data interface library for Python, built for human beings!

finta 1.3

Common financial technical indicators implemented in Pandas.

pandas-ta 0.3.14b

An easy to use Python 3 Pandas Extension with 130+ Technical Analysis Indicators. Can be called from a Pandas DataFrame or standalone like TA-Lib. Correlation tested with TA-Lib.