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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
1 1 1 3

Futures and options chains

Hi,

how can I get a futures list and their expiry date into the python API.

Basically I want to import all futures linked to e.g. 0#W: with their expiry. I would also like to import the option chain linked to a future.

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpythonderivativesfutures
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.

Upvotes
Accepted
4.6k 26 7 22

hi @joris,

you can get the futures/expiration dates with one request:

req, err = tr.get_data(['0#W:'], ['EXPIR_DATE'])

result:

I could not find a good way to extract the option chains though, you might have to parse it from the contract specification pages (CBT/W) or, in this case, by adding a + to the contact root: 0#W+.

You can also read this to get all underlying instruments for an options chain.


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.

Upvotes
1 1 1 3

thanks, yes afraid the tr option data model is wobbly at best ;-(

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.

Click below to post an Idea Post Idea