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.
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" } }}