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 | 96,581 People Enrolled
Learn algorithmic trading with python for FX. Guided strategy development in easily digestible portions.
Author: QuantConnect
Free | 20,683 People Enrolled
Learn algorithmic trading with python for Futures. Guided strategy development in easily digestible portions.
Author: QuantConnect
Free | 7,511 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 | 29,165 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
Portfolio Construction Using Topological Data Analysis
Harnessing topological techniques to diversify SPY constituents by clustering top constituents to reduce correlation risk and drawdown....
ReadNew Announcement
Quant League Q1 2025 Results: Triton Quantitative Trading Takes the 1st Place!
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 Regulatory Alerts - Financial Sector
Dataset by RegAlytics
The US Regulatory Alerts dataset by RegAlytics tracks changes from over 8,000 globally governing bodies. The data covers over 2.5 million alerts, starts from January 2020, and is delivered on a daily basis. This dataset is created by sourcing information from over 8,000 regulators and using proprietary technology to gather and structure the regulatory data. Once prepared, the data is thoroughly reviewed by RegAlytics' team of regulatory experts and delivered each morning by 8AM for industry use.
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.
RegAlytics was founded by Mary Kopczynski, Aaron Heisler, Alexander Appugliese, and Werner Pauliks in 2019 with the goal of significantly reducing the time and cost required to mitigate regulatory risk. RegAlytics provides access to accurate and clean regulatory data from all global regulators in all sectors that is enriched by regulatory experts for risk and compliance teams everywhere. Please come to RegAlytics directly if you would like data on other sectors or countries!
The following snippet demonstrates how to request data from the US Regulatory Alerts - Financial Sector dataset:
from QuantConnect.DataSource import *
self.dataset_symbol = self.add_data(RegalyticsRegulatoryArticles, "REG").symbol
using QuantConnect.DataSource;
_datasetSymbol = AddData<RegalyticsRegulatoryArticles>("REG").Symbol;
The following table describes the dataset properties:
Property | Value |
---|---|
Start Date | January 2020 |
Coverage | 2,500,000 Alerts |
Data Density | Sparse |
Resolution | Daily |
Timezone | New York |
This regulatory dataset enables you to accurately design strategies while mitigating regulatory risk. Examples include the following strategies:
For more example algorithms, see Examples.
This regulatory alerts dataset provides RegalyticsRegulatoryArticle and RegalyticsRegulatoryArticles objects.
RegalyticsRegulatoryArticle objects have the following attributes:
RegalyticsRegulatoryArticles objects have the following attributes:
To add US Regulatory Alerts 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 RegalyticsDataAlgorithm(QCAlgorithm):
def initialize(self) -> None:
self.set_start_date(2021, 1, 1)
self.set_end_date(2021, 6, 1)
self.set_cash(100000)
self.dataset_symbol = self.add_data(RegalyticsRegulatoryArticles, "REG").symbol
namespace QuantConnect
{
public class RegalyticsDataAlgorithm : QCAlgorithm
{
private Symbol _datasetSymbol;
public override void Initialize()
{
SetStartDate(2021, 1, 1);
SetEndDate(2021, 6, 1);
SetCash(100000);
_datasetSymbol = AddData<RegalyticsRegulatoryArticles>("REG").Symbol;
}
}
}
To get the current US Regulatory Alerts 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_points = slice[self.dataset_symbol]
for data_point in data_points:
self.log(f"{self.dataset_symbol} title at {slice.time}: {data_point.title}")
public override void OnData(Slice slice)
{
if (slice.ContainsKey(_datasetSymbol))
{
var dataPoints = slice[_datasetSymbol];
foreach (var dataPoint in dataPoints)
{
Log($"{_datasetSymbol} title at {slice.Time}: {dataPoint.Title}");
}
}
}
To iterate through all of the dataset objects in the current Slice, call the Getget method.
def on_data(self, slice: Slice) -> None:
data = slice.get(RegalyticsRegulatoryArticles)
if data:
for articles in data.values():
self.log(f"{self.time} {articles.to_string()}")
for article in articles:
self.log(f"{self.dataset_symbol} article title at {slice.time}: {article.title}")
public override void OnData(Slice slice)
{
var data = slice.Get<RegalyticsRegulatoryArticles>();
if (!data.IsNullOrEmpty())
{
foreach (var articles in data.Values)
{
Log($"{Time} {articles.ToString()}");
foreach (RegalyticsRegulatoryArticle article in articles)
{
Log($"{_datasetSymbol} article title at {slice.Time}: {article.Title}");
}
}
}
}
To get historical US Regulatory Alerts 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 where the columns are the RegalyticsRegulatoryArticle attributes:
history_df = self.history(self.dataset_symbol, 100, Resolution.DAILY, flatten=True)
# Series where the values are lists of RegalyticsRegulatoryArticle objects:
history_series = self.history(self.dataset_symbol, 100, Resolution.DAILY)
# Dataset objects:
history_bars = self.history[RegalyticsRegulatoryArticles](self.dataset_symbol, 100, Resolution.DAILY)
var history = History<RegalyticsRegulatoryArticles>(_datasetSymbol, 100, Resolution.Daily);
To remove your subscription to US Regulatory Alerts data, call the RemoveSecurityremove_security method.
self.remove_security(self.dataset_symbol)
RemoveSecurity(_datasetSymbol);
The US Regulatory Alerts dataset provides RegalyticsRegulatoryArticle and RegalyticsRegulatoryArticles objects.
RegalyticsRegulatoryArticle objects have the following attributes:
RegalyticsRegulatoryArticles objects have the following attributes:
The following example algorithm sells short 100% SPY if any predetermined negative sentimental phrase was present in any of the previous day's regulatory articles. Otherwise, it buys and hold 100% SPY.
from AlgorithmImports import *
from QuantConnect.DataSource import *
class RegalyticsDataAlgorithm(QCAlgorithm):
# Pre-defined list of negative sentiment phrases as indicator for short selling, since these words will decrease confident in equity performance
negative_sentiment_phrases = ["emergency rule", "proposed rule change", "development of rulemaking"]
def initialize(self) -> None:
self.set_start_date(2022, 7, 10)
self.set_end_date(2022, 7, 15)
self.set_cash(100000)
self.spy = self.add_equity("SPY", Resolution.DAILY).symbol
# Requesting data to receive updated regulatory news for timely short selling
self.regalytics_symbol = self.add_data(RegalyticsRegulatoryArticles, "REG").symbol
# Historical data for past articles
history = self.history(self.regalytics_symbol, 7, Resolution.DAILY)
self.debug(f"We got {len(history)} items from our history request")
def on_data(self, slice: Slice) -> None:
# Only trade on regulatory news data
data = slice.Get(RegalyticsRegulatoryArticles)
if data:
for articles in data.values():
self.log(articles.to_string())
# If any of the negative phrases appeared in regulatory news, we expect a market drop for the day
if any([p in article.title.lower() for p in self.negative_sentiment_phrases for article in articles]):
self.set_holdings(self.spy, -1)
else:
self.set_holdings(self.spy, 1)
using QuantConnect.DataSource;
namespace QuantConnect
{
public class RegalyticsDataAlgorithm : QCAlgorithm
{
// Pre-defined list of negative sentiment phrases as indicator for short selling, since these words will decrease confident in equity performance
private readonly string[] _negativeSentimentPhrases = new [] {"emergency rule", "proposed rule change", "development of rulemaking"};
private Symbol _symbol, _regalyticsSymbol;
public override void Initialize()
{
SetStartDate(2022, 7, 10);
SetEndDate(2022, 7, 15);
SetCash(100000);
_symbol = AddEquity("SPY", Resolution.Daily).Symbol;
// Requesting data to receive updated regulatory news for timely short selling
_regalyticsSymbol = AddData<RegalyticsRegulatoryArticles>("REG").Symbol;
// Historical data for past articles
var history = History<RegalyticsRegulatoryArticles>(_regalyticsSymbol, 7, Resolution.Daily);
Debug($"We got {history.Count()} items from our history request");
}
public override void OnData(Slice slice)
{
// Only trade on regulatory news data
var data = slice.Get<RegalyticsRegulatoryArticles>();
if (!data.IsNullOrEmpty())
{
foreach (var articles in data.Values)
{
Log($"{Time} {articles.ToString()}");
// If any of the negative phrases appeared in regulatory news, we expect a market drop for the day
if (_negativeSentimentPhrases.Any(p => articles.Any(x =>
((RegalyticsRegulatoryArticle) x).Title.ToLower().Contains(p))))
{
SetHoldings(_symbol, -1);
}
else
{
SetHoldings(_symbol, 1);
}
}
}
}
}
}
The following example algorithm buys and holds the S&P 500 ETF, SPY. To reduce regulatory risk, it liquidates your holdings for 2 days following regulatory announcements regarding new rules.
from AlgorithmImports import *
from QuantConnect.DataSource import *
from QuantConnect.Data.UniverseSelection import *
class RegalyticsDataAlgorithm(QCAlgorithm):
def initialize(self) -> None:
self.set_start_date(2021, 1, 1)
self.set_end_date(2021, 6, 1)
self.set_cash(100000)
self.universe_settings.resolution = Resolution.DAILY
# Trade SPY as the proxy of the whole equity market movement on the regulatory news
symbols = [ Symbol.create("SPY", SecurityType.EQUITY, Market.USA) ]
self.add_universe_selection(ManualUniverseSelectionModel(symbols))
self.add_alpha(RegAnalyticsAlphaModel(self))
self.set_portfolio_construction(EqualWeightingPortfolioConstructionModel(lambda time: None))
self.add_risk_management(NullRiskManagementModel())
self.set_execution(ImmediateExecutionModel())
class RegAnalyticsAlphaModel(AlphaModel):
symbols = []
last_news_date = datetime.min
target_direction = InsightDirection.UP
# Pre-defined list of negative sentiment phrases as indicator for short selling, since these words will decrease confident in equity performance
negative_sentiment_phrases = ["emergency rule", "proposed rule change", "development of rulemaking"]
# Assuming the negative impact of the regulatory news will last for 2 days
news_affect_duration = timedelta(days = 2)
def __init__(self, algorithm: QCAlgorithm) -> None:
# Requesting data to receive updated regulatory news for timely short selling
self.regalytics_symbol = algorithm.add_data(RegalyticsRegulatoryArticles, "REG").symbol
# Historical data for past articles
history = algorithm.history(self.regalytics_symbol, 14, Resolution.DAILY)
algorithm.debug(f"We got {len(history)} from our history request")
def update(self, algorithm: QCAlgorithm, slice: Slice) -> List[Insight]:
insights = []
# Only trade on regulatory news data
if slice.contains_key(self.regalytics_symbol) and slice[self.regalytics_symbol] is not None:
articles = slice[self.regalytics_symbol]
title = [article.title.lower() for article in articles]
# If any of the negative phrases appeared in regulatory news, we expect a market drop for the day
# Signal an exit from the market when regulatory articles with negative sentiment are released
for phrase in self.negative_sentiment_phrases:
if any(phrase in title):
self.target_direction = InsightDirection.FLAT
self.last_news_date = slice.time
# Signal an entry if we've waited long enough for the market to digest the negative news
if self.last_news_date + self.news_affect_duration < slice.time:
self.target_direction = InsightDirection.UP
for symbol in self.symbols:
# Ensure we have security data in the current Slice to avoid stale fill
if not (slice.contains_key(symbol) and slice[symbol] is not None):
continue
if self.target_direction == InsightDirection.UP and not algorithm.portfolio[symbol].invested:
insights += [Insight.price(symbol, timedelta(days=90), InsightDirection.UP)]
elif self.target_direction == InsightDirection.FLAT and algorithm.portfolio[symbol].invested:
insights += [Insight.price(symbol, self.news_affect_duration, InsightDirection.FLAT)]
return insights
def on_securities_changed(self, algorithm: QCAlgorithm, changes: SecurityChanges) -> None:
for security in changes.added_securities:
self.symbols.append(security.symbol)
for security in changes.removed_securities:
symbol = security.symbol
if symbol in self.symbols:
self.symbols.remove(symbol)
using QuantConnect.DataSource;
using QuantConnect.Data.UniverseSelection;
namespace QuantConnect
{
public class RegalyticsDataAlgorithm : QCAlgorithm
{
public override void Initialize()
{
SetStartDate(2021, 1, 1);
SetEndDate(2021, 6, 1);
SetCash(100000);
UniverseSettings.Resolution = Resolution.Daily;
// Trade SPY as the proxy of the whole equity market movement on the regulatory news
AddUniverseSelection(
new ManualUniverseSelectionModel(
QuantConnect.Symbol.Create("SPY", SecurityType.Equity, Market.USA)
));
AddAlpha(new RegAnalyticsAlphaModel(this));
SetPortfolioConstruction(new EqualWeightingPortfolioConstructionModel(time => null));
AddRiskManagement(new NullRiskManagementModel());
SetExecution(new ImmediateExecutionModel());
}
public class RegAnalyticsAlphaModel : AlphaModel
{
private List<Symbol> _symbols = new List<Symbol>();
private Symbol _regalyticsSymbol;
private DateTime _lastNewsDate = DateTime.MinValue;
private InsightDirection _targetDirection = InsightDirection.Up;
// Pre-defined list of negative sentiment phrases as indicator for short selling, since these words will decrease confident in equity performance
private string[] _negativeSentimentPhrases = new string[] {"emergency rule", "proposed rule change", "development of rulemaking"};
// Assuming the negative impact of the regulatory news will last for 2 days
private TimeSpan _newsAffectDuration = TimeSpan.FromDays(2);
public RegAnalyticsAlphaModel(QCAlgorithm algorithm)
{
// Requesting data to receive updated regulatory news for timely short selling
_regalyticsSymbol = algorithm.AddData<RegalyticsRegulatoryArticles>("REG").Symbol;
// Historical data for past articles
var history = algorithm.History<RegalyticsRegulatoryArticles>(_regalyticsSymbol, 14, 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>();
// Only trade on regulatory news data
if (slice.ContainsKey(_regalyticsSymbol) && slice[_regalyticsSymbol] != null)
{
var articles = slice[_regalyticsSymbol];
foreach (RegalyticsRegulatoryArticle article in articles)
{
// If any of the negative phrases appeared in regulatory news, we expect a market drop for the day
// Signal an exit from the market when regulatory articles with negative sentiment are released
if (_negativeSentimentPhrases.Any(x => article.Title.Contains(x)))
{
_targetDirection = InsightDirection.Flat;
_lastNewsDate = slice.Time;
}
}
}
// Signal an entry if we've waited long enough for the market to digest the negative news
if (_lastNewsDate + _newsAffectDuration < slice.Time)
{
_targetDirection = InsightDirection.Up;
}
foreach (var symbol in _symbols)
{
// Ensure we have security data in the current Slice to avoid stale fill
if (!(slice.ContainsKey(symbol) && slice[symbol] != null))
{
continue;
}
if (_targetDirection == InsightDirection.Up && !algorithm.Portfolio[symbol].Invested)
{
insights.Add(Insight.Price(symbol, TimeSpan.FromDays(90), InsightDirection.Up));
}
else if (_targetDirection == InsightDirection.Flat && algorithm.Portfolio[symbol].Invested)
{
insights.Add(Insight.Price(symbol, _newsAffectDuration, InsightDirection.Flat));
}
}
return insights;
}
public override void OnSecuritiesChanged(QCAlgorithm algorithm, SecurityChanges changes)
{
foreach (var security in changes.AddedSecurities)
{
_symbols.Add(security.Symbol);
}
foreach (var security in changes.RemovedSecurities)
{
_symbols.Remove(security.Symbol);
}
}
}
}
}
US Regulatory Alerts - Financial Sector is allowed to be used in the cloud for personal and commercial projects with a subscription. The data is permissioned for use within the licensed organization only
Subscription Required | License Now
US Regulatory Alerts - Financial Sector 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 200 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 Regulatory Alerts - Financial Sector" \
--start "20240422" \
--end "20250422"
lean data download `
--dataset "US Regulatory Alerts - Financial Sector" `
--start "20240422" `
--end "20250422"
RegAlytics offers pricing per organization type, scaled according to your team-size.
On premise download of RegAlytics daily alert data for use in LEAN backtesting.
Cloud access to RegAlytics Regulatory Articles delivered nightly for use in backtesting or live-trading.
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 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 .