book
Checkout our new book! Hands on AI Trading with Python, QuantConnect, and AWS Learn More arrow

EOD Historical Data

Upcoming IPOs

Introduction

The Upcoming IPOs dataset, provided by EODHD, offers daily alerts for US Equities that will start their IPOs or have any updates on their IPO registrations within the upcoming 7 days. The data started in February 2013 and is delivered on a daily basis.

Notice that this dataset might have a +/-2 days accuracy due to the data provider.

For more information about the Upcoming IPOs dataset, including CLI commands and pricing, see the dataset listing.

About the Provider

EODHD was a France financial data provider founded in April 2015. They focus on providing clean financial data, including stock prices, splits, dividends, fundamentals, macroeconomy indicators, technical indicators, and alternative data sources, through 24/7 API seamlessly.

Getting Started

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

Select Language:
self.add_data(EODHDUpcomingIPOs, "ipos")
self.add_universe(EODHDUpcomingIPOs, self.selection_function)

Data Summary

The following table describes the dataset properties:

PropertyValue
Start DateFebruary 2013
Data DensitySparse
ResolutionDaily
TimezoneNew York

Example Applications

The Upcoming IPOs dataset provides timely notifications about upcoming IPOs start, allowing traders to capitalize on the high volatility of new stocks. Examples include the following strategies:

  • Long straddle to trade the volatility of the new IPO stock.
  • Arbitration on fair price versus IPO price.
  • Use SMA of IPO number to estimate the IPO trend and market popularity.

Data Point Attributes

The EODHD Upcoming IPOs dataset provides EODHDUpcomingIPOs objects, which have the following attributes:

Universe Selection

To select a dynamic universe of US Equities based on the Upcoming IPOs dataset, call the add_universe method with a EODHDUpcomingIPOs cast.

Select Language:
def initialize(self) -> None:
    self.universe_settings.asynchronous = True
    self._universe = self.add_universe(EODHDUpcomingIPOs, self.universe_selection_filter)

def universe_selection_filter(self, ipos: List[EODHDUpcomingIPOs]) -> List[Symbol]:
    # confirmed non-penny stock IPO that launches within 7 days.
    return [d.symbol for d in ipos if d.deal_type in [DealType.EXPECTED, DealType.PRICED] and d.ipo_date and min(x for x in [d.lowest_price, d.highest_price, d.offer_price] if x) > 1]

For more information about universe settings, see Settings.

Requesting Data

To add Upcoming IPOs data to your algorithm, call the add_data method.

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

        self.dataset_symbol = self.add_data(EODHDUpcomingIPOs, "ipos").symbol

Accessing Data

To get the current Upcoming IPOs data, call the get(EODHDUpcomingIPOs) method from the current Slice. Then, iterate through all of the dataset objects in the current Slice

Select Language:
def on_data(self, slice: Slice) -> None:
    for equity_symbol, upcomings_ipos_data_point in slice.get(EODHDUpcomingIPOs).items():
        self.log(f"{equity_symbol} will start IPO at {upcomings_ipos_data_point.ipo_date} with price {upcomings_ipos_data_point.offer_price} and {upcomings_ipos_data_point.shares} shares")

Historical Data

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

Select Language:
history_bars = self.history[EODHDUpcomingIPOs](timedelta(100), Resolution.DAILY)

For more information about historical data, see History Requests.

Remove Subscriptions

To remove a subscription, call the remove_security method.

Select Language:
self.remove_security(self.dataset_symbol)

Example Applications

The Upcoming IPOs dataset provides timely notifications about upcoming IPOs start, allowing traders to capitalize on the high volatility of new stocks. Examples include the following strategies:

  • Long straddle to trade the volatility of the new IPO stock.
  • Arbitration on fair price versus IPO price.
  • Use SMA of IPO number to estimate the IPO trend and market popularity.

You can also see our Videos. You can also get in touch with us via Discord.

Did you find this page helpful?

Contribute to the documentation: