I am trying to get a list of all NYSE stocks including inactive ones, from 2000 to 2018.
I can't seem to get inactive NYSE stocks through the Screener.
When I run this line through the Eikon python API it yields 2900 instruments:
>>> df, err = ek.get_data('SCREEN(U(IN(Equity(active or inactive,public))/*UNV:Public*/),IN(TR.ExchangeMarketIdCode,"XNYS"))',['TR.CommonName']) >>> df.shape (2900, 2)
But it gives the same result if I omit the "or inactive" bit, and by looking at the list it omits for example MON^F18, which delisted from NYSE in June 2018.
>>> df, err = ek.get_data('SCREEN(U(IN(Equity(active,public))/*UNV:Public*/),IN(TR.ExchangeMarketIdCode,"XNYS"))',['TR.CommonName']) >>> df.shape (2900, 2)
I get similar results using Excel.
Any suggestions?