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 -f datafile [-s startdate] [-e enddate] [-m maxretries] [-v verbose] [-h]
where
- ticker - (Required) the ticker to download, e.g., MSFT (Microsoft) or ^DJI (Dow Jones Industrial index). Please check Yahoo financial webpage for the tickers they use.
- datafile - (Required) the file where the downloaded data is saved to.
- startdate - (Optional) the starting and ending date of the download in the format of YYYY-MM-DD. If not provided, the data will be incrementally downloaded based on the data in the data file. If all fails, the default is 1970-01-01.
- enddate - (Optional) the starting and ending date of the download in the format of YYYY-MM-DD. If not provided, the default is the current day.
- maxretries - (Optional) max number of retries. Occationally, the download will reach an error. This is the maximum number of retries in such cases. The default is 5.
- verbose - (Optional) verbose level. The default is 1. You may use 0 to make it really quiet.
- As usual, you may use -h or --help options to see all the supported options.
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
Built Distribution
Hashes for yahoo_quote_download-0.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04b9fa9a14e3c941cdc068f752af95a3a1a0c0e0e938987603007ab7821c567a |
|
MD5 | 294bb731d2f8ecdeff72c04b6ec14f65 |
|
BLAKE2b-256 | 4d85740ce061d7489e440e4c90777132b3e01b74998364768e76f04ac412f3b2 |
Hashes for yahoo_quote_download-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a1383b9786d421e2dd327f55e8ff4a6b75be51407630f3fdb5fcc2ade3e0bb9 |
|
MD5 | 548d1d7b2496981c893e3858da89d32a |
|
BLAKE2b-256 | 291fa39c19e9b9ec77c12e98e2bdfada3211baa47d6e51ba7b80586d00f83efc |