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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
27 2 3 7

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

Upvote
Accepted
4.6k 26 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.