Pulling the display name of an expired contract

Hi,

I am trying to pull the display name of expired contract (attached screen shot).

screenshot-2021-11-16-114701.jpg


This can be done easily for active contracts using the following code

eikon.get_data([ticker],['DSPLY_NAME'])


But this doen's work for expired contract as there is no quote for an expired contract the request returns the following error

screenshot-2021-11-16-115328.jpg


Is there any way to pull the data?


Thanks!

Best Answer

  • @matthew.holland Please try:

    1. eikon.get_data([ticker],['TR.InstrumentDescription'])

    You can check what fields are available for any instrument (even expired RICs) using the Data Item Browser app (type DIB into eikon search bar). I hope this can help.