CBOE
VIX Daily Price
Introduction
The VIX Daily Price dataset by CBOE covers 18 US volatility indices. The data starts in January 1990 and is delivered on a daily frequency. The dataset is cached daily from the CBOE website. The volatility index measures the stock market's expectation of volatility on the market index (e.g.: S&P500) using implied volatility from its Options for a fixed time horizon.
For more information about the VIX Daily Price dataset, including CLI commands and pricing, see the dataset listing.
About the Provider
The Chicago Board Options Exchange (CBOE) is the largest U.S. options exchange with annual trading volume that hovered around 1.27 billion contracts at the end of 2014. CBOE offers Options on over 2,200 companies, 22 Equity indices, and 140 exchange-traded funds (ETFs).
Example Applications
The VIX Daily Price enables you to incorporate popular US volatility indices in your strategies. Examples include the following strategies:
- Understanding the stock market's level of expected forward-looking volatility, also known as the "fear index". When the VIX starts moving higher, it is telling you that traders are getting nervous. When the VIX starts moving lower, it is telling you that traders are gaining confidence.
- Determining forward-looking volatility by comparing the VIX against volatility indices with other volatility. By comparing the value of the VIX to the value of the VIX3M, you can identify periods when trader sentiment has turned extremely bearish and when it has normalized.
For more example algorithms, see Examples.
Supported Indicies
The following table shows the volatility indices in the VIX Daily Price dataset:
Ticker | Index | Expiry | Start Date | Data Points |
VIX | S&P500 | 30 Days | May 2022 | OHLC |
VIX1D | S&P500 | 1 Day | Apr 2011 | OHLC |
VIX9D | S&P500 | 9 Days | Apr 2011 | OHLC |
VIX3M | S&P500 | 3 Months | Sep 2009 | OHLC |
VIX6M | S&P500 | 6 Months | Jan 2008 | OHLC |
VIX1Y | S&P500 | 1 Year | Jan 2007 | OHLC |
VXO | S&P100 | 30 Days | Feb 1993 | OHLC |
VXN | Nasdaq 100 | 30 Days | Sep 2009 | OHLC |
RVX | Russell 2000 | 30 Days | Sep 2009 | OHLC |
VVIX | VIX | 30 Days | Mar 2006 | Close |
TYVIX | 10-year US Treasury Note | 30 Days | Jan 2003 | OHLC |
VXTLT | 20-year US Treasury Bond | 30 Days | Jan 2004 | Close |
VXEEM | MSCI Emerging Markets | 30 Days | Mar 2011 | OHLC |
OVX | United States Oil Fund (USO) | 30 Days | Sep 2009 | Close |
GVZ | SPDR Gold Shares ETF (GLD) | 30 Days | Sep 2009 | Close |
FVX | 5 Year Treasury Yield Index | 30 Days | Dec 1993 | Close |
VXEFA | EFA VIX Index | 30 Days | Jan 2008 | OHLC |
VXAPL | Apple VIX Index | 30 Days | Jan 2011 | OHLC |
VXAZN | Amazon VIX Index | 30 Days | Jan 2011 | OHLC |
VXGOG | Google VIX Index | 30 Days | Jan 2011 | OHLC |
VXGS | Goldman Sachs VIX Index | 30 Days | Jan 2011 | OHLC |
VXIBM | IBM VIX Index | 30 Days | Jan 2011 | OHLC |
VXD | DJIA VIX Index | 30 Days | Sep 2009 | OHLC |
Requesting Data
To add VIX Daily Price data to your algorithm, call the AddDataadd_data method. Save a reference to the dataset Symbol so you can access the data later in your algorithm.
class CboeDataAlgorithm(QCAlgorithm): def initialize(self) -> None: self.set_start_date(2003, 1, 1) self.set_end_date(2019, 10, 11) self.set_cash(100000) self.dataset_symbol = self.add_data(CBOE, "VIX", Resolution.DAILY).symbol
namespace QuantConnect { public class CboeDataAlgorithm : QCAlgorithm { private Symbol _datasetSymbol; public override void Initialize() { SetStartDate(2003, 1, 1); SetEndDate(2019, 10, 11); SetCash(100000); _datasetSymbol = AddData<CBOE>("VIX", Resolution.Daily).Symbol; } } }
Accessing Data
To get the current VIX Daily Price data, index the current Slice with the dataset Symbol. Slice objects deliver unique events to your algorithm as they happen, but the Slice may not contain data for your dataset at every time step. To avoid issues, check if the Slice contains the data you want before you index it.
def on_data(self, slice: Slice) -> None: if slice.contains_key(self.dataset_symbol): data_point = slice[self.dataset_symbol] self.log(f"{self.dataset_symbol} close at {slice.time}: {data_point.close}")
public override void OnData(Slice slice) { if (slice.ContainsKey(_datasetSymbol)) { var dataPoint = slice[_datasetSymbol]; Log($"{_datasetSymbol} close at {slice.Time}: {dataPoint.Close}"); } }
Historical Data
To get historical VIX Daily Price data, call the Historyhistory method with the dataset Symbol. If there is no data in the period you request, the history result is empty.
# DataFrame history_df = self.history(self.dataset_symbol, 100, Resolution.DAILY) # Dataset objects history_bars = self.history[CBOE](self.dataset_symbol, 100, Resolution.DAILY)
var history = History<CBOE>(_datasetSymbol, 100, Resolution.Daily);
For more information about historical data, see History Requests.
Example Applications
The VIX Daily Price enables you to incorporate popular US volatility indices in your strategies. Examples include the following strategies:
- Understanding the stock market's level of expected forward-looking volatility, also known as the "fear index". When the VIX starts moving higher, it is telling you that traders are getting nervous. When the VIX starts moving lower, it is telling you that traders are gaining confidence.
- Determining forward-looking volatility by comparing the VIX against volatility indices with other volatility. By comparing the value of the VIX to the value of the VIX3M, you can identify periods when trader sentiment has turned extremely bearish and when it has normalized.
For more example algorithms, see Examples.