For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 0 0 0

Is there a DSS API to pull usage per template?


Here is a quick API snippet to run DSS usage reports

{
                
"ExtractionUsageCriteria": {
                
"EndDateTime":"2022-03-01T12:00:00",
"StartDateTime":"2022-01-01T12:00:00"
}
}

What we are looking to pull is usage specific to a template for a specific date range (ex; per day).

picture1.png


dss-rest-api
picture1.png (83.5 KiB)
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.

Hello @steven.giallanza

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS

Hello @steven.giallanza ,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

-AHS

1 Answer

· Write an Answer
Upvotes
Accepted
32.2k 40 11 20

Hello @steven.giallanza ,

Please see DSS REST API Reference tree- Usage section, for all Usage reports that are made available, do not believe there is specific report of "usage per template".

The report that you are looking at GetExtractionUsageInstrumentSummary is probably the closest to what you need:

{
                {protocol}}{
                {host}}{
                {api}}/Usage/GetExtractionUsageInstrumentSummary
{
    "ExtractionUsageCriteria": {
        "StartDateTime": "2021-01-01T00:00:00Z",
        "EndDateTime": "2021-11-01T00:00:00Z"
        
    }
}

as it returns template information and can be ranged by dates:

{
    "@odata.context": "https://selectapi.datascope.refinitiv.com/RestApi/v1/$metadata#DataScope.Select.Api.Usage.ExtractionUsageInstrumentSummaryResult",
    "Records": [
        {
            "AssetClass": "CMBS",
            "SubClass": "NONE",
            "ReportTemplate": "SCH",
            "SubTemplate": "NONE",
            "Count": 5,
            "EquityFairValue": 0,
            "FixedIncomeValuations": 0
        },
        {
            "AssetClass": "COMM",
            "SubClass": "HISTORICAL",
            "ReportTemplate": "ET2",
            "SubTemplate": "NONE",
            "Count": 3,
            "EquityFairValue": 0,
            "FixedIncomeValuations": 0
        },
        {
            "AssetClass": "CORP",
            "SubClass": "INVGDE",
            "ReportTemplate": "CMP",
            "SubTemplate": "NONE",
            "Count": 1,
            "EquityFairValue": 0,
            "FixedIncomeValuations": 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.

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.