question

Upvote
Accepted
68 3 3 6

check quota usage using R package DatastreamDSWS

hi, how can I check quota usage using R package DatastreamDSWS? I tried the following but I get NA


mydsws <- dsws$new()
myData <- mydsws$snapshotRequest(instrument = c("STATS"),
datatype = c("DS.USERSTATS"), requestDate = "0D")

thanks



datastream-apidsws-apir
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
73k 226 49 71

@gino.cenedese

Thanks for reaching out to us.

Please try this code:

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

You can also change the requestDate to "2022-08-01" for the previous month's statistics.

Please feel free to reach out if you have any further questions.

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
68 3 3 6

Thanks, it works!

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.

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.