Git Product home page Git Product logo

bulk-download-quandl's Introduction

bulk-download-quandl

Quick and dirty script to download US stock ticker data (OHLCV) from Quandl, using Python asyncio.

This script downloads the entire Quandl WIKI dataset which is in public domain and at the time of this writing contains all US stock data (NYSE and NASDAQ) in daily OHLCV.

The script downloads the data to separate CSV files in a specified folder. It does not re-download the data for a symbol if it is already downloaded, which means that you can stop the script halfway and it knows when to restart. To get the latest daily data, simply delete the file(s) and re-run the script.

The download can take quite some time (a few hours) to complete depending on your settings and network speed.

Requirements

  • Python 3 with asyncio (3.4)
  • aiohttp
  • pandas

How to run

  1. Copy settings.py.sample to settings.py and put in your configurations.
  2. Run the script by python bulkdlquandl.py

Why asyncio?

I was just playing around with it and happened to need to write this. There is no particular advantage in using asyncio (vs. threads) in such a small scale.

License

MIT License.

bulk-download-quandl's People

Contributors

leonth avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.