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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
3 0 0 1

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 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
462 9 7 14

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 5.0 MiB each and 10.0 MiB total.

Upvotes
11.3k 25 8 13

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 5.0 MiB each and 10.0 MiB total.

Upvotes
3 0 0 1

The replies solved my issue, thanks :)

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea