How to get the chain constituents using Eikon Scripting API in python?
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.