question

Upvotes
Accepted
1 1 2 2

Datastream GICS code

How can I get GICS code on DataStream web Service ? there are these classigication codes but then what DATATYPE to use for GICS codes ?

datastream-apidsws-api
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.

@eikon2

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

1 Answer

· Write an Answer
Upvotes
Accepted
78.8k 250 52 74

@eikon2

I have tested with the below code:

df = ds.get_data(tickers='LS&PCOMP',
                 fields=['NAME','MNEM','CLSIND','CLS1','CLS1N','CLS2','CLS2N','CLS3','CLS3N','CLS4','CLS4N'], 
                 kind=0)
df = df.pivot(index='Instrument', columns='Datatype')['Value']
df

It returns:


1600413811284.png (44.9 KiB)
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.