Not being able to get the desired response from the CommoditySearch request.

RIkesh
RIkesh Newcomer
edited June 4 in DSS

We are not being able to get the response from the following request as provided in the screenshot. Can you please assist in creating the correct request to get the correct list of the recs for the CommoditySearch request? As directed, we tried requesting the list of 'NGMM' RICs but the response is empty.

image.png

Answers

  • Hello @RIkesh

    I am not sure if you are searching for a commodity or Chain. The correct chain RIC is 0#NGMM:, and you can use the Historical Chain Resolution endpoint to get the constituents.

    "Request": {
      "@odata.context": "http://selectapi.datascope.refinitiv.com/RestApi.Help/$metadata#DataScope.Select.Api.Search.HistoricalChainResolutionRequest",
      "ChainRics": ["0#NGMM:"],
      "Range": {
        "Start": "2025-05-20T00:00:00.000Z",
        "End": "2025-05-30T00:00:00.000Z"
      }
    }
    

    PS: We can only help with technical API related queries on the developers forum. For content questions such as this - please raise a ticket at LSEG MyAccount.

  • RIkesh
    RIkesh Newcomer
    edited June 2

    Searching for a commodity, the request we have been utilizing from the beginning, which was functioning effectively, is:

    {
    "SearchRequest": {
    "KeywordQuery": "NGMM",
    "ExpirationDate": {
    "@odata.type": "#DataScope.Select.Api.Search.DateRangeComparison",
    "From": "2025-03-10T00:00:00.000Z",
    "To": "2026-05-20T00:00:00.000Z"
    },
    "PreferredIdentifierType": "Ric",
    "AssetStatus": "Active"

    }
    }

    But this request now does not return the desired commodities (Identifiers), it was suggested to use the chain rics. Is it correct to use chain RICs or the same request as above (commoditySearch) to get the identifier lists?

  • RIkesh
    RIkesh Newcomer

    @Gurpreet, can you please provide a sample request for the commoditySearch using the 'chain ric' key in the request body.

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @RIkesh

    The API supports the Search/HistoricalChainResolution that can resolve historical chains. For example:

    {
    "Request": {
    "ChainRics": [
    "0#NGMM:"
    ],
    "Range": {
    "Start": "2025-05-20T00:00:00.000Z",
    "End": "2025-05-29T00:00:00.000Z"
    }
    }
    }

    For the commoditySearch, please contact the product support team directly via MyAccount. The support team can provide you with a sample request.