April 2019
Intermediate to advanced
426 pages
11h 13m
English
The following code retrieves the Dow component datasets from Quandl. The data provider that we will be using is WIKI Prices, a community formed by members of the public and that provides datasets free of charge back to the public. Such data isn't free from errors, so please use them with caution. At the time of writing, this data feed is no longer supported actively by the Quandl community, though past datasets are still available for use. We will download historical daily closing prices for 2017:
In [ ]: import quandl QUANDL_API_KEY = 'BCzkk3NDWt7H9yjzx-DY' # Your own Quandl key here quandl.ApiConfig.api_key = QUANDL_API_KEY SYMBOLS = [ 'AAPL','MMM', 'AXP', 'BA', 'CAT', 'CVX', 'CSCO', 'KO', ...