DSS scheduled report output in JSON format

perl
perl Newcomer

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.

Best Answer

  • gteage01
    gteage01 LSEG
    Answer ✓

    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
    }
    }

Answers

  • 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.

  • perl
    perl Newcomer

    The replies solved my issue, thanks :)