For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 0 4

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!

eikon-data-apipythonfuturesquotepython apimetadataexpired-contractdisplay-fields
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
6.7k 8 6 7

@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.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea