Warning
The YCharts API is available to our API customers for their internal use only. Any redistribution or commercial use of data from the API is strictly prohibited without prior written consent from YCharts. For more details on our API’s capabilities and pricing please contact sales@ycharts.com or call (866) 965-7552.
Company Stock Spinoffs¶
The Company Stock Spinoffs Endpoint is used to return a list of stock spinoff objects that within the date range specified by the optional start and end date parameters.
Request Info¶
Request Method |
GET |
URL |
https://api.ycharts.com/v3/companies/ |
Request Parameters¶
Parameter |
Required |
Description |
---|---|---|
symbol[s] |
Y |
The exchange symbol for a company, or a comma separated list of exchange symbols. |
start_date |
N |
The first spinoff date of the desired date range. |
end_date |
N |
The last spinoff date of the desired data range. |
Note
There is a maximum of 100 symbols per request.
Response Info¶
The response will contain one or more company objects. The key for each company object is the exchange symbol passed in the request.
Field |
Type |
Description |
---|---|---|
meta |
Meta |
This object contains information about the query for the company object |
results |
Results |
This object contains one or more stock spinoff objects. |
Field |
Type |
Description |
---|---|---|
child_company_exchange |
string |
Child Company Exchange |
child_company_symbol |
string |
Child Company Symbol |
day |
date |
Day |
ratio |
decimal |
Ratio |
status |
string |
Status |
Examples¶
The following is an example successful request for 1 company.
Request URL
https://api.ycharts.com/v3/companies/LVNTA/spinoffs?start_date=2005-10-10&end_date=2016-01-12
Response
{
"meta": {
"status": "ok",
"url": "https://api.ycharts.com/v3/companies/LVNTA/spinoffs?start_date=2005-10-10&end_date=2016-01-12"
},
"response": {
"LVNTA": {
"meta": {
"status": "ok"
},
"results": [
{
"child_company_exchange": null,
"child_company_symbol": "CHUBK",
"day": "2014-08-28",
"ratio": 2.035773,
"status": "executed"
}
]
}
}
}
The following is an example successful request for multiple companies.
Request URL
https://api.ycharts.com/v3/companies/LVNTA,ABC/spinoffs?start_date=2005-10-10&end_date=2016-01-12
Response
{
"meta": {
"status": "ok",
"url": "https://api.ycharts.com/v3/companies/LVNTA,ABC/spinoffs?start_date=2005-10-10&end_date=2016-01-12"
},
"response": {
"ABC": {
"meta": {
"status": "ok"
},
"results": [
{
"child_company_exchange": "NYSE",
"child_company_symbol": null,
"day": "2007-08-01",
"ratio": 1.03058,
"status": "executed"
}
]
},
"LVNTA": {
"meta": {
"status": "ok"
},
"results": [
{
"child_company_exchange": null,
"child_company_symbol": "CHUBK",
"day": "2014-08-28",
"ratio": 2.035773,
"status": "executed"
}
]
}
}
}
The following is an example incorrect request with an invalid date parameter.
Request URL
https://api.ycharts.com/v3/companies/AAPL/spinoffs?start_date=-2015-01-01&end_date=bad-date
Response
{
"meta": {
"error_code": 400,
"error_message": "Invalid end_date format.",
"status": "error",
"url": "https://api.ycharts.com/v3/companies/AAPL/spinoffs?start_date=-2015-01-01&end_date=bad-date"
},
"response": {}
}