New posts are disabled while we improve the user experience.

You can browse the site, or for urgent issues, raise a query at MyAccount.

question

Upvotes
Accepted
27 2 5 9

how to get history EXPIR_DATE of future contract?

this code just get one future expire date

req, err = ek.get_data(['STWc1'], ['EXPIR_DATE'])

But How to get the history expire date form 2015-01-01 to 2018-08-30?

eikoneikon-data-apipythonworkspacerefinitiv-dataplatform-eikonworkspace-data-apifutures
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
Upvote
Accepted
4.6k 27 7 22

@andy.ej I am afraid we do not store the expiration date series, and the EXPIR_DATE real-time field does not have an equivalent either on the time series or fundamental database. The contract specification (here) says "LAST TRADE DATE - Second last business day of the contract month".

I am attaching a sample calculation file using this logic for Eikon Excel.

contract-code-calcxlsx.zip


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.