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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
43 8 10 12

get RIC code for a given OrgId in python

We have list of OrgId of companies recieved from Organisation Hierarcy data API.

requestUrl='https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractRaw'

"@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.LegalEntityHierarchyExtractionRequest"


Now for all the companies recieved from Organisation Hierarcy data, we require corresponding RIC codes.

Could you point us to the API which can provide the relevant data.


Also if you can provide the code snippet(as mentioned below) for API call, it will be very helpful.

  
  
                
  1. requestUrl = 'https://selectapi.datascope.refinitiv.com/RestApi/v1/Extractions/ExtractRaw'
  2.  
  3. requestHeaders = {
  4. "Prefer": "respond-async",
  5. "Content-Type": "application/json",
  6. "Authorization": "token " + token
  7. }
  8.  
  9. requestBody = {
  10. "ExtractionRequest": {
  11. "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.LegalEntityHierarchyExtractionRequest",
  12. "ContentFieldNames": [
  13. "ID",
  14. "Legal Entity OrgID",
  15. "Official Name",
  16. "Related OrgID",
  17. "Immediate Parent OrgID",
  18. "Ultimate Parent OrgID"
  19. ],
  20. "IdentifierList": {
  21. "@odata.type": "#DataScope.Select.Api.Extractions.ExtractionRequests.EntityIdentifierList",
  22.             "EntityIdentifiers": [
  23.                 {"Identifier": "100421204", "IdentifierType": "OrgId" }
  24. ]
  25. },
  26. "Condition": {
  27. "DeltaDays": "5"
  28. }
  29. }
  30. }
  31.  
  32. r2 = requests.post(requestUrl, json=requestBody, headers=requestHeaders)
  33. status_code = r2.status_code
dss-rest-apidatascope-selectdsssymbologyric
icon clock
10 |1500

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

Hello @vijay.singh

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS

1 Answer

· Write an Answer
Upvotes
Accepted
78.9k 250 52 74

@vijay.singh

From my finding, I can use the returned "Legal Entity OrgID" fields with the Search/EquitySearch endpoint to get RIC codes.

{
    "SearchRequest": {
        "AssetStatus": "Active",
        "AssetCategoryCodes": null,
        "SubTypeCodes": null,
        "CurrencyCodes": null,
        "CompanyName": null,
        "Description": null,
        "DomicileCodes": null,
        "ExchangeCodes":null,
        "FairValueIndicator": null,
        "FileCodes": null,
        "GicsCodes": null,
        "OrgId": "116916829,100421204,101908452,95420",
        "Ticker": null,
        "Identifier": null,
        "IdentifierType": null,
        "PreferredIdentifierType": null
    }
}

The response looks like this:

    "value": [
        {
            "Identifier": "NNND.F",
            "IdentifierType": "Ric",
            "Source": "FRA",
            "Key": "VjF8MHgwMDAzZGQwMDEzNjY5NjNkfDB4MDAwM2RjMDAzZGM1ODBhN3xGUkF8RVFRVXxFUVRZfE9EU0h8RXx8Tk5ORC5GfDAxODY",
            "Description": "TENCENT ORD",
            "InstrumentType": "EquityQuote",
            "Status": "Valid",
            "DomicileCode": "CN",
            "CurrencyCodes": "EUR",
            "SubTypeCode": "ODSH",
            "AssetStatus": "Active",
            "IssuerName": "TENCENT HOLDINGS",
            "IssuerOrgId": "100421204",
            "Exchange": "FRA",
            "FileCode": "186"
        },
        {
            "Identifier": "UBSFF.PK",
            "IdentifierType": "Ric",
            "Source": "PNK",
            "Key": "VjF8MHgwMDAzZGQwMDE0ZDE3ZjY0fDB4MDAwM2RjMDA0MjAxMGI5N3xQTkt8RVFRVXxFUVRZfE9EU0h8RXx8VUJTRkYuUEt8MTA2MA",
            "Description": "UBISOFT ENTERTAINMENT ORD",
            "InstrumentType": "EquityQuote",
            "Status": "Valid",
            "DomicileCode": "FR",
            "CurrencyCodes": "USD",
            "SubTypeCode": "ODSH",
            "AssetStatus": "Active",
            "IssuerName": "UBISOFT ENT",
            "IssuerOrgId": "95420",
            "Exchange": "PNK",
            "FileCode": "1060"
        },

However, please directly contact the Refinitiv DataScope Select support team via MyRefinitiv to verify it.


icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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