Terminal
↑↓ to select, press enter to go, use esc to exit
  • Pricing
  • Strategy Explorer Strategies Strategies
  • Research Research Research
  • Data
  • Documentation Docs Docs
  • Algorithm Lab Lab Lab
  • Sign In

Terminal

    Platform

  • Pricing
  • Strategy Explorer
  • Research
  • Datasets
  • Documentation
  • Algorithm Lab

    SIGN IN

  • Sign in
  • Don't have an account? Join QuantConnect Today

  • Sign up for Free

Welcome to
Algorithm Lab

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.

Terminal image Terminal image
Your Quantitative Foundation

Learning Center

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.

BootCamp BootCamp
Explore Free and Paid Datasets

Vast Datasets

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.

Datasets Datasets
Collaborate with Your Team

Organizations

Coordinate teamwork, control access permissions, and your shared cloud resources. Grow your trading organization safely and efficiently on top of our cloud architecture.

Organizations
Jumpstart Your Algorithm Development

Strategy Explorer

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.

Strategy Explorer Strategy Explorer


Loading Algorithm Lab v3.0...
  • my-projects my-projects
    my-projects my-projects
    Projects
  • my-projects my-projects
    my-projects my-projects
    Organization
  • my-projects my-projects
    my-projects my-projects
    Learning Center
  • my-projects my-projects
    my-projects my-projects
    Datasets
  • Strategy Explorer Strategy Explorer
    Strategy Explorer Strategy Explorer
    Strategies
  • my-projects my-projects
    my-projects my-projects
    Support
  •  
close lesson close lesson
search icon search icon
  • Learning Center Home Learning Center Home All Courses
  • My courses in progress My courses in progress In Progress
  • My courses Completed My courses Completed Completed
  • My Wish List My Wish List Wish List
  • My Wish List My Wish List Articles

What is Boot Camp?

Boot Camp is a great way to improve your skills and learn the QuantConnect API in easily digestible portions.

Learning Center

Your Quantitative Foundation

A collection of courses from independent educators to improve your quant skill base and create better strategies.

Available Courses

Solidify and expand your quant skill base with courses at QuantConnect

Boot Camp 101 / US Equities

Learn algorithmic trading with python for US Equities. Guided strategy development in easily digestible portions.

Author: QuantConnect

Free  |  97,140 People Enrolled

Boot Camp 102 / FOREX

Learn algorithmic trading with python for FX. Guided strategy development in easily digestible portions.

Author: QuantConnect

Free  |  20,777 People Enrolled

Boot Camp 103 / Futures

Learn algorithmic trading with python for Futures. Guided strategy development in easily digestible portions.

Author: QuantConnect

Free  |  7,604 People Enrolled

Algorithmic Trading A-Z | The Complete Course

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,476 People Enrolled

Complete Algorithmic Trading Course

Master algorithmic trading with Python and AI. Backtest & live‑trade stocks, options, futures, forex and crypto

Author: Cheng Li

Paid  |  Enroll on Udemy

Python for Finance and Algorithmic Trading with QuantConnect

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

