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,433 People Enrolled
Learn algorithmic trading with python for FX. Guided strategy development in easily digestible portions.
Author: QuantConnect
Free | 20,468 People Enrolled
Learn algorithmic trading with python for Futures. Guided strategy development in easily digestible portions.
Author: QuantConnect
Free | 7,340 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,428 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
Digital Asset Stockpile Portfolio Construction Techniques
Exploration of various techniques in managing the planned US Digital Asset Stockpile portfolio, including Heirarchical Risk Parity....
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 Equities
Dataset by AlgoSeek
The US Equities dataset by AlgoSeek is survivorship bias-free daily coverage of every stock traded in the US Securities Information Processors (SIP) CTA/UTP feed since 1998. The dataset covers approximately 27,500 securities, starts in January 1998, and is delivered in any resolution from tick to daily. The Data is collected from the full SIP feed via our Equinix co-located servers, including all trades and quotes published to every exchange as well as FINRA. Over-the-Counter (OTC) trades are not included.
This dataset depends on the US Equity Security Master dataset because the US Equity Security Master dataset contains information on splits, dividends, and symbol changes.
AlgoSeek is a leading historical intraday US market data provider offering the most comprehensive and detailed market data and analytics products in the financial industry covering Equities, Futures, Options, cash FOREX, and Cryptocurrencies. AlgoSeek data is built for quantitative trading and machine learning. For more information about AlgoSeek, visit algoseek.com.
AlgoSeek is the default US Equities dataset on QuantConnect. The following snippet demonstrates how to request data from the US Equities dataset:
self.aapl = self.add_equity("AAPL", Resolution.DAILY).symbol
_aapl = AddEquity("AAPL", Resolution.Daily).Symbol;
The following table describes the dataset properties:
Property | Value |
---|---|
Start Date | January 1998 |
Asset Coverage | 27,500 US Equities |
Data Density | Dense |
Resolution | Tick, Second, Minute, Hourly, & Daily |
Timezone | New York |
Market Hours | Regular and Extended |
The US Equities dataset enables you to accurately design Equity trading strategies. Examples include the following strategies:
For more example algorithms, see Examples.
The US Equities dataset provides TradeBar, QuoteBar, and Tick objects.
TradeBar objects have the following attributes:
QuoteBar objects have the following attributes:
Tick objects have the following attributes:
To view the supported assets in the US Equities dataset, see the Data Explorer. This dataset doesn't include Over-the-Counter (OTC) stocks.
To add US Equities data to your algorithm, call the AddEquityadd_equity method. Save a reference to the Equity Symbol so you can access the data later in your algorithm.
class USEquityDataAlgorithm(QCAlgorithm):
def initialize(self) -> None:
self.set_start_date(2018, 1, 1)
self.set_end_date(2021, 6, 1)
self.set_cash(100000)
# Subscribe to AAPL data
self.aapl = self.add_equity("AAPL", Resolution.MINUTE).symbol
namespace QuantConnect
{
public class USEquityDataAlgorithm : QCAlgorithm
{
private Symbol _symbol;
public override void Initialize()
{
SetStartDate(2018, 1, 1);
SetEndDate(2021, 6, 1);
SetCash(100000);
// Subscribe to AAPL data
_aapl = AddEquity("AAPL", Resolution.Minute).Symbol;
}
}
}
For more information about creating US Equity subscriptions, see Requesting Data or US Equity Universes.
To get the current US Equities data, index the Barsbars, QuoteBarsquote_bars, or Ticksticks properties of the current Slice with the Equity Symbol. Slice objects deliver unique events to your algorithm as they happen, but the Slice may not contain data for your security 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:
# Access data: TradeBar data
if self.aapl in slice.bars:
trade_bar = slice.bars[self.aapl]
self.log(f"{self.aapl} close at {slice.time}: {trade_bar.close}")
# Access data: QuoteBar data
if self.aapl in slice.quote_bars:
quote_bar = slice.quote_bars[self.aapl]
self.log(f"{self.aapl} bid at {slice.time}: {quote_bar.bid.close}")
# Access data: Ticks data
if self.aapl in slice.ticks:
ticks = slice.ticks[self.aapl]
for tick in ticks:
self.log(f"{self.aapl} price at {slice.time}: {tick.price}")
public override void OnData(Slice slice)
{
// Access data: TradeBar data
if (slice.Bars.ContainsKey(_symbol))
{
var tradeBar = slice.Bars[_symbol];
Log($"{_symbol} price at {slice.Time}: {tradeBar.Close}");
}
// Access data: QuoteBar data
if (slice.QuoteBars.ContainsKey(_symbol))
{
var quoteBar = slice.QuoteBars[_symbol];
Log($"{_symbol} bid at {slice.Time}: {quoteBar.Bid.Close}");
}
// Access data: Ticks data
if (slice.Ticks.ContainsKey(_symbol))
{
var ticks = slice.Ticks[_symbol];
foreach (var tick in ticks)
{
Log($"{_symbol} price at {slice.Time}: {tick.Price}");
}
}
}
You can also iterate through all of the data objects in the current Slice.
def on_data(self, slice: Slice) -> None:
# Iterate all TradeBar received
for symbol, trade_bar in slice.bars.items():
self.log(f"{symbol} close at {slice.time}: {trade_bar.close}")
# Iterate all QuoteBar received
for symbol, quote_bar in slice.quote_bars.items():
self.log(f"{symbol} bid at {slice.time}: {quote_bar.bid.close}")
# Iterate all Ticks received
for symbol, ticks in slice.ticks.items():
for tick in ticks:
self.log(f"{symbol} price at {slice.time}: {tick.price}")
public override void OnData(Slice slice)
{
// Iterate all TradeBar received
foreach (var kvp in slice.Bars)
{
var symbol = kvp.Key;
var tradeBar = kvp.Value;
Log($"{symbol} price at {slice.Time}: {tradeBar.Close}");
}
// Iterate all QuoteBar received
foreach (var kvp in slice.QuoteBars)
{
var symbol = kvp.Key;
var quoteBar = kvp.Value;
Log($"{symbol} bid at {slice.Time}: {quoteBar.Bid.Close}");
}
// Iterate all Ticks received
foreach (var kvp in slice.Ticks)
{
var symbol = kvp.Key;
var ticks = kvp.Value;
foreach (var tick in ticks)
{
Log($"{symbol} price at {slice.Time}: {tick.Price}");
}
}
}
For more information about accessing US Equities data, see Handling Data.
To get historical US Equity data, call the Historyhistory method with the Equity Symbol. If there is no data in the period you request, the history result is empty.
# DataFrame
history_df = self.history(self.aapl, 100, Resolution.DAILY)
# TradeBar objects
history_trade_bars = self.history[TradeBar](self.aapl, 100, Resolution.DAILY)
# QuoteBar objects
history_quote_bars = self.history[QuoteBar](self.aapl, 100, Resolution.MINUTE)
# Tick objects
history_ticks = self.history[Tick](self.aapl, timedelta(seconds=10), Resolution.TICK)
// TradeBar objects
var historyTradeBars = History(_symbol, 100, Resolution.Daily);
// QuoteBar objects
var historyQuoteBars = History<QuoteBar>(_symbol, 100, Resolution.Minute);
// Tick objects
var historyTicks = History<Tick>(_symbol, TimeSpan.FromSeconds(10), Resolution.Tick);
For more information about historical data, see History Requests.
To unsubscribe from a US Equity that you added with the AddEquityadd_equity method, call the RemoveSecurityremove_security method.
self.remove_security(self.aapl)
RemoveSecurity(_symbol);
The RemoveSecurityremove_security method cancels your open orders for the security and liquidates your holdings.
The US Equities dataset provides TradeBar, QuoteBar, and Tick objects.
TradeBar objects have the following attributes:
QuoteBar objects have the following attributes:
Tick objects have the following attributes:
The following example algorithm buys and holds Apple stock:
from AlgorithmImports import *
from QuantConnect.DataSource import *
class USEquityDataAlgorithm(QCAlgorithm):
def initialize(self) -> None:
self.set_start_date(2018, 1, 1)
self.set_end_date(2021, 6, 1)
self.set_cash(100000)
# Requesting single equity data, since we only trade AAPL
self.aapl = self.add_equity("AAPL", Resolution.DAILY).symbol
# Historical data
history = self.history(self.aapl, 60, Resolution.DAILY)
self.debug(f"We got {len(history)} items from our history request")
def on_data(self, slice: Slice) -> None:
# Check if the current slice containing AAPL and if we hold any position
# As we make use of the most updated price data to decide the order size
if slice.contains_key(self.aapl) and slice[self.aapl] is not None and not self.portfolio.invested:
self.set_holdings(self.aapl, 1)
using QuantConnect.DataSource;
namespace QuantConnect
{
public class USEquityDataAlgorithm : QCAlgorithm
{
private Symbol _symbol;
public override void Initialize()
{
SetStartDate(2018, 1, 1);
SetEndDate(2021, 6, 1);
SetCash(100000);
// Requesting single equity data, since we only trade AAPL
_symbol = AddEquity("AAPL", Resolution.Daily).Symbol;
// Historical data
var history = History(_symbol, 60, Resolution.Daily);
Debug($"We got {history.Count()} items from our history request");
}
public override void OnData(Slice slice)
{
// Check if the current slice containing AAPL and if we hold any position
// As we make use of the most updated price data to decide the order size
if (slice.ContainsKey(_symbol) && slice[_symbol] != null && !Portfolio.Invested)
{
SetHoldings(_symbol, 1);
}
}
}
}
The following example algorithm buys and holds Apple stock:
from AlgorithmImports import *
from QuantConnect.DataSource import *
class USEquityDataAlgorithm(QCAlgorithm):
def initialize(self) -> None:
self.set_start_date(2018, 1, 1)
self.set_end_date(2021, 6, 1)
self.set_cash(100000)
self.universe_settings.resolution = Resolution.DAILY
# To select only AAPL, use a manual selection universe
symbols = [Symbol.create("AAPL", SecurityType.EQUITY, Market.USA)]
self.add_universe_selection(ManualUniverseSelectionModel(symbols))
# Constant investment signal
self.add_alpha(ConstantAlphaModel(InsightType.PRICE, InsightDirection.UP, timedelta(days=7), 0.025, None))
# Invest in all members equally
self.set_portfolio_construction(EqualWeightingPortfolioConstructionModel())
using QuantConnect.DataSource;
namespace QuantConnect
{
public class USEquityDataAlgorithm : QCAlgorithm
{
public override void Initialize()
{
SetStartDate(2018, 1, 1);
SetEndDate(2021, 6, 1);
SetCash(100000);
UniverseSettings.Resolution = Resolution.Daily;
// To select only AAPL, use a manual selection universe
var symbols = new[] {QuantConnect.Symbol.Create("AAPL", SecurityType.Equity, Market.USA)};
AddUniverseSelection(new ManualUniverseSelectionModel(symbols));
// Constant investment signal
AddAlpha(new ConstantAlphaModel(InsightType.Price, InsightDirection.Up, TimeSpan.FromDays(7), 0.025, null));
// Invest in all members equally
SetPortfolioConstruction(new EqualWeightingPortfolioConstructionModel());
}
}
}
US Equities 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 Equities 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 "US Equities" \
--data-type "trade" \
--ticker "AAPL, MSFT" \
--resolution "daily"
lean data download `
--dataset "US Equities" `
--data-type "trade" `
--ticker "AAPL, MSFT" `
--resolution "daily"
The QuantConnect-AlgoSeek partnership provides free access to US Equities market data in QuantConnect Cloud and paid access for downloads. Downloads are distributed in LEAN format and priced according to file resolution as below. This dataset depends on the US Security Master dataset because the US Security Master dataset contains information on splits, dividends, and symbol changes.
Freely harness terabytes of US Equities data in the QuantConnect Cloud for your backtesting and live trading purposes.
US Equity Tick resolution archives in LEAN format for on premise backtesting and research. One file per ticker/day.
US Equity Second resolution archives in LEAN format for on premise backtesting and research. One file per ticker/day.
US Equity Minute resolution archives in LEAN format for on premise backtesting and research. One file per ticker/day.
US Equity Hourly resolution archives in LEAN format for on premise backtesting and research. One file per ticker.
US Equity Daily resolution archives in LEAN format for on premise backtesting and research. One file per ticker.
Bulk download minute data
Bulk download second data
Bulk download tick data
Bulk download hourly data
Bulk download of daily resolution data
Bulk download hourly data
Bulk download of daily resolution data
Bulk download minute data
Bulk download second data
Bulk download tick data
What people are saying about this
nice job
Rate the Module:
This product has not received any reviews yet, be the first to post one!
Rate the Module:
Provider offers 16 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 .