Skip to main content

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


Download files

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

Source Distribution

download-yfinance-data-0.0.1.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

download_yfinance_data-0.0.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file download-yfinance-data-0.0.1.tar.gz.

File metadata

  • Download URL: download-yfinance-data-0.0.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for download-yfinance-data-0.0.1.tar.gz
Algorithm Hash digest
SHA256 5c35db00009ce48aabf97b9f79f2f2379a5e170842a9222a8516f03804350480
MD5 eddcdd6fb507ff29895ebf28cab6d913
BLAKE2b-256 b6e6361058890910f65024f9a0b7f9de113ec41277726278e87214efe99e0aae

See more details on using hashes here.

File details

Details for the file download_yfinance_data-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: download_yfinance_data-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for download_yfinance_data-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70429f95cc1b8ceb89c2bb9123f1202526543439d6b9799366765698be02e0b0
MD5 8c96482e3aaf4ec2f93e5f22b5b5d1ed
BLAKE2b-256 a8044d347d7adb958599fbbb5e0a0f4f061756e921ad3170c03ebf6d1e355235

See more details on using hashes here.

Supported by

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