question

Upvotes
Accepted
4 1 0 3

How do I get index constituents in DSWS via Python?

I need to pull the index holdings (constituents) for a set of indices, how do I do this in Python/DSWS? The documentation lists ds.get_data(tickers="MSEAFE$",fields =["MNEM", "NAME"], kind=0), but this only returns the name of the index, not the names of the underlying holdings. Thanks

datastream-apidsws-apiindex
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
681 2 2 1

Hi,

You need to use the constituent code LMSEAFED. This is in fact a content question and I would advise you to speak with the Refinitiv helpdesk to ensure a faster resolution for similar queries.

Best regards

James

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