In Data Scope Select -- Which Report report template is for generating on demand RAW TAS file?

Suresh N
Suresh N Newcomer
In Data Scope Select -- Which Report report template is for generating on demand RAW TAS file?

Best Answer

  • warat.boonyanit
    Answer ✓

    Hi @Suresh N

    For on demand request, instead
    of defining a report template, the
    request is made directly with a predefined data type.

    "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TickHistoryRawExtractionRequest"

    The raw data type is above.

    Here is an example HTTP request:

    POST https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractRaw HTTP/1.1
    Prefer: respond-async
    Content-Type: application/json
    Authorization: Token <your_auth_token_goes_here>
    {
    "ExtractionRequest": {
    "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TickHistoryRawExtractionRequest",
    "IdentifierList": {
    "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
    "InstrumentIdentifiers": [{
    "Identifier": "CARR.PA",
    "IdentifierType": "Ric"
    }]
    },
    "Condition": {
    "MessageTimeStampIn": "GmtUtc",
    "ReportDateRangeType": "Range",
    "QueryStartDate": "2016-09-29T12:00:00.000Z",
    "QueryEndDate": "2016-09-29T12:10:00.000Z",
    "ExtractBy": "Ric",
    "SortBy": "SingleByRic",
    "DomainCode": "MarketPrice",
    "DisplaySourceRIC": true
    }
    }
    }

    There is a tutorial for On Demand raw extraction on the TRTH portal as well.

    REST API Tutorial 8: On Demand raw data extraction