question

Upvotes
Accepted
0 2 0 5

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 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an 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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.