question

Upvotes
Accepted
1 0 0 1

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 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
38.1k 69 35 53

@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 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea