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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 0 0 4

How can we pull a list of options contracts related to an index?

Is it possible to pull in related options/futures contracts for a specific index using the Eikon API? The equivalent of this in Eikon would be to pull up an index overview page and go to the Derivatives tab. The Index I am currently looking at is .HSCE and some of the options for this index include:

'HCEI09800G9.HF',
'HCEI09800H9.HF',
'HCEI09800I9.HF',
'HCEI09800J9.HF',
'HCEI09800L9.HF

How can a full list be pulled via the Eikon Data API?

Thanks

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonderivatives
icon clock
10 |1500

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

1 Answer

Upvote
Accepted
39.2k 75 11 27

You can retrieve the options chain using

ek.get_data('0#HCEI*.HF',['DSPLY_NAME'])
icon clock
10 |1500

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

Thanks Alex!

Click below to post an Idea Post Idea