Socket
Socket
Sign inDemoInstall

mini-yahoo-finance

Package Overview
Dependencies
3
Maintainers
1
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    mini-yahoo-finance

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


Maintainers
1

Readme

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.

Example

from mini_yahoo_finance import get_stock_df

df = get_stock_df('ADS.DE',
		  '01-01-2018',
		  end_date='31-01-2018',
		  interval='1d',
		  max_retries=3)

Usage

Accepted values for interval are:

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

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

Installation

git clone https://github.com/lucaionescu/mini-yahoo-finance-api.git
cd mini-yahoo-finance-api/
pip install .

Requirements

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

Keywords

FAQs


Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc