question

Upvotes
Accepted
28 2 1 2

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

· Write an Answer
Upvotes
Accepted
39.4k 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.

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.