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 [-b begindate] [-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.
- begindate - (Optional) the beginning 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 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".
Metadata
Release files for yahoo-quote-download 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| yahoo_quote_download-0.3.2.tar.gz | 6.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yahoo_quote_download-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.5 kB
Release files / yahoo_quote_download-0.3.2.tar.gz
| Download URL | yahoo_quote_download-0.3.2.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb05f07fc7361023a649fa3d24bd5376cb1d9e3390a5dde282c565f5a46fe30f
|
|
BLAKE2b-256 checksum How to use checksums |
93bd500e7e1c48df3c864743104a0ff5c823d2f85446b9b00d9ea7598325c58a
|
| 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.3.2-py3-none-any.whl
| Download URL | yahoo_quote_download-0.3.2-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5ce56b56c06d3f4d7431dafd73548da40f58de81924b2b6ab1c60fe3e6b5c242
|
|
BLAKE2b-256 checksum How to use checksums |
e530fba5a827e0ac7c1a40c9f0180821e2c39efd220a7f37e9204f1f110a45f5
|
| 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
|
Security for yahoo-quote-download 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.