question

Upvotes
Accepted
8 0 1 3

Viewing DSWS Usage stats in DSWS desktop

Hi all, I have a client who is using desktop DSWS and is trying to use the code ds.get_data(tickers='STATS', fields=['DS.USERSTATS'], kind=0) to view his user stats.

Unfortunately this doesn't work for him :

Exception Traceback (most recent call last)

Cell In[21], line 1

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

File c:\Users\aab\Documents\GitHub\Macro.Analysis\venv\Lib\site-packages\DatastreamPy\DS_Response.py:276, in DataClient.get_data(self, tickers, fields, start, end, freq, kind)

274 except Exception as exp:

275 DSUserObjectLogFuncs.LogException('DatastreamPy', 'DSResponse.get_data', 'Exception occured:', exp)

--> 276 raise exp


Please can you advise?

Thanks and regards,

Alison

#technologydsws-apiusage
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.

Upvotes
Accepted
87k 294 53 79

@Alison Quick1

Thank you for reaching out to us.

It could be a bug in the library. I will contact the product team to verify what the problem is.

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.

Upvotes
87k 294 53 79

@Alison Quick1

The workaround is specifying the start parameter.

ds.get_data(tickers='STATS', fields=['DS.USERSTATS'], start="2024-10-01",  kind=0)
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 for the workaround @Jirapongse, much appreciated and for contacting the product team too :)

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.