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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
3 0 1 2

DSS scheduled report output in JSON format

Hi,

I wonder if it is possible to get the output of a scheduled report in json format?

I'm using the .Net SDK kit provided by Thomson Reuters to get the latest files for a specific schedule.

Thanks in advance.

dss-rest-apidatascope-selectdssjson
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.

@perl

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

Upvotes
Accepted
462 13 11 15

Hi,

You can data back in JSON format via an On Demand request, eg. for End of Day request

POST https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractWithNotes HTTP/1.1
Authorization: Token <your_auth_token_goes_here>
Prefer: respond-async
Content-Type: application/json; odata=minimalmetadata
{
    "ExtractionRequest": {
        "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.EndOfDayPricingExtractionRequest",
        "ContentFieldNames": [
            "Asset Status",
            "Asset Type",
            "Bid Price",
            "Currency Code",
            "CUSIP",
            "File Code",
            "Ask Price",
            "High Price",
            "Low Price",
            "Mid Price",
            "Volume",
            "Net Asset Value",
            "Offer Price",
            "Official Close Price",
            "Open Price",
            "Previous Close Price",
            "RIC",
            "Security Description",
            "SEDOL",
            "Ticker",
            "Trade Date"
        ],
        "IdentifierList": {
            "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
            "InstrumentIdentifiers": [
                {
                    "Identifier": "191216100",
                    "IdentifierType": "Cusip"
                },
                {
                    "Identifier": "2005973",
                    "IdentifierType": "Sedol"
                },
                {
                    "Identifier": "AAPL.OQ",
                    "IdentifierType": "Ric"
                }
            ],
            "ValidationOptions": null,
            "UseUserPreferencesForValidationOptions": false
        },
        "Condition": null
    }
}
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
11.3k 25 9 14

Hi @perl

For Schedule extraction, supported output formats are CSV, XML, and Delimited only. As Gareth suggested, you can use On Demand extraction to get output in JSON format.

For more information about difference between these extraction types, please see this tutorial.

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
3 0 1 2

The replies solved my issue, thanks :)

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.