RegAlytics
US Regulatory Alerts - Financial Sector
Introduction
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.
For more information about the US Regulatory Alerts - Financial Sector dataset, including CLI commands and pricing, see the dataset listing.
About the Provider
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!
Getting Started
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;
Example Applications
This regulatory dataset enables you to accurately design strategies while mitigating regulatory risk. Examples include the following strategies:
- Temporarily increasing/decreasing exposure to securities when new regulations are announced
- Parsing the content of regulatory announcements to determine market or sector impact
- Country rotation based on regulatory alert sentiment
For more example algorithms, see Examples.
Data Point Attributes
The US Regulatory Alerts dataset provides RegalyticsRegulatoryArticle and RegalyticsRegulatoryArticles objects.
RegalyticsRegulatoryArticle
RegalyticsRegulatoryArticle objects have the following attributes:
RegalyticsRegulatoryArticles
RegalyticsRegulatoryArticles objects have the following attributes:
Requesting Data
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; } } }
Accessing Data
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}"); } } } }
Historical Data
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);
Example Applications
This regulatory dataset enables you to accurately design strategies while mitigating regulatory risk. Examples include the following strategies:
- Temporarily increasing/decreasing exposure to securities when new regulations are announced
- Parsing the content of regulatory announcements to determine market or sector impact
- Country rotation based on regulatory alert sentiment
For more example algorithms, see Examples.