question

abhinav.gupta avatar image
1 1 0 1

Unable to fetch DIJcm1 OHLC and Volume data for daily time frame.

I'm trying to fetch the OHLC and Volume data for DIJcm1..... DIJcm28. But data is only available for past 1 Year in Eikon. I've tried using TRTH also, but it is throwing me an error for the DIJcm1 RIC.

eikoneikon-data-apitick-history-rest-api
trth-error.jpg (28.7 KiB)
dijcm1-error.jpg (140.6 KiB)
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

veerapath.rungruengrayubkul avatar image
11.3k 25 8 13

Hi @abhinav.gupta

The "name --- is not defined" error is generated by Python when the variable is not defined in the code. You need to verify your Python code.

Anyway, I have tried to extract time series data using ElektronTimesSeries report template but cannot get data. You need to contact TRTH support to discuss whether the timeseries data is available for the DIJcm1 RIC on TRTH or not. Please submit a query to TRTH support via MyRefinitiv.

{
  "ExtractionRequest": {
    "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.ElektronTimeseriesExtractionRequest",
    "ContentFieldNames": [
      "Instrument ID",
      "Open",
      "High",
      "Low",
      "Last",
      "Volume",
      "Trade Date"
    ],
   "IdentifierList": {
      "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",  
      "InstrumentIdentifiers": [{
        "Identifier": "DIJcm1",
        "IdentifierType": "Ric"
      }],
      "ValidationOptions": {
                 "AllowHistoricalInstruments": true,
         "AllowInactiveInstruments": true
                 },
            "UseUserPreferencesForValidationOptions": false
   },
    "Condition": {
            "ReportDateRangeType": "Range",
            "QueryStartDate": "2018-01-01T00:00:00.000Z",
            "QueryEndDate": "2020-12-02T00:00:00.000Z"
    }
  }
}
10 |1500

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