Trying to retrieve Expired S&P500 Index option chain

Hello.


I am trying to retrieve the RICs of expired options.


In the case of non-expired options, I can get the RICs of options as follows:

df, e = ek.get_data(['0#SPX*.U'],
                    ['PUTCALLIND', 'STRIKE_PRC', 'EXPIR_DATE', 'CF_CLOSE', 'IMP_VOL']
                    )



However, to get the expired RICs of options, I guess the following should work, but it does not.

df2, e = ek.get_data(['0#SPX*.U^A21'],
                    ['PUTCALLIND', 'STRIKE_PRC', 'EXPIR_DATE', 'CF_CLOSE', 'IMP_VOL']
                    )



I think 0#SPX*.U^A21 should work, because it has following valid information as follows:

ts = ek.get_timeseries(['SPXa152138000.U^A21',], start_date='2020-01-01')

1637907758237.png


Could you please help me, how to get the all the RICs by using command like 0#SPX*.U^A21.


Thank you very much.

Best Answer

Answers

  • Hi @hmmmcho ,

    This forum is dedicated to software developers using Refinitiv APIs.

    The moderators on this forum do not have deep expertise in every bit of content available through Refinitiv products, which is required to answer content questions such as this one.

    The best resource for content questions is the Refinitiv Helpdesk, which can be reached by either calling the Helpdesk number in your country or submitting a new ticket to the Eikon support team via MyRefinitiv.

    The Helpdesk will either have the required content expertise ready available or can reach out to relevant content experts to get the answer for you.

    In this case, I raised the case number 10723481 on behalf of you and you will be contacted directly for the support.