Contents

yfinance 0.2.44

0

Download market data from Yahoo! Finance API

Download market data from Yahoo! Finance API

Stars: 13228, Watchers: 13228, Forks: 2334, Open Issues: 183

The ranaroussi/yfinance repo was created 7 years ago and the last code push was 17 hours ago.
The project is extremely popular with a mindblowing 13228 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

Author
Ran Aroussi
License
Apache
Homepage
https://github.com/ranaroussi/yfinance
PyPi:
https://pypi.org/project/yfinance/
GitHub Repo:
https://github.com/ranaroussi/yfinance

Classifiers

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

Errors

A list of common yfinance errors.

Code Examples

Here are some yfinance code examples and snippets.

  • ta code examples

    This python code example will show you how to use the ta python package to perform technical analysis on historical stock data such as RSI, SMA, Bollinger Bands, and Stochastic Oscillator.

GitHub Issues

The yfinance package has 183 open issues on GitHub

  • pandas-1.4 yfinance-0.1.69 AttributeError: 'Index' object has no attribute 'tz_localize'
  • Ticker.history: history's index is not of type DateTimeIndex when dividend and split tables are empty
  • stock.info["bookValue"] returns Book Value per Share
  • Index Components
  • Bug on cache feature
  • AAPL get_shares() does return nothing
  • AAPL dividend data is sometimes missing when using download or historical function?
  • Inconsistent results with download() and history() functions
  • How to get the stock list?
  • include the Capital Gain data in actions
  • Incomplete data
  • after hours price
  • UnboundLocalError
  • Simple ticker request, causes the get_json() requests to loop 3 times
  • fix - "period=max" returns "failed download"

See more issues on GitHub

Related Packages & Articles

pandas-datareader 0.10.0

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

akshare 1.14.95

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.

ta 0.11.0

ta is a Python module that provides a technical analysis library, designed to enable feature engineering from financial time series datasets. It is built on the pandas and numpy libraries and offers a wide range of indicators such as volume, volatility, trend, and momentum indicators. ta is designed for Python developers working in the financial sector, making it a valuable asset in the field of Financial Software and Fintech Solutions, particularly for those developing trading algorithms or investment strategies.

tensortrade 1.0.3

TensorTrade: A reinforcement learning library for training, evaluating, and deploying robust trading agents.