Stock Splits
Obtain the stock splits of each company, with the split ratio as a numerator and denominator: a 4-for-1 split has numerator 4 and denominator 1, while a reverse split has a numerator smaller than its denominator. Splits change the number of shares but not the value of the company, which is why historical prices are adjusted for them.
Automatically filtered to this Toolkit instance’s start_date and end_date.
Also known as: share splits, reverse splits, split history.
Stock Splits in Python or via the MCP
Install the Finance Toolkit with:
pip install financetoolkit -U
Then call get_stock_splits as shown below.
from financetoolkit import Toolkit
toolkit = Toolkit(
["NVDA", "AAPL", "TSLA", "GOOGL", "AMZN"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2020-01-01",
end_date="2025-12-31",
)
toolkit.get_stock_splits()[["Numerator", "Denominator"]]
Or, after setting up the Finance Toolkit MCP, ask:
When did Nvidia, Apple, Tesla, Alphabet and Amazon split their shares from 2020 to 2025, and at what ratio?
Which returns:
| Numerator | Denominator | |
|---|---|---|
| (‘NVDA’, ‘2021-07-20’) | 4 | 1 |
| (‘NVDA’, ‘2024-06-10’) | 10 | 1 |
| (‘AAPL’, ‘2020-08-31’) | 4 | 1 |
| (‘TSLA’, ‘2020-08-31’) | 5 | 1 |
| (‘TSLA’, ‘2022-08-25’) | 3 | 1 |
| (‘GOOGL’, ‘2022-07-18’) | 20 | 1 |
| (‘AMZN’, ‘2022-06-06’) | 20 | 1 |
Parameters
get_stock_splits accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
overwrite | bool | Defines whether to overwrite the existing data. Defaults to False. | True |