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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 1 5

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-apipythonpython apifuturesquoteexpired-contractmetadatadisplay-fields
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
7.6k 10 6 8

@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 512.0 KiB each and 1.0 MiB total.