How to get CurrencyCodes in EquitySearch when searching with 'Ric' as IndentifierType?

How to get CurrencyCodes in EquitySearch when searching with 'Ric' as IndentifierType?

Best Answer

  • @avinash.g

    To retrieve the currency code for a particular instrument, there are different possibilities, as the Currency Code is a common field.

    You can do an extraction for Terms and Conditions. Example request for 2 instruments:

    {
    "ExtractionRequest": {
    "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TermsAndConditionsExtractionRequest",
    "ContentFieldNames": [
    "RIC", "Currency Code"
    ],
    "IdentifierList": {
    "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList",
    "InstrumentIdentifiers": [
    {
    "Identifier": "00209tab1",
    "IdentifierType": "Cusip"
    },
    {
    "Identifier": "IBM.N",
    "IdentifierType": "Ric"
    }
    ]
    }
    }
    }

    Alternatives:

    Do a composite extraction request (the query is the same as above, except the data type):

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

    You can even do a request for End of Day data for that instrument. For details see REST API Tutorial 2.

Answers