Skip to content

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

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)

Responses

OK
JSON
{
"header": {
"id": 0,
"latency_ms": 0,
"error_type": "string",
"error_msg": "string",
"next_page": null,
"format": [
"ms_of_day",
"split_date",
"before_shares",
"after_shares",
"date"
]
},
"response": [
[
240000,
20200831,
1,
4,
20240113
],
[
240000,
20200831,
1,
4,
20240114
]
]
}

Sample Code

py