question

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

1 Answer

Upvotes
Accepted
39.3k 77 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 512.0 KiB each and 1.0 MiB total.

Perfect, thanks Alex.