how can I get historical cds spread for a list of tickers? I am interested in 5 years maturity an...

how can I get historical cds spread for a list of tickers? I am interested in 5 years maturity and monthly (or quarterly) prices
Sort by:
1 - 1 of 11

    Hi @paolo.piantadosi ,

    you can first get the list of CDS for a given RIC, eg for Microsoft.

    data, err = ek.get_data(['MSFT.OQ'],'TR.CDSPrimaryCDSRic')
    data

    And then (or If you have them already) you can use CDS RIC(s) and request spread prices. Example below shows PARMIDSPREAD for MSFT5YUSAX=R:

    data, err = ek.get_data(['MSFT5YUSAX=R'],['TR.PARMIDSPREAD.date', 'TR.PARMIDSPREAD'],
    {'SDate': '2016-01-01', 'EDate': '2021-12-31'})
    data

    1641492848342.png

    For more fields you can look at Data Item Browser(DIB) section of Workspace. See below a screenshot for available spreads:

    1641492753490.png


    Hope this helps!