question

Upvotes
Accepted
1 0 1 1

DatastreamDSWS for python not working

Hi all,


I perform a successful login when try to download data from DSWS but, when I ask for data, results are empty. It's not working since a week ago, and some queries that used to work now don't.This is the way I try to reach the data:

df = ds.get_data(tickers=<data_name>, start=<start_date>, end=<end_date>, freq="M")

Date format I use is: yyyy-mm-dd.


Thank you very much for your attention and best regards.

datastream-apidsws-apidatastream
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.

UPDATE: this image below shows what I get when I try to get data, sorry for not posting it when I asked the question. It seems that my user can't get a valid token. Any advice? Thank you very much.

1658317538236.png

1658317538236.png (34.7 KiB)

Hello @francisca.segundo

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,


AHS


Upvotes
Accepted
78.9k 250 52 74

@francisca.segundo

Your usage may reach the quota limit. You can check your usage statistic by using the following code.

ds.get_data(tickers='STATS', fields=['DS.USERSTATS'],kind=0)

Then, you can check the request on the DataStream Test REST Service website.

First, use Get Token to get a token.

1658283548540.png

Then, use Get Data with the token to request the data.

1658283631655.png

Finally, you need to verify the retrieved response.


1658283548540.png (23.1 KiB)
1658283631655.png (32.0 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.

Hi Jirapongse, thank you for your answer.

I tried to execute the command you told me:

ds.get_data(tickers='STATS', fields=['DS.USERSTATS'],kind=0)

but I get the same error (I have just updated the question with the error that is thrown by the notebook when trying to get data).

And also, I cant get the token within DataStream Test REST Service website, I get this error:

1658318008018.png

Do you know where could be the problem?

Thank you very much.

1658318008018.png (38.6 KiB)

@francisca.segundo

Please contact the Refinitiv Datastream Web Service support team directly via MyRefinitiv to verify your credential.

1658452026967.png

1658452026967.png (14.2 KiB)
Upvotes
5.8k 21 2 6

Hi @francisca.segundo,

1. can you login to the navigator with your credentials? If not, then it's a credential issue; please contact an expert in https://my.refinitiv.com/


2. Have you tried DatastreamPy? It should work in the same way, e.g.:

1658233536501.png


1658233590860.png


1658233536501.png (80.8 KiB)
1658233590860.png (115.3 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.

Hi jonathan, thank you for your answer.

1. I can't login, so I suppose something wrong is going on with my user.

2. I tried that library but I got the same error.

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.