April 2019
Intermediate to advanced
426 pages
11h 13m
English
We will be using Alpha Vantage as our data provider. Let's download the SPX and VIX datasets in the following steps:
In [ ]: from alpha_vantage.timeseries import TimeSeries # Update your Alpha Vantage API key here... ALPHA_VANTAGE_API_KEY = 'PZ2ISG9CYY379KLI' ts = TimeSeries(key=ALPHA_VANTAGE_API_KEY, output_format='pandas') df_spx_data, meta_data = ts.get_daily_adjusted( symbol='^GSPC', outputsize='full')
In [ ]: df_vix_data, meta_data = ts.get_daily_adjusted( symbol='^VIX', outputsize='full')
In [ ...