Upgrade from Eikon -> Workspace. Learn about programming differences.

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 4 2 2

Using Python API, how to distinguish between option expiry periodicity (Weekly, Monthly, Quarterly)?

I'm using the below function to grab option chain data. However, noticed that in Eikon I'm able to distinguish between Periodicity = 'Weekly' or 'Monthly', how do I achieve the same in Python API?

opt_chain = ek.get_data(chain_tic,fields)
eikoneikon-data-apipythonrefinitiv-dataplatform-eikonworkspaceworkspace-data-apiderivatives
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.

Hello @xiang.zhang

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If so please can you click the 'Accept' text next to the appropriate reply. This will guide all community members who have a similar question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvote
Accepted
39.4k 77 11 27

Assuming the question is about US equity options use field name EXPIR_CYCL in the chain request. In the example below the last column indicates which options expiration cycle the option belongs to.

ek.get_data('0#IBM*.U',['DSPLY_NAME','EXPIR_CYCL'])
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.

works great, thanks!

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.