Skip to main content

Download and store historical stock data to a Pandas dataframe using the Yahoo! Finance API.

Project description

Minimal Yahoo! Finance API

A minimal library for downloading stock data from Yahoo! Finance into a Pandas DataFrame.

Since I am using this functionality for some time now, I thought I might as well write up this code nicely into a library and make it available.


from mini_yahoo_finance_api import get_stock_df

df = get_stock_df(stock_name='ADS.DE',


Accepted values for interval are:

  • 1d (default)
  • 1wk
  • 1mo

If no end_date is provided, the current date will be used.


pip install mini-yahoo-finance-api


  • BeautifulSoup
  • Pandas
  • Requests

Possible future to-dos

  • remove BeautifulSoup dependency
  • bulk download of multiple stocks using multithreading

Suggestions or problems? Don't hesitate to contact me or open a pull request!

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
mini_yahoo_finance_api-0.0.4-py3-none-any.whl (3.8 kB) Copy SHA256 hash SHA256 Wheel py3
mini_yahoo_finance_api-0.0.4.tar.gz (2.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page