For a deeper look into our DataScope Select SOAP API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
11 0 1 4

Search Instrument by ChainRIC IdentifierType is not working (DSS REST API)

Hi Community,

I'm trying to use that resource to find some RICs by chain, but I'm getting this Validation Error: The Identifier Type CHR is not supported; for this Chain 0#BONOS=BIV.

Request and Response with error message :

        path = "/Search/InstrumentSearch"
        var = {
            "SearchRequest": {
                "IdentifierType": 'ChainRIC',
                "Identifier": '0#BONOS=BIV',
                "PreferredIdentifierType": "Ric"
           }
       }
        x1 = self.s.post(self.url_root+path, json=var)
        res = json.loads(x1.text)
        print(res)


{'error': {'message': 'Validation Error:\r\n\r\nThe Identifier Type CHR is not supported; supported values are: RIC, CSP, ISN, VAL, WPK, COM, SED, PID, PIDQ, SIC, ISM, LOC, AFI, SVM, MIC, LIP, TICKER, ORGID, CIN, SYM, FLI, PPN, FDV, CNC'}}


So, could you help me to understand why it's happening?


dss-rest-apidatascope-selectdsssearchchain-ric
icon clock
10 |1500

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

1 Answer

Upvote
Accepted
13k 32 12 18

Hi @Bruno.Leal,

We can only provide technical API support on these forums. I am not sure why ChainRIC is not being accepted as valid identifier, even though it is one of the options in the documentation.

I would recommend that you open a support ticket at my.refinitiv.com and ask this question to product team.

Meanwhile you can use Historical Chain Resolution to search for constituents if you want:

{
  "@odata.context": "http://selectapi.datascope.refinitiv.com/RestApi.Help/$metadata#DataScope.Select.Api.Search.HistoricalChainResolutionRequest",
  "ChainRics": ["0#BONOS=BIV"],
  "Range": {
    "Start": "2021-05-10T00:00:00.000Z",
    "End": "2021-05-10T00:00:00.000Z"
  }
}

Response:

{
  "@odata.context": "https://selectapi.datascope.refinitiv.com/RestApi/v1/$metadata#Collection(DataScope.Select.Api.Search.HistoricalChainInstrument)",
  "value": [{
      "Identifier": "0#BONOS=BIV",
      "IdentifierType": "ChainRIC",
      "Source": "",
      "Key": "VjF8MHgzMDAwMDAwMDAwMDAwMDAwfDB4MzAwMDAwMDAwMDAwMDAwMHx8fHx8fHwwI0JPTk9TPUJJVnw",
      "Description": "Historical Chain",
      "InstrumentType": "Unknown",
      "Status": "Valid",
      "Constituents": [{
          "Identifier": "BAFIRME12=BIV",
          "IdentifierType": "Ric",
          "Source": "",
          "Key": "VjF8MHgzMDAwMDAwMDAwMDAwMDAwfDB4MzAwMDAwMDAwMDAwMDAwMHx8fHx8fHxCQUZJUk1FMTI9QklWfA",
          "Description": "Historical Instrument",
          "InstrumentType": "Unknown",
          "Status": "Valid",
          "DomainCode": "6"
        }, {
          "Identifier": "BANORTE08U=BIV",
          "IdentifierType": "Ric",
          "Source": "",
          "Key": "VjF8MHgzMDAwMDAwMDAwMDAwMDAwfDB4MzAwMDAwMDAwMDAwMDAwMHx8fHx8fHxCQU5PUlRFMDhVPUJJVnw",
          "Description": "Historical Instrument",
          "InstrumentType": "Unknown",
          "Status": "Valid",
          "DomainCode": "6"
        }, {
          "Identifier": "BCOBX12=BIV",
          "IdentifierType": "Ric",
          "Source": "",
          "Key": "VjF8MHgzMDAwMDAwMDAwMDAwMDAwfDB4MzAwMDAwMDAwMDAwMDAwMHx8fHx8fHxCQ09CWDEyPUJJVnw",
          "Description": "Historical Instrument",
          "InstrumentType": "Unknown",
          "Status": "Valid",
          "DomainCode": "6"
        }, {

...
icon clock
10 |1500

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

Thank you for the suggestion. I'll do that

Click below to post an Idea Post Idea