question

Upvotes
Accepted
3 1 2 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

· Write an Answer
Upvotes
Accepted
11k 22 6 9

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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