About VIX Daily Price

The VIX Daily Price dataset by CBOE covers 14 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.


About CBOE

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).


About QuantConnect

QuantConnect was founded in 2012 to serve quants everywhere with the best possible algorithmic trading technology. Seeking to disrupt a notoriously closed-source industry, QuantConnect takes a radically open-source approach to algorithmic trading. Through the QuantConnect web platform, more than 50,000 quants are served every month.


Algorithm Example

from AlgorithmImports import *
from QuantConnect.DataSource import *

class CBOEDataAlgorithmAlgorithm(QCAlgorithm):

    def initialize(self) -> None:

        self.set_start_date(2014,1,1) 
        self.set_end_date(2018,1,1)  
        self.set_cash(25000)
        
        self.spy = self.add_equity("SPY", Resolution.DAILY).symbol

        # Define the symbol and "type" of our generic data
        self.vix = self.add_data(CBOE, 'VIX', Resolution.DAILY).symbol
        self.vxv = self.add_data(CBOE, 'VIX3M', Resolution.DAILY).symbol
        
        # Set up default Indicators, these are just 'identities' of the closing price
        self.vix_sma = self.SMA(self.vix, 1, Resolution.DAILY)
        self.vxv_sma = self.SMA(self.vxv, 1, Resolution.DAILY)
        
        # This will create a new indicator whose value is smaVXV / smaVIX
        self.ratio = IndicatorExtensions.over(self.vxv_sma, self.vix_sma)
        
        # Plot indicators each time they update using the PlotIndicator function
        self.plot_indicator("Ratio", self.ratio)
        self.plot_indicator("Data", self.vix_sma, self.vxv_sma)

        history = self.history(CBOE, self.vix, 60, Resolution.DAILY)
        self.debug(f"We got {len(history.index)} items from our history request");
    
    def on_data(self, slice: Slice) -> None:
        
        # Wait for all indicators to fully initialize
        if not (self.vix_sma.is_ready and self.vxv_sma.is_ready and self.ratio.is_ready): return
        if not self.portfolio.invested and self.ratio.current.value > 1:
            self.market_order(self.spy, 100)
        elif self.ratio.current.value < 1:
            self.liquidate()

Example Applications

The VIX Daily Price enables you to incorporate popular US volatility indices in your strategies. Examples include the following strategies: