question

Upvotes
Accepted
1 0 0 0

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

1 Answer

Upvotes
Accepted
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"
    }
  }
}
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