Extract index constituents and weights through COM API

I would like to extract the list of index constituents and weights through the COM API. Is this possible, and can you provide a sample?eikon-index-constituents.png

Best Answer

Answers

  • Thank you, this is helpful.

    Is it possible to extract similar data for a custom index/portfolio that I have created in the PORT tool?

    The formula builder found my index, but the TR.IndexConstituent fields return null.

    image

    image

  • You can use field names from the Portfolio category in the Formula Builder, e.g. TR.PortfolioConstituentName, TR.PortfolioShares, TR.PortfolioWeight.