Skip to main content

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

Release files for yahoo-quote-download 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yahoo-quote-download 0.2.1
File Size Uploaded
yahoo_quote_download-0.2.1.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yahoo-quote-download 0.2.1
File Interpreter ABI Platform
yahoo_quote_download-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 10.7 kB

Release files / yahoo_quote_download-0.2.1.tar.gz

Download URL yahoo_quote_download-0.2.1.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4b528b290de3299ff77e4f31afa858e0c08139543cf38b35cada4fd0f8e736c8
BLAKE2b-256 checksum
How to use checksums
84ad9274ba589653b0a0204bd411613ea5e0d64d164d88edca8652f97c0ac1f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

Release files / yahoo_quote_download-0.2.1-py3-none-any.whl

Download URL yahoo_quote_download-0.2.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b2c7d5fe1ebbb20d8c145933e9f104d4210d22b76a6c901b62dc2daec0d33701
BLAKE2b-256 checksum
How to use checksums
9da28bef5e03182c23bb028f04f4e27706e5aa084fc43c5d13e47ea06bacf8c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.6.9

Release history Release notifications | RSS feed

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

This release

0.2.1 This release

2 release files

0.2.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page