question

Upvotes
Accepted
28 1 1 1

Retrieving datatype names when using DSWS

Can anyone help me to retrieve the datatype names when using DSWS? I am using Worldscope datatypes which aren't easily identifiable. Is there a simple way to ensure the datatype name appears instead? Example code below:

ds.get_data (tickers='@AMZN', fields=('WC01051','WC01151','WC01100','WC05350'), start='-10Y', end='-0D', freq='Y')

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
39.2k 75 11 27

Use retName=True kwarg:

ds.get_data (tickers='@AMZN', 
             fields=('WC01051','WC01151','WC01100','WC05350'), 
             start='-10Y', end='-0D', freq='Y', retName=True)
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.

Perfect, thanks Alex.

Click below to post an Idea Post Idea