Downloads and saves Yahoo finance stock data.
Project description
download_yfinance_data
Downloads Yahoo Finance data with yfinance in Python.
Usage
It's best to customize the list of stocks you want to download. Change the list at the bottom of download_stocks.py. Then run the file: python download_stocks.py
.
You can also download the entire stocklist from NASDAQ, which should take around 15 minutes to download the data, then another few minutes to store in a sqlite db. To download all stocks, you can do:
ipython
import download_stocks as ds
ds.download_stocklist()
List of stocks
Retrieved from here: ftp://ftp.nasdaqtrader.com/symboldirectory
Notes
Currently, yfinance is correcting the OHL for dividends by using the same ratio as for the close. I think this is incorrect, and it should be using the dividends to subtract that amount from the days prior to the dividend.
To do
- Add other storage mechanisms (arctic db which uses MongoDB, postgresql, etc)
- Error checking/testing
Project details
Release history Release notifications | RSS feed
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 download-yfinance-data-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5c35db00009ce48aabf97b9f79f2f2379a5e170842a9222a8516f03804350480 |
|
MD5 | eddcdd6fb507ff29895ebf28cab6d913 |
|
BLAKE2b-256 | b6e6361058890910f65024f9a0b7f9de113ec41277726278e87214efe99e0aae |
Hashes for download_yfinance_data-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70429f95cc1b8ceb89c2bb9123f1202526543439d6b9799366765698be02e0b0 |
|
MD5 | 8c96482e3aaf4ec2f93e5f22b5b5d1ed |
|
BLAKE2b-256 | a8044d347d7adb958599fbbb5e0a0f4f061756e921ad3170c03ebf6d1e355235 |