question

Upvotes
Accepted
29 1 4 12

How to show names of datatypes in dsws

Hi team, may I know how to let dsws show the names of datatypes? Thanks in advance!

1689761990398.png

#technologydsws-apidatasteam-api
1689761990398.png (16.5 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.

I found the possible answer https://community.developers.refinitiv.com/questions/72225/retrieving-datatype-name-using-retnametrue-in-dsws.html, but when i tried fetching multiple fields, it will show error message. Any grammar difference among DatastreamDSWS and pydatastream package?

1 Answer

· Write an Answer
Upvotes
Accepted
6.1k 21 3 6

Hi @Julian.Bai,

I tried the following and got data that I think you're interested in:

df = ds.get_data("958TVX,VOD,BARC|N", ["PH", "PL"], start = "-2D")
df

1689771378395.png.


1689771378395.png (35.4 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.

Thanks Jonathan, 2 follow up qs.

1. I found another possible answer https://community.developers.refinitiv.com/questions/72225/retrieving-datatype-name-using-retnametrue-in-dsws.html, but when i tried fetching multiple fields, it will show error message. Any grammar difference among DatastreamDSWS and pydatastream package?

2. If I use kind = 0, then it will only show name of variable but not datatypes

df = ds.get_data(tickers='958TVX|N', fields=['MPD','DMR','FRT','FRTD','MRW','BSPL'], kind = 0)

1689777753042.png

Is that also a limit of api?

Thank you!

1689777753042.png (7.2 KiB)

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.