What is Boot Camp?
Boot Camp is a great way to improve your skills and learn the QuantConnect API in easily digestible portions.
Don't have an account? Join QuantConnect Today
We are dedicated to providing investors with a cutting-edge platform for rapidly creating quant investment strategies. Founded in 2012, we've empowered more than 250,000 quants and engineers to create and trade their ideas.
Quickly and easily started with our API to build your strategy. The learning center lessons are interactive, step-by-step guides to make you productive as fast as possible.
Focus your efforts on driving alpha, not parsing CSV files. Our cloud offers hundreds of terabytes of traditional and alternative data preformatted, cleaned, and instantly accessible by our API.
Coordinate teamwork, control access permissions, and your shared cloud resources. Grow your trading organization safely and efficiently on top of our cloud architecture.
A selection of streaming live-trading strategies written by QuantConnect, and top highlights from the community available to follow and clone. Peer into detailed real-time positions to gain insight for your own trading.
What is Boot Camp?
Boot Camp is a great way to improve your skills and learn the QuantConnect API in easily digestible portions.
A collection of courses from independent educators to improve your quant skill base and create better strategies.
Solidify and expand your quant skill base with courses at QuantConnect
Learn algorithmic trading with python for US Equities. Guided strategy development in easily digestible portions.
Author: QuantConnect
Free | 95,901 People Enrolled
Learn algorithmic trading with python for FX. Guided strategy development in easily digestible portions.
Author: QuantConnect
Free | 20,557 People Enrolled
Learn algorithmic trading with python for Futures. Guided strategy development in easily digestible portions.
Author: QuantConnect
Free | 7,412 People Enrolled
In this algorithmic trading tutorial series you will learn everything you need to know to start writing your own trading bots using Python and the QuantConnect quantitative trading platform.
Author: Louis
Free | 28,725 People Enrolled
Master algorithmic trading on QuantConnect; backtest and live trade Stocks, Options, Futures, Forex, and Crypto.
Author: Cheng Li
Paid | Enroll on Udemy
Learn to use Python, Pandas, Matplotlib, and the QuantConnect Lean Engine to perform financial analysis and trading.
Author: Jose Portilla, Pierian Training
Paid | Enroll on Udemy
Learn to write programs that algorithmically trade cryptocurrencies using QuantConnect (C#).
Author: Eric Summers
Paid | Enroll on Udemy
Organization Notes
Get Started with Algorithm Lab
New Research
Optimizing a Gold-SPY Portfolio Using Hidden Markov Models for Market Downtime
Gold-SPY portfolio optimization using Hidden Markov Models for minimizing market downturn risk....
ReadAlgorithm Lab is your playground for developing and refining trading algorithms with QuantConnect. Utilize advanced tools, historical data, and robust backtesting to enhance your trading strategies. Transform your ideas into actionable insights and optimize your trading approach with ease.
Sign Up for FreeAlready have an account Log In.
This account is protected by two-factor authentication.
Request Token Information Reset My TokenCreated | Last Time Used | Agent | |
---|---|---|---|
No entries found |
To continue please enter your email:
(No google account required)
To verify that everything goes well please enter the 6 digit verification code generated by the authenticator application
Algorithm Lab is your playground for developing and refining trading algorithms with QuantConnect. Utilize advanced tools, historical data, and robust backtesting to enhance your trading strategies. Transform your ideas into actionable insights and optimize your trading approach with ease.
Sign Up for FreeAlready have an account Log In.
Please stop one of the following coding sessions, or upgrade your account.
NAME | ORGANIZATION |
---|
QuantConnect Datasets
Explore free and paid datasets available on QuantConnect covering fundamentals, pricing, and alternative options.
Datasets >
Dashboard
A transparent, community reporting system. Report suspected issues with our cloud data to be investigated by the QuantConnect Team.
Issue List
Loading...
Data Explorer Issues are a way to report and track data problems. They give the QuantConnect community a way to discuss potential solutions and be notified when they are resolved. If you think you have found a data problem please check the existing open and closed issues first; often another user may have already reported your problem.
Does your issue match any of the already listed issues?
Thank you for your contribution! Our team is currently working on resolving these issues, please subscribe to them to receive updates.
Datasets >
VIX Daily Price
Dataset by CBOE
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.
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).
The following snippet demonstrates how to request data from the VIX Daily Price dataset:
_datasetSymbol = AddData<CBOE>("VIX", Resolution.Daily).Symbol;
self.dataset_symbol = self.add_data(CBOE, "VIX", Resolution.DAILY).symbol
The following table describes the dataset properties:
Property | Value |
---|---|
Start Date | January 1990 |
Asset Coverage | 18 US Volatility Indices |
Data Density | Regular |
Resolution | Daily |
Timezone | New York |
The VIX Daily Price enables you to incorporate popular US volatility indices in your strategies. Examples include the following strategies:
For more example algorithms, see Examples.
The VIX Daily Price dataset provides CBOE objects, which have the following attributes:
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 |
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;
}
}
}
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}");
}
}
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.
To remove your subscription to VIX Daily Price data, call the RemoveSecurityremove_security method.
self.remove_security(self.dataset_symbol)
RemoveSecurity(_datasetSymbol);
The VIX Daily Price dataset provides CBOE objects, which have the following attributes:
The following example algorithm buys SPY when the ratio between VIX and VIX3M is positive. Otherwise, it holds cash.
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)
# Request SPY data for trading, since it is the underlying of VIX indices
self.spy = self.add_equity("SPY", Resolution.DAILY).symbol
# Request 1-mo and 3-mo CBOE VIX data for trade signal generation
self.vix = self.add_data(CBOE, 'VIX', Resolution.DAILY).symbol
self.vxv = self.add_data(CBOE, 'VIX3M', Resolution.DAILY).symbol
# Create a 3mo-over-1mo VIX price indicator to estimate the relative short-term volatility
# Normally 3-mo volatility should be higher due to higher time uncertainty, but if the market preceive a shock within short time, it will invert
self.vix_price = self.identity(self.vix, 1, Resolution.DAILY)
self.vxv_price = self.identity(self.vxv, 1, Resolution.DAILY)
self.ratio = IndicatorExtensions.over(self.vxv_sma, self.vix_sma)
# Plot indicators each time they update using the PlotIndicator function for data visualization
self.plot_indicator("Ratio", self.ratio)
self.plot_indicator("Data", self.vix_sma, self.vxv_sma)
# Historical data
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
# Invest in SPY if the market is not in panic, assuming the market is always uptrending
if not self.portfolio.invested and self.ratio.current.value > 1:
self.market_order(self.spy, 100)
# If the short term volatility is high, exit all positions to avoid excessive risk
elif self.ratio.current.value < 1:
self.liquidate()
using QuantConnect.DataSource;
namespace QuantConnect
{
public class CBOEDataAlgorithmAlgorithm : QCAlgorithm
{
private Symbol _spy;
private Symbol _vix;
private Symbol _vxv;
private SimpleMovingAverage _smaVIX;
private SimpleMovingAverage _smaVXV;
private IndicatorBase _ratio;
public override void Initialize()
{
SetStartDate(2014, 1, 1);
SetEndDate(2018, 1, 1);
SetCash(25000);
// Request SPY data for trading, since it is the underlying of VIX indices
_spy = AddEquity("SPY", Resolution.Daily).Symbol;
// Request 1-mo and 3-mo CBOE VIX data for trade signal generation
_vix = AddData<CBOE>("VIX", Resolution.Daily).Symbol;
_vxv = AddData<CBOE>("VIX3M", Resolution.Daily).Symbol;
// Create a 3mo-over-1mo VIX price indicator to estimate the relative short-term volatility
// Normally 3-mo volatility should be higher due to higher time uncertainty, but if the market preceive a shock within short time, it will invert
_smaVIX = SMA(_vix, 1);
_smaVXV = SMA(_vxv, 1);
_ratio = _smaVXV.Over(_smaVIX);
// Historical data
var history = History<CBOE>(_vix, 60, Resolution.Daily);
Debug($"We got {history.Count()} items from our history request");
}
public override void OnData(Slice slice)
{
// Wait for all indicators to fully initialize
if (_smaVIX.IsReady && _smaVXV.IsReady && _ratio.IsReady)
{
// Invest in SPY if the market is not in panic, assuming the market is always uptrending
if (!Portfolio.Invested && _ratio > 1)
{
MarketOrder(_spy, 100);
}
// If the short term volatility is high, exit all positions to avoid excessive risk
else if (_ratio < 1)
{
Liquidate();
}
// Plot indicators each time they update for data visualization
Plot("SMA", "VIX", _smaVIX);
Plot("SMA", "VXV", _smaVXV);
Plot("Ratio", "Value", _ratio.Current.Value);
}
}
}
}
The following example algorithm buys SPY when the ratio between VIX and VIX3M is positive. Otherwise, it holds cash.
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.universe_settings.resolution = Resolution.DAILY
# Universe contains only SPY data for trading, since it is the underlying of VIX indices
symbols = [Symbol.create("SPY", SecurityType.EQUITY, Market.USA)]
self.add_universe_selection(ManualUniverseSelectionModel(symbols))
# A custom alpha model that emit insights based on VIX data
self.add_alpha(VixRatioAlphaModel(self))
# Equal investing can evenly dissipate non-systematic capital concentration risk
self.set_portfolio_construction(EqualWeightingPortfolioConstructionModel())
class VixRatioAlphaModel(AlphaModel):
def __init__(self, algorithm: QCAlgorithm) -> None:
# Request 1-mo and 3-mo CBOE VIX data for trade signal generation
self.vix = algorithm.add_data(CBOE, 'VIX', Resolution.DAILY).symbol
self.vxv = algorithm.add_data(CBOE, 'VIX3M', Resolution.DAILY).symbol
# Create a 3mo-over-1mo VIX price indicator to estimate the relative short-term volatility
# Normally 3-mo volatility should be higher due to higher time uncertainty, but if the market preceive a shock within short time, it will invert
self.vix_sma = algorithm.SMA(self.vix, 1, Resolution.DAILY)
self.vxv_sma = algorithm.SMA(self.vxv, 1, Resolution.DAILY)
self.ratio = IndicatorExtensions.over(self.vxv_sma, self.vix_sma)
self.symbols = []
# Plot indicators each time they update using the PlotIndicator function for data visualization
algorithm.plot_indicator("Ratio", self.ratio)
algorithm.plot_indicator("Data", self.vix_sma, self.vxv_sma)
# Historical data
history = algorithm.history(CBOE, self.vix, 60, Resolution.DAILY)
algorithm.debug(f"We got {len(history.index)} items from our history request")
def update(self, algorithm: QCAlgorithm, slice: Slice) -> List[Insight]:
insights = []
# 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 insights
# Invest in SPY if the market is not in panic, assuming the market is always uptrending
if not algorithm.portfolio.invested and self.ratio.current.value > 1:
for symbol in self.symbols:
insights += [Insight.price(symbol, Expiry.ONE_MONTH, InsightDirection.UP)]
# If the short term volatility is high, exit all positions to avoid excessive risk
elif self.ratio.current.value < 1:
for symbol in self.symbols:
insights += [Insight.price(symbol, Expiry.ONE_MONTH, InsightDirection.FLAT)]
return insights
def on_securities_changed(self, algorithm: QCAlgorithm, changes: SecurityChanges) -> None:
for symbol in [x.symbol for x in changes.removed_securities]:
if symbol in self.symbols:
self.symbols.pop(symbol)
self.symbols += [x.symbol for x in changes.added_securities]
using QuantConnect.DataSource;
namespace QuantConnect
{
public class CBOEDataAlgorithmAlgorithm : QCAlgorithm
{
public override void Initialize()
{
SetStartDate(2014, 1, 1);
SetEndDate(2018, 1, 1);
SetCash(25000);
UniverseSettings.Resolution = Resolution.Daily;
// Universe contains only SPY data for trading, since it is the underlying of VIX indices
var symbols = new[] {QuantConnect.Symbol.Create("SPY", SecurityType.Equity, Market.USA)};
AddUniverseSelection(new ManualUniverseSelectionModel(symbols));
// A custom alpha model that emit insights based on VIX data
AddAlpha(new VixRatioAlphaModel(this));
// Equal investing can evenly dissipate non-systematic capital concentration risk
SetPortfolioConstruction(new EqualWeightingPortfolioConstructionModel());
}
}
public class VixRatioAlphaModel : AlphaModel
{
private Symbol _vix;
private Symbol _vxv;
private SimpleMovingAverage _smaVIX;
private SimpleMovingAverage _smaVXV;
private IndicatorBase _ratio;
private List<Symbol> _symbols;
public VixRatioAlphaModel(QCAlgorithm algorithm)
{
// Request 1-mo and 3-mo CBOE VIX data for trade signal generation
_vix = algorithm.AddData<CBOE>("VIX", Resolution.Daily).Symbol;
_vxv = algorithm.AddData<CBOE>("VIX3M", Resolution.Daily).Symbol;
// Create a 3mo-over-1mo VIX price indicator to estimate the relative short-term volatility
// Normally 3-mo volatility should be higher due to higher time uncertainty, but if the market preceive a shock within short time, it will invert
_smaVIX = algorithm.SMA(_vix, 1);
_smaVXV = algorithm.SMA(_vxv, 1);
_ratio = _smaVXV.Over(_smaVIX);
_symbols = new List<Symbol>();
// Historical data
var history = algorithm.History<CBOE>(_vix, 60, Resolution.Daily);
algorithm.Debug($"We got {history.Count()} items from our history request");
}
public override IEnumerable<Insight> Update(QCAlgorithm algorithm, Slice slice)
{
var insights = new List<Insight>();
// Wait for all indicators to fully initialize
if (_smaVIX.IsReady && _smaVXV.IsReady && _ratio.IsReady)
{
// Invest in SPY if the market is not in panic, assuming the market is always uptrending
if (!algorithm.Portfolio.Invested && _ratio > 1)
{
foreach (var symbol in _symbols)
{
insights.Add(Insight.Price(symbol, Expiry.OneMonth, InsightDirection.Up));
}
}
// If the short term volatility is high, exit all positions to avoid excessive risk
else if (_ratio < 1)
{
foreach (var symbol in _symbols)
{
insights.Add(Insight.Price(symbol, Expiry.OneMonth, InsightDirection.Flat));
}
}
// Plot indicators each time they update for data visualization
algorithm.Plot("SMA", "VIX", _smaVIX);
algorithm.Plot("SMA", "VXV", _smaVXV);
algorithm.Plot("Ratio", "Value", _ratio.Current.Value);
}
return insights;
}
public override void OnSecuritiesChanged(QCAlgorithm algorithm, SecurityChanges changes)
{
foreach (var symbol in changes.RemovedSecurities.Select(x=>x.Symbol))
{
_symbols.Remove(symbol);
}
_symbols.AddRange(changes.AddedSecurities.Select(x=> x.Symbol));
}
}
}
VIX Daily Price is allowed to be used in the cloud for personal and commercial projects for free. The data is permissioned for use within the licensed organization only
Free | Documentation
VIX Daily Price can be downloaded on premise with the LEAN CLI, for a charge per file downloaded. This download is for the licensed organization's internal LEAN use only and cannot be redistributed or converted in any format.
Starting at 5 QCC/file | Learn More
LEAN CLI is a cross-platform wrapper on the QuantConnect algorithmic trading engine called LEAN. The CLI makes using LEAN incredibly easy, reducing most of the pain points of developing and managing an algorithmic trading strategy to a few lines of bash.
Using the CLI you can download the same data QuantConnect hosts in the cloud for a small fee. These fees are per file downloaded, and are paid for in QuantConnect-Credits (QCC). We recommend purchasing credits to enable downloading.
The CLI command generator is a helpful tool to generate a copy-paste command to download this dataset from the form below.
lean data download \
--dataset "VIX Daily Price" \
--ticker "vix"
lean data download `
--dataset "VIX Daily Price" `
--ticker "vix"
Freely harness CBOE daily data in the QuantConnect Cloud for your backtesting and live trading purposes.
CBOE daily data archived in LEAN format for on premise backtesting and research. One file per index that is updated daily.
What people are saying about this
The code doesn't even compile. Says CBOE namespace doesn't exist.
Rate the Module:
This product has not received any reviews yet, be the first to post one!
Rate the Module:
Provider offers 2 licensing options
Explore free and paid datasets available on QuantConnect covering fundamentals, pricing, and alternative options.
Dataset Status from to
No Runs
OK
Degraded
Failure
Explore free and paid datasets available on QuantConnect covering fundamentals, pricing, and alternative options.
Lorem ipsum dolor sit amet conjectura lorem ipsum dolor sit amet conjectura lorem ipsum
Configuration Keys
Environment Variables
Lorem ipsum dolor sit amet conjectura lorem ipsum dolor sit amet conjectura lorem ipsum
File Link
Lorem ipsum dolor sit amet conjectura lorem ipsum dolor sit amet conjectura lorem ipsum
Lorem ipsum dolor sit amet conjectura lorem ipsum dolor sit amet conjectura lorem ipsum
Upload a manually created tar or zip file to all cloud data systems.
Add a link and click the Sync Dataset button to upload the dataset
Upload Destinations
The dataset synchronizer is an internal tool for the QuantConnect team to upload data to the
cloud data storage environments. It supports TAR files which are extracted in the root directory
of the cloud data environments.
Take extreme care to carefully structure your data TAR package with
the same folders as the LEAN data folder. Ensure all folders and file names are lowercase as Linux is case-sensitive.
Support
Algorithm Lab is your playground for developing and refining trading algorithms with QuantConnect. Utilize advanced tools, historical data, and robust backtesting to enhance your trading strategies. Transform your ideas into actionable insights and optimize your trading approach with ease.
Sign Up for FreeAlready have an account Log In.
â‘
â‘
â‘
â‘
â‘
Hover and click over the stars to rate us.
It looks like you are not fully satisfied with your experience on QuantConnect, please take a moment to let us know how we can improve our services for you:
If you have a minute to spare, please leave us a review on Trustpilot.
Stories like yours help others see the full potential of QuantConnect.
Organization Name |
---|
Upgrade to Team plan or higher to enable custom invoicing
Changes will be applied to future invoices.
Users will be able to join by following the link in the invitation email.
You’ve been invited by Jared Broad to join his G-Force Organization.
Would you like to accept the invitation?
Are you sure you want to delete the encryption key "undefined"?
Caution: We will not be able to decrypt encrypted projects without the original key.
Drag & Drop or
Keys are added to the local storage in your web browser and not uploaded to QuantConnect. To use an encrypted project on another computer you will need to bring a copy of the key.
This project is encrypted using the key .
This project will be encrypted using the key .