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.

@scott.curry

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

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.