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.

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @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.

Answers