A word on upcoming IPOs. A private company can raise capital by selling shares publicly to institutional investors and retail investors through a new stock issuance, called an initial public offering (IPO). The advantage of investing in an IPO is that investors get the benefit of picking a potentially underpriced stock early and before brokerages take large stock positions. It’s important for IPO investors to track upcoming IPOs in order to capitalize on available opportunities.

A word on upcoming splits. A stock split happens when a company increases the number of its shares to boost the stock’s liquidity. It is important for investors to track upcoming splits in order to to capitalize on available opportunities. Both of those APIs from EODHD financial data will help you easily to interact on stocks.

Register & Get Data

Please note: before continuing to work with our APIs, please make sure that you import and install all required libraries. More details can be found on our Upcoming IPOs and Splits documentation web-page.

Accessing the EODHD API

To access the EODHD API, we need to create an instance of the “APIClient” class and pass our API key to it. In this example, we will use the demo API key provided by EODHD, but in your real application, you should use your registered API key.

api = APIClient("demo")

Please, note that you can also specify the API key in a configuration file or as an environment variable, as described in the library documentation here.

1. Use “DEMO” API key to test our data from a limited set of the tickers without registering:
AAPL.US | TSLA.US VTI.US | AMZN.US | BTC-USD | EUR-USD
Real-Time Data and All of the APIs (except Bulk) are included without limitations on API calls.
2. Register to get your free API key (limitated by 20 API calls per day) with access to:
End-Of-Day Historical Data with only past year for any ticker and List of tickers per Exchange
3. To unlock your API key we recommend to choose subscription which covers your needs

Retrieving Upcoming IPOs and Splits Data

After we’ re done with the API client, we can start requesting upcoming IPOs and splits data:

upcoming_ipos = api.get_upcoming_IPOs_data () # for Upcoming IPOs data
upcoming_splits = api.get_upcoming_splits_data () # for Upcoming Splits Data

The API response will be a single JSON structure.

Converting JSON Response to DataFrame

To convert JSON to DataFrame it is possible to use:

ui = pd.DataFrame(upcoming_ipos) # for Upcoming IPOs Data
u_split = pd.DataFrame(upcoming_splits) # for Upcoming Splits Data

All data in DataFrame will contain information such as “type”, “description”, “from”, “to”, “ipos” for upcoming IPOs and “type”, “description”, “from”, “to”, “splits” for upcoming splits.

print(ui) # for Upcoming IPOs Data
print(u_split) #for Upcoming Splits Data

Extended functions of Upcoming IPOs and Splits Data API

For a more accurate research, it is possible to use additional parameters of the Upcoming IPOs and Splits Data API. You can use a range of dates with the parameters from and to, which will return information for certain dates.

up_ipos_extended = api.get_upcoming_IPOs_data (from_date = "2020-12-10", to_date = "2021-04-10") # for Upcoming IPOs
up_splits_extended = api.get_upcoming_splits_data (from_date = "2020-12-10", to_date = "2021-04-10") # for Upcoming Splits

The API response is a JSON array containing data for all the requested tickers. You can convert the resulting JSON array to a DataFrame for further analysis:

ui_m = pd.DataFrame (up_ipos_extended) # for Upcoming IPOs Data
print(ui_m)
u_split_m = pd.DataFrame (up_splits_extended) # for Upcoming Splits Data
print(u_split_m)

Conclusion

With both of these EODHD financial data APIs, it will be much easier to capitalize on available opportunities. With this API it’s really easy to keep up to date with all upcoming IPOs and splits!

Register & Get Data

Do you enjoy our articles?

We can send new ones right to your email box