How to get the chain constituents using Eikon Scripting API in python?
For a deeper look into our Eikon Data API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials | Articles
How to get the chain constituents using Eikon Scripting API in python?
Hi @brianleung
You can get the members with:
ek.get_data('0#.ftse','tr.companyname')
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.