how I tick data for an expired ric via TRTH API v2 in java. I attached my request message and ser...

...ver response.

expired-ric.txt

Best Answer

  • zoya faberov
    zoya faberov ✭✭✭✭✭
    Answer ✓

    Hello @Shyamala.K,

    ValidationOptions is the way

    In Java:

    .put ("IdentifierList", new JSONOrderedObject()  

    .put ("@odata.type", "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList")

    .put ("InstrumentIdentifiers", jaRICs)

    .put("ValidationOptions", new JSONOrderedObject()

    .put("AllowHistoricalInstruments", true) )

    .put("UseUserPreferencesForValidationOptions", false)

    which should result in request:

    "IdentifierList": {  

    "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",

    "InstrumentIdentifiers": [

    {

    "Identifier": "YOUR_RIC",

    "IdentifierType": "Ric"

    }

    ],

    "ValidationOptions": {

    "AllowHistoricalInstruments": true

    },

    "UseUserPreferencesForValidationOptions": false },