I was able to download data from Google Finance, for example:
import pandas as pd from pandas_datareader import data as web import datetime start = datetime.datetime(2016,1,1) end = datetime.date.today() apple = web.DataReader('aapl', 'google', start, end)
I thought I could use the same structure for index data. But this does not work:
spx = web.DataReader('INDEXSP', 'google', start, end) RemoteDataError: Unable to read URL: http://www.google.com/finance/historical
Does Google support this for indexes?
Or do I need a different protocol?
python google-finance yahoo-finance google-finance-api quantitative-finance
trob
source share