Hello
I have a list of companies, e.g. Apple and Microsoft. I need their yearly CDS spreads (at end of year). How do I get this? I am doing something but I am not sure.
data, error = ek.get_data(['VOD.L','AAPL.OQ','MSFT.OQ'],'TR.CDSPrimaryCDSRic')
result = data["Primary CDS RIC"]
df,e = ek.get_data(result, ['TR.CDSType', 'TR.PARMIDSPREAD.date', 'TR.PARMIDSPREAD'], {'SDate': '2018-01-01', 'EDate': '2018-01-30', 'DateType': 'AD', 'CURN': 'EUR'}) df
My first problem: result does not work as a list.
Second problem: What should I change in the parameters so that I get the end of year CDS spread for each of my stocks from, say, 2008 until now?