question

Upvotes
Accepted
1 0 0 4

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

tick-history-rest-api
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.

1 Answer

Upvotes
Accepted
4.4k 10 6 9

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

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.