question

Upvotes
Accepted
1 1 1 2

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 512.0 KiB each and 1.0 MiB total.

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question. Thanks, AHS

Hi,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
11.3k 25 9 14

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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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