Getting Stock Splits Calendars for trading.


While you are deep in your investments activities and trace your stocks carefully sooner or later you will face the task to get detailed information on stock splits, which are corporate actions in which a company increases the number of its outstanding shares by issuing more shares to current shareholders.
To trace such activities and keep up with profitable decisions the option of having Stocks Splits Calendar is really handy feature for successful investments.

The common source of market information is NASDAQ - National Association of Securities Dealers Automated Quotation. In our case we will use very handy Python package finance_calendars - a simple wrapper of NASDAQ public API for Financial Calendars.

Splits Calendar.



Using simple scripts below you will get all the necessary information on Stock Splits data for current day as well as historical information on splits. Output data is in Pandas dataframe format which can be easily converted to any suitable form for further visualisation and analysis.


Python code to extract stock splits due on today's date:



# pip install finance-calendars

from finance_calendars import finance_calendars as fc
from datetime import datetime, date
import pandas as pd

splits = fc.get_splits_today()
print(splits[:5])
# only 5 items listed, remove filter to get all data

Stock splits due on today's date output:


Stock splits today.



Python code to get stock splits on the specified date:



splits = fc.get_splits_by_date(datetime(2022, 9, 27, 0, 0))
print(splits[:5])
# only 5 items listed, remove filter to get all data

Stock splits on the specified date output:


Stock splits on the specified date.





See also related topics: