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,942 People Enrolled
Learn algorithmic trading with python for FX. Guided strategy development in easily digestible portions.
Author: QuantConnect
Free | 20,566 People Enrolled
Learn algorithmic trading with python for Futures. Guided strategy development in easily digestible portions.
Author: QuantConnect
Free | 7,417 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,749 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 >
US Future Option Universe
Dataset by QuantConnect
The US Future Option Universe dataset by QuantConnect lists the available US Future Options contracts and the current open interest. The data covers 16 Monthly Future contracts, starts in January 2012, and is delivered on a daily update frequency. This dataset is created by monitoring the trading activity on the CME, CBOT, NYMEX, and COMEX markets.
This dataset does not contain market data. For market data, see US Future Options by AlgoSeek.
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.
The following snippet demonstrates how to request data from the US Future Options Universe dataset:
future = self.add_future(Futures.Metals.GOLD, Resolution.MINUTE)
future.set_filter(0, 90)
self.add_future_option(future.symbol, lambda universe: universe.strikes(-1, 1))
var future = AddFuture(Futures.Metals.Gold, Resolution.Minute);
future.SetFilter(0, 90);
AddFutureOption(future.Symbol, universe => universe.Strikes(-1, 1));
The following table describes the dataset properties:
Property | Value |
---|---|
Start Date | January 2012 |
Asset Coverage | 16 Monthly Future Contracts. Standard expires only. No weeklies or 0DTE contracts. |
Data Density | Dense |
Resolution | Daily |
Timezone | New York |
Market Hours | Regular and Extended |
The US Future Options dataset enables you to accurately design Future Option strategies. Examples include the following strategies:
For more example algorithms, see Examples.
The US Future Options Universe dataset provides OptionUniverse objects, which have the following attributes:
To view the supported assets in the US Future Options Universe dataset, see the Data Explorer.
To add US Future Options Universe data to your algorithm, call the AddFutureOptionadd_future_option method. To define which contracts should be in your universe, specify the filter when requesting the Future Option data.
The AddFutureOptionadd_future_option method provides a daily stream of Option chain data. To get the most recent daily chain, call the OptionChainoption_chain method with the underlying Future Symbol. The OptionChainoption_chain method returns data on all the tradable contracts, not just the contracts that pass your universe filter.
class USFutureOptionsDataAlgorithm(QCAlgorithm):
def initialize(self) -> None:
self.set_start_date(2020, 6, 1)
self.set_end_date(2021, 6, 1)
self.set_cash(100000)
self.universe_settings.asynchronous = True
self.future = self.add_future(Futures.Metals.GOLD, Resolution.MINUTE)
self.future.set_filter(0, 90)
# Set our strike/expiry filter for this option chain
self.add_future_option(self.future.symbol, self._option_filter)
def on_data(self, slice: Slice) -> None:
# Get the entire Option chain for the current day.
symbol = Symbol.create_canonical_option(self.future.mapped)
chain = self.option_chain(symbol, flatten=True).data_frame
def _option_filter(self, universe: OptionFilterUniverse) -> OptionFilterUniverse:
# Contracts can be filtered by strike, and expiration
return universe.strikes(-1, 1)
namespace QuantConnect
{
public class USFutureOptionsDataAlgorithm : QCAlgorithm
{
private Future _future;
public override void Initialize()
{
SetStartDate(2020, 6, 1);
SetEndDate(2021, 6, 1);
SetCash(100000);
UniverseSettings.Asynchronous = true;
_future = AddFuture(Futures.Metals.Gold, Resolution.Minute);
_future.SetFilter(0, 90);
// Set our strike/expiry filter for this option chain
AddFutureOption(_future.Symbol, OptionFilter);
}
public override void OnData(Slice slice)
{
// Create canonical symbol for the mapped future contract, since option chains are mapped by canonical symbol.
var symbol = QuantConnect.Symbol.CreateCanonicalOption(_future.Mapped);
// Get the entire Option chain for the current day.
var chain = OptionChain(symbol);
}
private virtual OptionFilterUniverse OptionFilter(OptionFilterUniverse universe)
{
// Contracts can be filtered by strike, and expiration
return universe.Strikes(-1, 1);
}
}
}
The Future resolution must be less than or equal to the Future Option resolution. For example, if you set the Future resolution to minute, then you must set the Future Option resolution to minute, hour, or daily.
For more information about creating US Future Option universes, see Future Options.
You can get historical US Future Options Universe data in an algorithm and the Research Environment.
To get historical US Future Options Universe data in an algorithm, call the History<OptionUniverse>history method with the canonical mapped Future Option Symbol. This method returns data on all of the tradable contracts, not just the contracts that pass your universe filter. If there is no data in the period you request, the history result is empty.
future_option_symbol = Symbol.create_canonical_option(self.future.mapped)
# DataFrame
history_df = self.history(future_option_symbol, timedelta(10), flatten=True)
# OptionUniverse objects
history = self.history[OptionUniverse](future_option_symbol, timedelta(10))
var futureOptionSymbol = QuantConnect.Symbol.CreateCanonicalOption(_future.Mapped);
var history = History<OptionUniverse>(futureOptionSymbol, TimeSpan.FromDays(10)).ToList();
For more information about historical US Future Options Universe data in algorithms, see Historical Data.
To get historical US Future Options Universe data in the Research Environment, call the History<OptionUniverse>history method with the canonical Option Symbol. This method returns data on all of the tradable contracts, not just the contracts that pass your universe filter.
qb = QuantBook()
future = qb.add_future(Futures.Metals.GOLD, Resolution.MINUTE)
future.set_filter(0, 90)
symbol = Symbol.create_canonical_option(future.mapped)
history = qb.history(symbol, datetime(2020, 6, 1), datetime(2020, 6, 5), flatten=True)
var qb = new QuantBook();
var future = qb.AddFuture(Futures.Metals.Gold, Resolution.Minute);
var symbol = QuantConnect.Symbol.CreateCanonicalOption(future.Mapped);
var history = qb.History<OptionUniverse>(symbol, new DateTime(2020, 6, 1), new DateTime(2020, 6, 6));
foreach (var chain in history)
{
var endTime = chain.EndTime;
var filteredContracts = chain.Data
.Select(contract => contract as OptionUniverse)
.Where(contract => contract.Greeks.Delta > 0.3m);
foreach (var contract in filteredContracts)
{
var price = contract.Price;
var iv = contract.ImpliedVolatility;
}
}
For more information about historical Future Options Universe data in the Research Environment, see Universes.
The US Future Options Universe dataset provides OptionUniverse objects, which have the following attributes:
The following example demonstrates a bull call spread Option strategy using universe filtering.
class FutureOptionAlgorithm(QCAlgorithm):
def initialize(self) -> None:
self.set_start_date(2020,1,1)
# Filter the underlying continuous Futures to narrow the FOP spectrum.
self.underlying = self.add_future(Futures.Indices.SP_500_E_MINI,
extended_market_hours=True,
data_mapping_mode=DataMappingMode.OPEN_INTEREST,
data_normalization_mode=DataNormalizationMode.BACKWARDS_RATIO,
contract_depth_offset=0)
self.underlying.set_filter(0, 182)
# Use CallSpread filter to obtain the 2 best-matched contracts that forms a call spread.
# It simplifies from further filtering and reduce computation on redundant subscription.
self.add_future_option(self.underlying.symbol, lambda u: u.call_spread(5, 5, -5))
def on_data(self, slice: Slice) -> None:
if self.portfolio.invested:
return
# Create canonical symbol for the mapped future contract, since we need that to access the option chain.
symbol = Symbol.create_canonical_option(self.underlying.mapped)
# Get option chain data for the mapped future only.
# It requires 2 contracts with different strikes to form a call spread, so we make sure at least 2 contracts are present.
chain = slice.option_chains.get(symbol)
if not chain or len(list(chain)) < 2:
return
# Separate the contracts by strike, as we need to access their strike.
expiry = min([x.expiry for x in chain])
sorted_by_strike = sorted([x.strike for x in chain])
itm_strike = sorted_by_strike[0]
otm_strike = sorted_by_strike[-1]
# Use abstraction method to order a bull call spread to avoid manual error.
option_strategy = OptionStrategies.bull_call_spread(symbol, itm_strike, otm_strike, expiry)
self.buy(option_strategy, 1)
public class FutureOptionAlgorithm : QCAlgorithm
{
private Future _underlying;
public override void Initialize()
{
SetStartDate(2020,1,1);
// Filter the underlying continuous Futures to narrow the FOP spectrum.
_underlying = AddFuture(Futures.Indices.SP500EMini,
extendedMarketHours: true,
dataMappingMode: DataMappingMode.OpenInterest,
dataNormalizationMode: DataNormalizationMode.BackwardsRatio,
contractDepthOffset: 0);
_underlying.SetFilter(0, 182);
// Use CallSpread filter to obtain the 2 best-matched contracts that forms a call spread.
// It simplifies from further filtering and reduce computation on redundant subscription.
AddFutureOption(_underlying.Symbol, (u) => u.CallSpread(5, 5, -5));
}
public override void OnData(Slice slice)
{
if (Portfolio.Invested)
return;
// Create canonical symbol for the mapped future contract, since we need that to access the option chain.
var symbol = QuantConnect.Symbol.CreateCanonicalOption(_underlying.Mapped);
// Get option chain data for the mapped future only.
// It requires 2 contracts with different strikes to form a call spread, so we make sure at least 2 contracts are present.
if (!slice.OptionChains.TryGetValue(symbol, out var chain) || chain.Count() < 2)
return;
// Separate the contracts by strike, as we need to access their strike.
var expiry = chain.Min(x => x.Expiry);
var itmStrike = chain.Min(x => x.Strike);
var otmStrike = chain.Max(x => x.Strike);
// Use abstraction method to order a bull call spread to avoid manual error.
var optionStrategy = OptionStrategies.BullCallSpread(symbol, itmStrike, otmStrike, expiry);
Buy(optionStrategy, 1);
}
}
US Future Option Universe 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
US Future Option Universe 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 100 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 "US Future Option Universe" \
--data-type "universe" \
--ticker "ES" \
--market "cme" \
--start "20240330" \
--end "20250330"
lean data download `
--dataset "US Future Option Universe" `
--data-type "universe" `
--ticker "ES" `
--market "cme" `
--start "20240330" `
--end "20250330"
Free access for US Future Option universe selection on the QuantConnect Cloud. Create custom filters using implied volatility, Greeks, and open interest for the US Future Options.
On premise download of US Future Options universe data files, including price, implied volatility, Greeks, and open interest for local backtesting.
Bulk download of the entire US Future Option universe dataset
Bulk download of the entire US Future Option universe dataset
What people are saying about this
This product has not received any reviews yet, be the first to post one!
Rate the Module:
Provider offers 4 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 .