Splits
StandardPro
REQUIRED
The Theta Terminal must be running to access data.
Behavior
A stock split represents a change in the total amount of shares of a company. Theta Data reports a
daily last split message. A last split message includes the date of the last stock split along with
the shares prior to and after the split.
Sample URL
Paste the URL below into your browser while the Theta Terminal is running.
http://127.0.0.1:25510/v2/hist/stock/split?root=AAPL&start_date=20240101&end_date=20240201
Output Descriptions
Field | Description |
---|---|
ms_of_day | The time of the split report. Milliseconds since 00:00:00.000 (midnight) ET. |
split_date | The date the split went into effect. |
before_shares | The amount of shares (multiplier) prior to the split |
after_shares | The amount of shares (multiplier) after the split. |
date | The date formated as YYYYMMDD. |
Parameters
Query Parameters
rootRequired -
The symbol of the security. Option underlyings for indices might have special tickers.
Type: string (Default: SPX)
use_csvRequired -
Uses CSV if true
, legacy JSON if false
.
Type: boolean (Default: false)
start_dateRequired -
The start date (inclusive) of the request formatted as YYYYMMDD.
Type: integer (Default: 20230915)
end_dateRequired -
The end date (inclusive) of the request formatted as YYYYMMDD.
Type: integer (Default: 20230915)
Sample Code
py