I tried replicating the THv2 API case 7b (Request EoD Data) in Postman and it's allright if i change dates or use equities RIC, when i try with RIC such as EXA01c (an energy spot) with the following request
{ "ExtractionRequest": { "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.ElektronTimeseriesExtractionRequest", "ContentFieldNames": [ "Instrument ID", "Benchmark Price", "Trade Date" ], "IdentifierList": { "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList", "InstrumentIdentifiers": [ { "Identifier": "EXA01c", "IdentifierType": "Ric" } ] }, "Condition": { "StartDate": "2017-03-24T00:00:00.000-00:00", "EndDate": "2017-03-26T00:00:00.000-00:00" } } }
i get the "All identifiers were invalid. No extraction performed." message and can't get any data. This message is misleading because if i perform same request with the GUI i can get valid results. Then if i add to the request the ValidationOptions i saw in other part of API document i.e. :
"ValidationOptions": { "AllowHistoricalInstruments": true }, "UseUserPreferencesForValidationOptions": false,
request is running ok and with step 7d ,results are returned :
Instrument ID,RIC,Benchmark Price,Trade Date EXA01c,EXA01c,28.96,2017/03/24 EXA01c,EXA01c,23.99,2017/03/25 EXA01c,EXA01c,28.5,2017/03/26
And indeed they're even better than THv1 that was not handling weekend data for such RICs.
EXA01c is a "open access" RIC in DSS only, could this be the reason and we'd use the ValidationOptions for those instruments ? or to be more pragmatic we'd always use the ValidationOptions settings in all requests ?
many thanks in advance Paolo