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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
111 2 4 8

How to get the chain constituents using Eikon Scripting API in python?

How to get the chain constituents using Eikon Scripting API in python?

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

Upvotes
Accepted
434 1 2 2

Hi @brianleung

You can get the members with:

ek.get_data('0#.ftse','tr.companyname')

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.

This works for stock index chains, but not for other chains such as futures, options, FX, e.g. "0#ED:", "0#TRI*.U", "FX=" etc.
One can of course write a script getting the value of LONGLINK1 - LONGLINK14 fields and traversing chain links in LONGNEXTLR until the value is empty.
But given that chains are quite popular, it would be nice to have get_chain function added to the library.

Click below to post an Idea Post Idea