Skip to content

GET /v1/splits

GET /v1/splits

Returns stock split events for a single symbol. Forward and reverse splits are distinguished by the relative magnitude of ratio_from and ratio_to. See corporate actions for the convention.

Request

GET /v1/splits?symbol=AAPL HTTP/1.1
Host: api.oneapi.finance
Authorization: Bearer oa_live_<your_key>

Query parameters

ParamTypeRequiredNotes
symbolstringyesSingle symbol.
start_dateISO datenoInclusive lower bound.
end_dateISO datenoInclusive upper bound. Default now.
outputsizeintnoCap 5,000. Defaults to all events.

Response

{
"symbol": "AAPL",
"splits": [
{ "date": "2020-08-31", "ratio_from": 1.0, "ratio_to": 4.0 },
{ "date": "2014-06-09", "ratio_from": 1.0, "ratio_to": 7.0 },
{ "date": "2005-02-28", "ratio_from": 1.0, "ratio_to": 2.0 },
{ "date": "2000-06-21", "ratio_from": 1.0, "ratio_to": 2.0 },
{ "date": "1987-06-16", "ratio_from": 1.0, "ratio_to": 2.0 }
]
}

Field reference

FieldTypeNotes
symbolstringEcho of the request, normalized.
splitsarrayEvents in descending chronological order.
splits[].datestringISO date the split took effect.
splits[].ratio_fromnumberPre-split share count baseline.
splits[].ratio_tonumberPost-split share count for the same baseline.

Read ratio_from : ratio_to as “every ratio_from shares became ratio_to shares”. A 4-for-1 forward split is 1.0 : 4.0. A 1-for-10 reverse split is 10.0 : 1.0.

The wire-format model is oneapi_core.responses.splits.SplitsResponse.

Examples

Terminal window
curl -H "Authorization: Bearer oa_live_..." \
"https://api.oneapi.finance/v1/splits?symbol=AAPL"

Errors

StatuscodeWhen
401unauthenticatedMissing or invalid API key.
404not_foundSymbol unknown.
429rate_limitSee rate limits.
502upstream_failureAll sources failed.

See also