I want to recreate the historical constituents for the S&P 100 (taking into consideration joiners and leavers). For that matter, I am requesting the constituents from 2017 and the list of joiners and leavers using Python.
To get the constituents starting in 2017.
#Get SP Constituents in 2017
sp100_rics, err = ek.get_data(
instruments = ['.OEXA'],
fields = ['TR.IndexConstituentRIC',
'TR.IndexConstituentName'],
parameters = {
'SDate':'2016-12-31'
}
)
To get the list of joiners and leavers.
sp100_lj, err=ek.get_data('.OEXA',
['TR.IndexJLConstituentChangeDate',
'TR.IndexJLConstituentRIC.change',
'TR.IndexJLConstituentRIC'],
{'SDate':'0D', 'EDate':'-7Y', 'IC':'B'})
However from the list of joiners and leavers, I am getting strange values of the same instrument joining and leaving the index in two consecutive days.
sp100_lj.head(15)
For example, the case for VLT0.N, GEHC.OQ, CEG.OQ.. and so on.
Are this valid data references, or some sort of cancelled inclusion in the index?
I get the same values getting the table file from Workspace.