how to access DS.USERSTATS

Hello,

I am using the R Datastream API and I would like to access my user stats to see how much of my allowed data I have accessed. Refinitiv account manager directed me here with this:

"For desktop version, you can create and run reports to check your usage using the mnemonic STATS and datatypes DS.USERSTATS."

I've run this query and it comes up NA:

dsws$snapshotRequest(instrument = 'STATS',
                     datatype   = 'DS.USERSTATS',
                     requestDate = "0D")  

What do I need to do to get my user stats?

Thanks.

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @Ed_J

    The snapshotRequest method can also be used to retrieve monthly usage in terms of data points used per month by using STATS as instruments and DS.USERSTATS as data type. Only snapshot requests are supported and by default the current month’s usage stats are returned. Previous months’ data can be returned by simply adding a valid start date in request of any previous month.

    Please try this:

    myStat <- mydsws$snapshotRequest(instrument = "STATS", 
                                     datatype = "DS.USERSTATS", 
                                     requestDate = Sys.Date())
    myStat

    image

Answers