Quota Usage Details TRTH V2 by User (not global)
Hi,
I would like to know if there is an End point that I can use to get the data usage Quota by user.
I have found GetQuotainformation but I need to have one that will give result by User and not a global figure.
can you, please, share how can we do that?
Thank you
Regards
C.Nouri
Best Answer
-
Hello @Chama,
Thanks for this explanation.
I undertsand that you are saying that the GUI filters the returned Quota results for you when you search, using AuthorizationUserId as criteria?
As you receive the complete results via GetAuthorizedRicList(CategoryCode='2017-06') call via API request, to obtain the same filtered programmatically, you will need to filter the result set in your code.
In your programming language of choice, would absorb the returned result into a JSON object, iterate over the entries, and present as result only the ones with AuthorizationUserId id.
Any other manipulation of the returned result set can also be performed, per your requirement.
For example, to filter out in Postman script, I would do:
var jsonData = JSON.parse(responseBody);
for (key in jsonData.value) {
if( jsonData.value[key].AuthorizationUserId == "227124")
console.log( jsonData.value[key].AuthorizedValue + '; ' + jsonData.value[key].AuthorizationDate +' ; ' + jsonData.value[key].AuthorizationUserId)
}For me the filtered result is logged to console:
Is my understanding of the question correct?
0
Answers
-
Hello @Chama,
{{protocol}}{{host}}{{api}}/Quota/GetQuotaInformation request returns quota for the specific user, the user that is authenticated and is submitting the request.
The result to this call correspond to the information you can retrieve via DSS GUI, by selecting from the main menu
Your User -> Tick History Quota
If I understand your intention correctly, the Quota information can not be requested on behalf of another user.
0 -
Hello Zoya,
in TRTH Usage Quota when you select a month you can see that the global number does not correspond to your user but a group of user. That's why I have added a screenshot. The report contains a Global Quota. How can we have individual Quota? and not the global Quota?
Regards
Chama Nouri
0 -
Hello @Chama,
Thanks, I think I now understand the question better.
When you run
{{protocol}}{{host}}{{api}}/Quota/GetQuotaInformation
You get back category codes such as
...
{
"@odata.context": "https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#Collection(ThomsonReuters.Dss.Api.Quota.Quota)",
"value": [
{
"Count": 10,
"Category": {
"Code": "2017-06",
"Name": "June 2017 Compliance Quota"
}
},Next, you can use the category codes to derive the details on them:
{{protocol}}{{host}}{{api}}/Quota//GetAuthorizedRicList(CategoryCode='2017-06')
This should bring back the same info you would obtain by selecting/expanding a month.
Is this what you are looking for?
0 -
Hi Zoya,
yes you are right I have got the response you displayed. but in the file you can see all RIC per User and I just need a count.
Today I am doing it manually to get the result like that.(cf screenshot below)
I run it everyday manually and I wanted to have a query to get by user ID - which are available in Quota - the count of Instruments. Does that make sense?
Let me know if you need more details,
Regards
Chama
0 -
Hello @Chama,
I think you are saying that Quota per month as displayed in DSS GUI
And the same information as accessible via API:
Is not what you are looking for?
There is no additional quota info that is available via API that is not available via DSS GUI.
In my understanding of the requirement, you could send the requests with category codes every day programmatically
{{protocol}}{{host}}{{api}}/Quota//GetAuthorizedRicList(CategoryCode='2017-06')
and optionally aggregate or process the results (above) programmatically, per your requirement, same way as you do now manually.
These two are the only quota requests that are exposed per DSS API Reference
Does this help?
0 -
Hi Zoya,
you go on Usage , then you select a month example january 2021.
then click on it and you will see the list of instrument by User.
what I want is to have bu user when you have several user.
the QuotaInformation gives us the global number cf screenshot 1 below with number highlighted.
Then in the search bar you can put the User id you are looking for then you will see the number changing cf screenshot 2 below.
is that clear?
0 -
Hi,
Thank you for your help!.
Your response the solution solved the problem.
Best regards
Chama Nouri
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 690 Datastream
- 1.4K DSS
- 629 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 559 WebSocket API
- 39 FX Venues
- 15 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 25 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 279 Open PermID
- 45 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 23 RDMS
- 2K Refinitiv Data Platform
- 716 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 106 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 95 Workspace SDK
- 11 Element Framework
- 5 Grid
- 19 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