Crypto Trading with QuantConnect (C#)

Learn to write programs that algorithmically trade cryptocurrencies using QuantConnect (C#).

Author: Eric Summers

Paid  |  Enroll on Udemy

List Your Course List Your Course

List Your Course

Choose a Template
Close Menu Close Menu

Basic

  • Use Default Template

Use Strategy Explorer Template

Profile Image

Quant Developer

FREE UPGRADE

Start

  • create new algorithm create new algorithm New Algorithm
  • open project open project Open Project
  • open project open project Explore Strategies

Resources

Notes icons

Organization Notes

start icon

Get Started with Algorithm Lab

Close Widget Close Widget
  • Signed Up
  • Create a Project Complete Task Complete Task
  • Backtest Your Project Complete Task Complete Task
  • Live Deploy Your Project Complete Task Complete Task
research icon

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....

Read

News & Releases

announce icon

New Announcement

Quant League Q1 2025 Results: Triton Quantitative Trading Takes the 1st Place!

Read
roadmap icon

Upcoming Roadmap

  • UPVOTE

76 Walk Forward Optimization

View All
Online Members
+ Add Members
Quick Links
Research Community Quant League Documentation Learn

Begin Your QuantConnect Journey

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 Free

Already have an account Log In.

Your Account

Summary

PROJECTS

BACKTESTS

LIVE VOLUME

PUBLIC ALGORITHMS

LIVE DEPLOYMENTS

LINES OF CODE

Account Settings

What is your preferred language?
What is your preferred color theme?
Subscriptions
Manage Email Subscriptions

Terminal Settings

Security

Change Password Deactivate 2FA Authentication

This account is protected by two-factor authentication.

Request Token Information Reset My Token
Active Sessions
Created Last Time Used Agent  

No entries found

Do you really want to cancel the subscription ?
Please, first downgrade to free all your organizations.
Ok
Do you really want to delete your account ?

To continue please enter your email:

Set up Google Authenticator

(No google account required)

First Install the Required Application

  1. 1. On your phone go to Google Play Store (Android) or Apple Store (iPhone)
  2. 2. Search for Google Authenticator
  3. 3. Download and install the application

Now open the Google Authenticator Application

  1. 4.- In the application, touch 'Begin Setup'
  2. 5.- Select 'Scan barcode'
  3. 6.- Using your phone camera scan this barcode

Final Verification

To verify that everything goes well please enter the 6 digit verification code generated by the authenticator application

Begin Your QuantConnect Journey

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 Free

Already have an account Log In.

data Manager View
Requesting coding environment...

No Coding Session Available No Coding Session Available Retry


Please stop one of the following coding sessions, or upgrade your account.

NAME ORGANIZATION

Upgrade Coding Environment

QuantConnect Datasets

Datasets

  • all datasets all datasets All Datasets 0
  • list datasets list datasets List Dataset
  • list datasets list datasets Data Issues +99
  • status status Data Status
  • sales report sales report Sales Report
  • All
  • Geospatial Data
  • Commerce Data
  • Financial Market Data
  • Consumer Data
  • B2B Data
  • Transport and Logistics Data
  • Environmental Data
  • Credit Rating Data
  • Real Estate Data
  • Web Data
  • Legal Data
  • Healthcare Data
  • Entertainment Data
  • Energy Data
  • Industry Data
  • Political Data
  • News and Events

Datasets > Upcoming Dividends

Datasets

Explore free and paid datasets available on QuantConnect covering fundamentals, pricing, and alternative options.

select icon select icon
select icon select icon
select icon select icon
 
List Dataset

New

US Equity Security Master

Corporate action data source for splits, dividends, mergers, acquisitions, IPOs, and delistings.

  • 27,500 US Equities
  • January 1998
  • Free in Cloud
Learn More
New

US Futures Security Master

Rolling reference data for popular CME Futures contracts.

  • 162 Future Contracts
  • May 2009
  • Free in Cloud
Learn More
New

US Equity Coarse Universe

Universe of all US Equities with closing price and volume for Coarse Universe Selection.

  • 30,000 US Equities
  • January 1998
  • Free in Cloud
Learn More
New

US ETF Constituents

Equity constituent components and weightings for US ETF listings. This data is ideal for universe selection without selection bias.

  • 2,650 US ETF Listings
  • June 2009
  • Free in Cloud
Learn More
New

International Future Universe

FESX, HSI, and NKD Futures universe for fast future contract selection with prices, expiration dates and open interests

  • 3 contracts
  • July 1998
  • Free in Cloud
Learn More
New

US Future Option Universe

Future Options universe for fast option contract selection.

  • 16 Monthly Future Contracts
  • January 2012
  • Free in Cloud
Learn More
New

US Future Universe

Futures universe for fast future contract selection with prices, expiration dates and open interests

  • 162 Most Liquid Futures
  • May 2009
  • Free in Cloud
Learn More
New

US Equity Option Universe

Precalculated daily greeks for fast option-contract selection.

  • 4,000 Equity Options
  • January 2012
  • Free in Cloud
Learn More
New

US Index Option Universe

Precalculated Daily Greeks for Fast Option Selection

  • 7 Index Options
  • January 2012
  • Free in Cloud
Learn More
New

US Equities Short Availability

Available shares for open short positions in the US Equity market.

  • 10,500 US Equities
  • January 2018
  • Free in Cloud
Learn More
New

US Fundamental Data

Corporate Fundamental data for fine universe selection based on industry classification and underlying company performance indicators.

  • 8,000 US Equities
  • January 1998
  • Free in Cloud
Learn More
New

US Equities

Market data for all US listed and delisted Equities, ETFs, ETNs, ADRs, and Warrants.

  • 27,500 US Equities
  • January 1998
  • Free in Cloud
Learn More
New

US Equity Options

Trade and quote data for US Equity Options contracts.

  • 4,000 Equity Options
  • January 2012
  • Free in Cloud
Learn More
New

US Futures

Trade and quote data for the most liquid US Futures across the CME, CBOT, NYMEX, and COMEX markets.

  • 162 Most Liquid Futures
  • May 2009
  • Free in Cloud
Learn More
New

US Future Options

Future Options data for the most liquid US CME Future commodity contracts.

  • 16 Monthly Future Contracts
  • January 2012
  • Free in Cloud
Learn More
New

US Index Options

European Option contract data for 3 US Indices: SPX, VIX, and NDX.

  • 7 Index Options
  • January 2012
  • Free in Cloud
Learn More
New

International Futures

Trade and quote data for FESX, HSI, and NKD Future Contracts.

  • 3 Contracts
  • July 1998
  • Free in Cloud
Learn More
New

Benzinga News Feed

Financial articles and news publications condensed into a news feed with titles and article bodies for sentiment analysis

  • 1,250 Posts/Day, 8,000 Stocks
  • 1st January 2016
  • From $120/mo
Learn More
New

Tiingo News Feed

News releases from 120 different news providers for sentiment analysis.

  • 10,000 US Equities
  • January 2014
  • Free in Cloud
Learn More
New

Upcoming Earnings

Alert for upcoming earnings report of US Equities with report date, report time, and earnings estimation.

  • 27,500 US Equities
  • January 1998
  • Free in Cloud
Learn More
New

Upcoming IPOs

Alert for upcoming IPO events of primary US Equities with IPO start/filing/amended date, IPO deal type. IPO prices, and number of shares.

  • US Equities
  • February 2013
  • Free in Cloud
Learn More
New

Upcoming Splits

Alert for upcoming split and reverse split events of primary US Equities common shares with split date, and split factor.

  • 27,500 US Equities
  • January 2010
  • Free in Cloud
Learn More
New

Economic Events

Alert for upcoming economic events globally, including the date and estimates of macroeconomic indicator annoucement, special dates, etc.

  • 115 Countries
  • January 2019
  • Free in Cloud
Learn More
New

US Congress Trading

Trading activity of Congresspeople for potential insider trading signals based on early access to regulation changes.

  • 1,800 US Equities
  • January 2016
  • From $5/User/mo
Learn More
New

WallStreetBets

Mentions of US Equities on the r/wallstreetbets subreddit.

  • 6,000 US Equities
  • August 2018
  • From $5/User/mo
Learn More
New

Corporate Buybacks

US Equity buyback announcements and transactions scraped from SEC reports and secondary sources.

  • 3,000 US Equities
  • May 2015
  • From $20/User/mo
Learn More
New

US Regulatory Alerts - Financial Sector

RegAlytics is the leading provider of daily regulatory updates. They source data from over 5,000 regulators.

  • 400,000 Alerts
  • January 2020
  • From $10/mo
Learn More
New

Brain Sentiment Indicator

Proprietary sentiment analysis algorithm for US Equities.

  • 4,500 US Equities
  • August 2016
  • From $10/mo
Learn More
New

Brain ML Stock Ranking

Proprietary machine learning ranking algorithm for US Equities.

  • 1,000 US Equities
  • January 2010
  • From $10/mo
Learn More
New

Brain Language Metrics on Company Filings

Proprietary NLP algorithm that monitors several language metrics on company reports.

  • 3,000 US Equities
  • January 2010
  • From $10/mo
Learn More
New

Estimize

Estimates of company financials including EPS, revenues, and macroeconomic indicators based on 100,000+ crowdsourced predictions.

  • 2,800 US Equities
  • January 2011
  • $75/mo
Learn More
New

True Beats

Predictions of EPS and Revenues for US Equities based on expert opinions, peer opinions, and historical performance.

  • Over 5,000 US Equities
  • January 2000
  • $75/mo
Learn More
New

Tactical

Likelihood score of short-term price movements driven by technical indicators.

  • Over 5,000 US Equities
  • January 2000
  • $75/mo
Learn More
New

Cross Asset Model

Scoring algorithm based on put-call spread of Equity Options, volatility skewness, and volume.

  • Over 3,000 US Equities
  • July 2005
  • $75/mo
Learn More
New

Composite Factor Bundle

Daily proprietary signals for quality, value, momentum, growth, and low volatility factors, which are used by the leading quant funds.

  • 8,000 US Equities
  • January 2003
  • From $39/mo
Learn More
New

CNBC Trading

CNBC Trading tracks the recommendations made by media personalities on CNBC.

  • 1,515 US Equities
  • December 2020
  • From $5/User/mo
Learn More
New

US Government Contracts

Use the USASpending.gov API to track government contracts granted to publicly traded companies.

  • 748 US Equities
  • October 2019
  • From $5/User/mo
Learn More
New

Corporate Lobbying

Lobbying activities of companies to political or legislative figures, including clients, issues concerned, and amount paid.

  • 1,418 US Equities
  • January 1999
  • From $5/User/mo
Learn More
New

Insider Trading

Insider Trading tracks trades made by the own company executives, implying if they were bullish or bearish on their own companies.

  • 4994 US Equities
  • 25 April 2014
  • From $5/User/mo
Learn More
New

US SEC Filings

Semi-parsed Quarterly Financial Reports (10-Q) and Annual Financial Report (8-K) filings of companies for US Equities.

  • 15,000 US Equities
  • January 1998
  • Free in Cloud
Learn More
New

US Federal Reserve (FRED)

Collection of thousands of economic datasets maintained by the US Government.

  • 560 Datasets
  • January 1999
  • Free
Learn More
New

Data Link

Nasdaq Data Link, previously known as Quandl, is a premier marketplace for financial, economic, and alternative data sets.

  • More than 20 million datasets
  • Various
  • Free in Cloud
Learn More
New

Bybit Crypto Price Data

Trade and quote data for the Bybit Crypto exchange, collected by CoinAPI.

  • 721 Currency Pairs
  • April 2022
  • Price Update II
Learn More
New

Bybit Crypto Future Price Data

Trade and quote data for the Bybit Crypto Future exchanges, collected by CoinAPI.

  • 433 Crypto Future Pairs
  • October 2019
  • Free in Cloud
Learn More
New

Bybit Crypto Future Margin Rate Data

Margin interest rate data for the Bybit Crypto Future exchanges, collected by QuantConnect.

  • 433 Crypto Future Pairs
  • August 2020
  • Price CTA
Learn More
New

FOREX Data

Quote data for Forex pairs.

  • 71 Currency Pairs
  • January 2007
  • Free in Cloud
Learn More
New

CFD Data

Quote data for Contracts for Difference (CFD).

  • 51 Contracts
  • May 2002
  • Free in Cloud
Learn More
New

Coinbase Crypto Price Data

Trade and quote data for the Coinbase Pro Crypto exchange, collected by CoinAPI.

  • 860 Currency Pairs
  • January 2015
  • Free in Cloud
Learn More
New

Bitfinex Crypto Price Data

Trade and quote data for the Bitfinex Crypto exchange, collected by CoinAPI.

  • 383 Currency Pairs
  • January 2013
  • Free in Cloud
Learn More
New

Binance Crypto Price Data

Trade and quote data for the Binance Crypto exchange, collected by CoinAPI.

  • 2,684 Currency Pairs
  • July 2017
  • Free in Cloud
Learn More
New

Kraken Crypto Price Data

Trade and quote data for the Kraken Crypto exchange, collected by CoinAPI.

  • 710 Currency Pairs
  • October 2013
  • Free in Cloud
Learn More
New

Binance US Crypto Price Data

Trade and quote data for the Binance US Crypto exchange, collected by CoinAPI.

  • 541 Cryptocurrency pairs
  • October 2019
  • Free in Cloud
Learn More
New

Binance Crypto Future Price Data

Trade and quote data for the Binance Crypto Future exchanges, collected by CoinAPI.

  • 421 Crypto Future Pairs
  • August 2020
  • Free in Cloud
Learn More
New

Binance Crypto Future Margin Rate Data

Margin interest rate data for the Binance Crypto Future exchanges, collected by QuantConnect.

  • 421 Crypto Future Pairs
  • August 2020
  • Free in Cloud
Learn More
New

US Interest Rate

Primary credit rate from the Federal Open Market Committee (FOMC)

  • 1 Country: US
  • January 2003
  • Price CTA
Learn More
New

Macroeconomics Indicators

39 Macroeconomic Indicators data for 249 countries/regions, including the date, value, and frequency.

  • 39 Indicators, 249 Countries/Regions
  • January 1998
  • Free in Cloud
Learn More
New

Upcoming Dividends

Alert for upcoming dividend events of primary US Equities common shares with dividend important dates, and dividend per share.

  • 27,500 US Equities
  • January 2015
  • Free in Cloud
Learn More
New

US Energy Information Administration (EIA)

Supply and demand information for US Crude Products.

  • 190 Datasets
  • January 1991
  • Free
Learn More
New

US Treasury Yield Curve

Yield curve rates for US Government bonds over all common maturity dates. The data is scraped from the US Treasury website.

  • US Daily Treasury Yield Rates
  • January 1990
  • Free
Learn More
New

VIX Central Contango

Contango rates over time for the VIX Contract. The data is provided by VIXCentral and cached by QuantConnect.

  • 1 Dataset
  • June 2010
  • Free
Learn More
New

VIX Daily Price

Daily export of OHLC daily price for VIX-related products. The data is supplied by the CBOE and cached by QuantConnect.

  • 18 Datasets
  • January 1990
  • Free
Learn More
New

Cash Indices

Price data for 125 US Cash indices and 2 international indices (HSI and SX5E). This data provides the underlying price for Index Options of NDX, SPX, RUT, and VIX.

  • 125 US indices and 3 International indices
  • January 1998
  • Free in Cloud
Learn More
New

Bitcoin Metadata

Bitcoin processing fundamental data such as hash rate, miner revenue, and number of transactions.

  • Bitcoin blockchain
  • Jan 2009
  • Free in Cloud
Learn More
New

Crypto Market Cap

Cryptocurrencies market cap data is provided by CoinGecko and cached by QuantConnect.

  • 620 cryptocurrencies
  • 28 April 2013
  • Free Research
Learn More
 
resources-icon
Datasets Browse Available Datasets

Datasets >

Dashboard

Data Sale Reports

  • 2025 - May
  • 2025 - April
  • 2025 - March
  • 2025 - February
  • 2025 - January
  • 2024 - December
  • 2024 - November
  • 2024 - October
  • 2024 - September
  • 2024 - August
  • 2024 - July
  • 2024 - June
  • 2024 - May
  • 2024 - April
  • 2024 - March
  • 2024 - February
  • 2024 - January
  • 2023 - December
  • 2023 - November
  • 2023 - October
  • 2023 - September
  • 2023 - August
  • 2023 - July
  • 2023 - June
  • 2023 - May

Datasets Manual Subscriptions

 

 



Data Issues

A transparent, community reporting system. Report suspected issues with our cloud data to be investigated by the QuantConnect Team.

search icon search icon
  • Issues
  • Issue
  • Report Issue

Issue List

Loading...

  • Page of 1

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.

Issue Type

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 >

Upcoming Dividends

dataset-logo
dataset-logo

Upcoming Dividends

Dataset by EOD Historical Data

  • About
  • Documentation
  • Research
  • Examples
  • Licenses
  • CLI
  • Pricing

Introduction

The Upcoming Dividends dataset, provided by EODHD, offers daily alerts for US Equities that will have a dividend event within the upcoming 7 days. The data starts in January 2015 and is delivered on a daily frequency.

Compared to US Equity Security Master as a benchmark, the Upcoming Dividends dataset has a 98.56% coverage of all dividend events, while having a 99.71% precision on the exact dividend dates of the covered ones and a 99.90% precision within +/- 3 days.

About the Provider

EOD Historical Data (EODHD) is a financial data provider based in France, and founded in April 2015. They focus on providing clean financial data, including stock prices, splits, dividends, fundamentals, macroeconomic indicators, technical indicators, and alternative data sources, through 24/7 API seamlessly. For more information about EODHD, visit https://eodhd.com/.

Getting Started

The following snippet demonstrates how to request data from the Upcoming Dividends dataset:

Select Language:
self.add_data(EODHDUpcomingDividends, "dividends")
self.add_universe(EODHDUpcomingDividends, self.selection_function)
using QuantConnect.DataSource;
AddUniverse<EODHDUpcomingDividends>(SelectionFunction);
AddData<EODHDUpcomingDividends>("dividends");

Data Summary

The following table describes the dataset properties:

Property Value
Start Date January 2015
Data Density Sparse
Resolution Daily
Timezone New York

Example Applications

The Upcoming Dividends dataset allows traders to trade the price change due to dividends. Examples include the following strategies:

  • Short the stocks on dividend report day to earn the dividend discount on pricing.
  • Avoid volatility on securities with upcoming dividends

For more example algorithms, see Examples.

Data Point Attributes

The EODHD Upcoming Dividends dataset provides EODHDUpcomingDividends objects, which have the following attributes:

EODHDUpcomingDividends
    Date of the dividend will happen
  • dividend_date: DateTime
  • Date of the dividend being declared
  • declaration_date: DateTime
  • Date on which the investor must be on the company's books in order to receive a dividend
  • report_date: DateTime
  • Date of the dividend being actually paid/delivered
  • payment_date: DateTime
  • Absolute payment of dividend per share
  • dividend: decimal
  • Time the data became available
  • end_time: DateTime
  • Market Data Type of this data - does it come in individual price packets or is it grouped into OHLC.
  • data_type: MarketDataType
  • True if this is a fill forward piece of data
  • is_fill_forward: bool
  • Current time marker of this data packet.
  • time: DateTime
  • Symbol representation for underlying Security
  • symbol: Symbol
  • Value representation of this data packet. All data requires a representative value for this moment in time. For streams of data this is the price now, for OHLC packets this is the closing price.
  • value: decimal
  • As this is a backtesting platform we'll provide an alias of value as price.
  • price: decimal

 


Universe Selection

To select a dynamic universe of US Equities based on the Upcoming Dividends dataset, call the AddUniverseadd_universe method with a EODHDUpcomingDividends cast.

Select Language:
def initialize(self) -> None:
    self._universe = self.add_universe(EODHDUpcomingDividends, self.universe_selection_filter)

def universe_selection_filter(self, dividends: List[EODHDUpcomingDividends]) -> List[Symbol]:
    return [d.symbol for d in dividends if d.dividend_date <= self.time + timedelta(1) and d.dividend > 0.05]
public override void Initialize()
{
    _universe = AddUniverse<EODHDUpcomingDividends>(UniverseSelectionFilter);
}

private IEnumerable<Symol> UniverseSelectionFilter(IEnumerable<BaseData> dividends)
{
    return from EODHDUpcomingDividends d in dividends
           where d.DividendsDate <= Time.AddDays(1) && d.Dividends > 0.05m
           select d.Symbol;
}

For more information about universe settings, see Settings.

Requesting Data

To add Upcoming Dividends data to your algorithm, call the AddData<EODHDUpcomingDividends>add_data method.

Select Language:
class UpcomingDividendsDataAlgorithm(QCAlgorithm):
    def initialize(self) -> None:
        self.set_start_date(2019, 1, 1)
        self.set_end_date(2020, 6, 1)
        self.set_cash(100000)

        self._symbol = self.add_equity("AAPL", Resolution.DAILY).symbol
        self.dataset_symbol = self.add_data(EODHDUpcomingDividends, "dividends").symbol
namespace QuantConnect.Algorithm.CSharp.AltData
{
    public class UpcomingDividendsDataAlgorithm : QCAlgorithm
    {
        private Symbol _symbol, _datasetSymbol;

        public override void Initialize()
        {
            SetStartDate(2019, 1, 1);
            SetEndDate(2020, 6, 1);
            SetCash(100000);
            _symbol = AddEquity("AAPL", Resolution.Daily).Symbol;
            _datasetSymbol = AddData<EODHDUpcomingDividends>("dividends").Symbol;
        }
    }
}

Accessing Data

To get the current Upcoming Dividends data, call the Get<EODHDUpcomingDividends>get(EODHDUpcomingDividends) method from the current Slice and index the result with the security 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.

Select Language:
def on_data(self, slice: Slice) -> None:
    upcomings_dividends = slice.get(EODHDUpcomingDividends)
    if upcomings_dividends and self._symbol in upcomings_dividends:
        upcomings_dividends_data_point = upcomings_dividends[self._symbol]
        self.log(f"{self._symbol} will pay dividend at {upcomings_dividends_data_point.dividend_date} with dividend per share of ${upcomings_dividends_data_point.dividend}")
public override void OnData(Slice slice)
{
    var upcomingDividends = slice.Get<EODHDUpcomingDividends>();
    if (upcomingDividends.TryGetValue(_symbol, out var upcomingDividendsDataPoint))
    {
        Log($"{_symbol} will pay dividend at {upcomingDividendsDataPoint.DividendDate} with dividend per share of ${upcomingDividendsDataPoint.Dividend}");
    }
}

You can also iterate through all of the dataset objects in the current Slice

Select Language:
def on_data(self, slice: Slice) -> None:
    for equity_symbol, upcomings_dividends_data_point in slice.get(EODHDUpcomingDividends).items():
        self.log(f"{equity_symbol} will pay dividend at {upcomings_dividends_data_point.dividend_date} with dividend per share of ${upcomings_dividends_data_point.dividend}")
public override void OnData(Slice slice)
{
    foreach (var kvp in slice.Get<EODHDUpcomingDividends>())
    {
        var equitySymbol = kvp.Key;
        var upcomingDividendsDataPoint = kvp.Value;
        Log($"{equitySymbol} will pay dividend at {upcomingDividendsDataPoint.DividendDate} with dividend per share of ${upcomingDividendsDataPoint.Dividend}");
    }
}

Historical Data

To get historical Upcoming Dividends data, call the Historyhistory method with the type EODHDUpcomingDividends cast and the period of request. If there is no data in the period you request, the history result is empty.

Select Language:
history = self.history[EODHDUpcomingDividends](timedelta(100), Resolution.DAILY)
var history = History<EODHDUpcomingDividends>(TimeSpan.FromDays(100), Resolution.Daily);

For more information about historical data, see History Requests.

Remove Subscriptions

To remove a subscription, call the RemoveSecurityremove_security method.

Select Language:
self.remove_security(self.dataset_symbol)
RemoveSecurity(_datasetSymbol);

Data Point Attributes

The EODHD Upcoming Dividends dataset provides EODHDUpcomingDividends objects, which have the following attributes:

EODHDUpcomingDividends
    Date of the dividend will happen
  • dividend_date: DateTime
  • Date of the dividend being declared
  • declaration_date: DateTime
  • Date on which the investor must be on the company's books in order to receive a dividend
  • report_date: DateTime
  • Date of the dividend being actually paid/delivered
  • payment_date: DateTime
  • Absolute payment of dividend per share
  • dividend: decimal
  • Time the data became available
  • end_time: DateTime
  • Market Data Type of this data - does it come in individual price packets or is it grouped into OHLC.
  • data_type: MarketDataType
  • True if this is a fill forward piece of data
  • is_fill_forward: bool
  • Current time marker of this data packet.
  • time: DateTime
  • Symbol representation for underlying Security
  • symbol: Symbol
  • Value representation of this data packet. All data requires a representative value for this moment in time. For streams of data this is the price now, for OHLC packets this is the closing price.
  • value: decimal
  • As this is a backtesting platform we'll provide an alias of value as price.
  • price: decimal

 


Classic Algorithm Example

The following example algorithm shorts each equity in equal size with an upcoming dividend by the next day. It selects stocks with dividend recording over $0.5 per share to capitalize on the price shock momentum due to dividend payment.

Select Language:
class UpcomingDividendsExampleAlgorithm(QCAlgorithm):
    def initialize(self) -> None:
        self.set_start_date(2020, 1, 1)
        self.set_end_date(2024, 10, 1)
        self.set_cash(100000)

        # Trade on a daily basis based on daily upcoming dividend signals.
        self.universe_settings.resolution = Resolution.DAILY
        # Universe consists of equities with upcoming dividend events.
        self._universe = self.add_universe(EODHDUpcomingDividends, self.selection)
    
    def selection(self, dividends: List[EODHDUpcomingDividends]) -> List[Symbol]:
        # Select the stocks with upcoming dividend record date, with a sufficient dividend size.
        return [x.symbol for x in dividends if x.dividend_date < self.time + timedelta(1) and x.dividend > 0.5]
    
    def on_data(self, slice: Slice) -> None:
        # Equally invest in each member of the universe to evenly dissipate the capital risk.
        total_count = len(self._universe.selected)
        targets = [PortfolioTarget.percent(self, symbol, -1. / total_count) for symbol in self._universe.selected]
        self.set_holdings(targets, liquidate_existing_holdings=True)
namespace QuantConnect
{
    public class UpcomingDividendsExampleAlgorithm : QCAlgorithm
    {
        private Universe _universe;

        public override void Initialize()
        {
            SetStartDate(2020, 1, 1);
            SetEndDate(2024, 10, 1);
            SetCash(100000);

            // Trade on daily basis based on daily upcoming dividend signals.
            UniverseSettings.Resolution = Resolution.Daily;
            // Universe consists of equities with upcoming dividend events.
            _universe = AddUniverse<EODHDUpcomingDividends>((dividends) => {
                // Select the stocks with upcoming dividend record date, with a sufficient dividend size.
                return from EODHDUpcomingDividends d in dividends
                       where d.DividendDate < Time.AddDays(1) && d.Dividend > 0.5
                       select d.Symbol;
            });
        }

        public override void OnData(Slice slice)
        {
            // Equally invest in each member of the universe to evenly dissipate the capital risk.
            var totalCount = _universe.Members.Count;
            var targets = _universe.Selected
                .Select(symbol => (PortfolioTarget)PortfolioTarget.Percent(this, symbol, -1m / totalCount))
                .ToList();
            SetHoldings(targets, liquidateExistingHoldings=true);
        }
    }
}

Framework Algorithm Example

The following example implements a strategy of shorting each equity in equal size with an upcoming dividend by the next day using the framework. It selects stocks with dividend recording over $0.5 per share to capitalize on the price shock momentum due to dividend payment.

Select Language:
class UpcomingDividendsExampleAlgorithm(QCAlgorithm):
    def initialize(self) -> None:
        self.set_start_date(2020, 1, 1)
        self.set_end_date(2024, 10, 1)
        self.set_cash(100000)

        # Trade on a daily basis based on upcoming dividend signals daily.
        self.universe_settings.resolution = Resolution.DAILY
        # Universe consists of equities with upcoming dividend events.
        self._universe = self.add_universe(EODHDUpcomingDividends, self.selection)

        # A constant alpha model will emit insights for the stocks with dividend events in the upcoming day.
        # It is expecting a price shock due to pricing after the dividend, which might affect some momentum traders.
        self.add_alpha(ConstantAlphaModel(InsightType.PRICE, InsightDirection.DOWN, timedelta(1)))

        # Equal weighting for each signal to dissipate the capital risk evenly.
        self.set_portfolio_construction(EqualWeightingPortfolioConstructionModel(Expiry.END_OF_DAY))
    
    def selection(self, splits: List[EODHDUpcomingDividends]) -> List[Symbol]:
        # Select the stocks with upcoming dividend record dates with a sufficient dividend size.
        return [x.symbol for x in dividends if x.dividend_date < self.time + timedelta(1) and x.dividend > 0.5]
namespace QuantConnect
{
    public class UpcomingDividendsExampleAlgorithm : QCAlgorithm
    {
        private Universe _universe;

        public override void Initialize()
        {
            SetStartDate(2020, 1, 1);
            SetEndDate(2024, 10, 1);
            SetCash(100000);

            // Trade on a daily basis based on upcoming dividend signals daily.
            UniverseSettings.Resolution = Resolution.Daily;
            // Universe consists of equities with upcoming dividend events.
            _universe = AddUniverse<EODHDUpcomingDividends>((dividends) => {
                // Select the stocks with upcoming dividend record dates with a sufficient dividend size.
                return from EODHDUpcomingDividends d in dividends
                       where d.DividendDate < Time.AddDays(1) && d.Dividend > 0.5
                       select d.Symbol;
            });

            // A constant alpha model will emit insights for the stocks with dividend events in the upcoming day.
            // It is expecting a price shock due to pricing after the dividend, which might affect some momentum traders.
            AddAlpha(new ConstantAlphaModel(InsightType.Price, InsightDirection.Down, TimeSpan.FromDays(1)));

            // Equal weighting for each signal to dissipate the capital risk evenly.
            SetPortfolioConstruction(new EqualWeightingPortfolioConstructionModel(Expiry.EndOfDay));
        }
    }
}

 


Licensing Available

Cloud Usage

Cloud Usage

Upcoming Dividends 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


About Lean CLI

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.

CLI Command Generator

The CLI command generator is a helpful tool to generate a copy-paste command to download this dataset from the form below.


Pricing | Provider offers 1 licensing option edit edit

Pending

Cloud Access edit edit

edit edit

Using Upcoming Dividends data in the QuantConnect Cloud for your backtesting and live trading purposes.

  • Curated, clean data
  • Updated everyday at 7:30am

PRICE

Free

Documentation Subscribe cli button LEAN CLI Contact Us

User Reviews

What people are saying about this

No Reviews Yet

This product has not received any reviews yet, be the first to post one!

Write a Review

Rate the Module:

Hover over the stars to rate the module
Paste the media URL in the input.





Please sign in to post a review

Pricing

Provider offers 1 licensing option

View Pricing


Starting Date edit edit

  • January 2015

Coverage edit edit

  • 27,500 US Equities

Delivery Methods edit edit

  • Cloud

About the Provider

  • Website edit edit
  • Contact the Provider

Data Status

Explore free and paid datasets available on QuantConnect covering fundamentals, pricing, and alternative options.

search icon search icon

Dataset Status from to

No Runs

OK

Degraded

Failure

Admin

Explore free and paid datasets available on QuantConnect covering fundamentals, pricing, and alternative options.

  • Add Dataset
  • Data Upload
  • Point Processor

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 Dataset

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

About Dataset Sync

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

Tickets and Seats

  • create new ticket create new ticket Create New Ticket
  • organization ticket organization ticket Organization Tickets 0
  • spport seat spport seat Support Seats

Support

Begin Your QuantConnect Journey

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 Free

Already have an account Log In.

close close

How would you rate your experience on QuantConnect?

â­‘

â­‘

â­‘

â­‘

â­‘

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:

trustpilot trustpilot

We are glad you're enjoying QuantConnect!

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.

Rate us on Trustpilot

Loading User Profile...

Please select one purchase option

Session Expired

Your session has expired. Please log in again.

Log In

  close-icon
switch organization switch organization Switch Organization
Organization
Type
Owner
Members
Preferred
switch organization switch organizationCreate Organization
Organization Name

update billing address update billing address Update Billing Information

Upgrade to Team plan or higher to enable custom invoicing

select icon select icon


Changes will be applied to future invoices.

Close modal Close modal
invite sent invite sent

Invitations Sent

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?

Assign Seat
Close Widget Close Widget

Rename Encryption Key

Close Widget Close Widget

Delete Encryption Key

Are you sure you want to delete the encryption key "undefined"?

warning Caution: We will not be able to decrypt encrypted projects without the original key.

Close Widget Close Widget

Add Encryption Key

upload file icon upload file icon

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.

Close modal Close modal
Authorize Decryption Authorize Decryption

Authorize

This project is encrypted using the key .

Close modal Close modal
Authorize Decryption Authorize Decryption

Authorize

This project will be encrypted using the key .