Need a sample python script which can perform Quota Checks.
To obtain the quota information through API, please refer to:
<https://hosted.datascopeapi.reuters.com/RestApi.Help/Context/Operation?ctx=Quota&opn=GetQuotaInformation&sce=Quota - Get Quota Information.primary&stp=1&tab=3>
Example
API Request:
GET call
URL https://hosted.datascopeapi.reuters.com/RestApi/v1/Quota/GetQuotaInformation
Headers:
Authorization: Token <your_auth_token_goes_here>
Prefer: respond-async
API Response:
HTTP/1.1 200 OK
{
"@odata.context": "https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#Collection(ThomsonReuters.Dss.Api.Quota.Quota)",
"value": [
{
"Count": 1000,
"Limit": 12000,
"Category": {
"Code": "Cash"
}
},
{
"Count": 1500,
"Limit": 12000,
"Category": {
"Code": "Futures"
}
}
]
}