I’ve got an issue where I can’t return these DataStream datapoints for changed Sedols (due to corporate actions), could you help?
So, for example, RBS.L (sedol B7T7721) was a ticker on the LondonStockExchange, but around 21/Jul/2020 I it changed to NWG.L (sedol BM8PJY7)
When I run the DataStream with the old sedol for a historic date, I get ‘$$ER: E100,INVALID CODE OR EXPRESSION ENTERED’:
dsFields = ['DPL#(PCH#(X(RI),1D),8)','DPL#((LAG#(X(LI#RI),-6M)/X(LI#RI))-1,8)']
i1 = ds.get_data(tickers="UKB7T7721", fields=dsFields, kind=1, start="20200415", end="20200416", freq="D")
When I run the DataStream with the new sedol for a historic date, I do get correct values returned:
dsFields = ['DPL#(PCH#(X(RI),1D),8)','DPL#((LAG#(X(LI#RI),-6M)/X(LI#RI))-1,8)']
i1 = ds.get_data(tickers="UKBM8PJY7", fields=dsFields, kind=1, start="20200415", end="20200416", freq="D")
My question is, do you know of a way I can either
- Call the Python get_data request with a flag to consider redundant Sedols as well?
- Or some separate DataStream/DataScope call to get the current correct Sedol for a redundant Sedol?