Skip to main content

Yahoo Quote Downloader

Project description

yahoo_quote_download

Introduction

This project is for downloading Yahoo financial EOD (End-of-Day) data of stock and market indexes.

Background

Yahoo has provided the EOD financial data service for a long time and it has been well-used. However, starting on May 2017, Yahoo financial has terminated that service without warning. This is confirmed by a Yahoo employee in forum posts.

However, it is later found that despite that the service has been terminated, the Yahoo financial EOD data is still available, though with some authentication steps added and some changes in format. The technical details are described in a separate document.

This project provides a way to continue obtaining the same data.

Installation

This is a Python project. So Python should be installed first. This project works with either Python2 or Python3.

To install this project On Windows / Linux, you may simply do


pip install yahoo_quote_download

Data Download

The main entry point is a commandline application. To download EOD data for a ticker, please try


yqdownload [-t ticker] [-s startdate] [-e enddate] [-f datafile]

where

  • ticker - the ticker to quote, e.g., MSFT (Microsoft) or ^DJI (Dow Jones Industrial index). Please check Yahoo financial webpage for the tickers they use.
  • startdate/enddate - the starting and ending date of the download. It is in the format of YYYY-MM-DD.
  • datafile - the file where the downloaded data is saved to. If the file exists, the existing content will be overwritten. As usual, you may use -h or --help options to see all the supported options.

Note: This sample commandline application is provided for illustration purposes. Please do not overuse or abuse the data provided by Yahoo. Losing that would be a lost to all of us. I will put together an incremental downloader when I have more time.

License

This code in this project is available through "Simplified BSD License".

Project details


Download files

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

Source Distribution

yahoo_quote_download-0.2.1.tar.gz (4.7 kB view hashes)

Uploaded Source

Built Distribution

yahoo_quote_download-0.2.1-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page