Skip to content

Instantly share code, notes, and snippets.

@amamaiev
amamaiev / download_quandl_wiki_prices.py
Created June 2, 2017 13:33 — forked from pbazard/download_quandl_wiki_prices.py
Download Quandl WIKI EOD stock prices
import requests
import zip
filename = 'wiki_prices.zip'
# Fetch the wiki_prices.zip file
r = requests.get(
'https://www.quandl.com/api/v3/datatables/WIKI/PRICES?qopts.export=true&api_key=YOUR-API-KEY')
resp = r.json()
link = r.json()['datatable_bulk_download']['file']['link']