Unexpected Behaviour in FundSearchRequest

Options

I'm issuing a Fund Search request with the following code:

 var refine = new FundSearchRequest();
refine.Identifier = code;
refine.IdentifierType = IdentifierType.Isin;
refine.PreferredIdentifierType = IdentifierType.Ric;

var fundRes = context.FundSearch(refine);

my sourec identifier is an ISIN, and I specify the type, but I want, as a preferred returned identifier, the ric. Unfortunately the search request returns an ISIN. Unfortunately the web application of datascop return for the same asset, a RIC. What's wrong with my request?

the ISIN is CH0016174051 that the UI report with a RIC

LP60090222

Best Answer

  • @felice.pollano

    If you want to get RIC from Isin, you may use InstrumentSearch with only InstrumentTypeGroup.Funds instead. Below is the sample code.

    var results = SearchContext.InstrumentSearch(
    AllInstrumentSearchRequest.Create(
    new[] { InstrumentTypeGroup.Funds },
    IdentifierType.Isin,
    "CH0016174051",
    IdentifierType.Ric)); //Preferred identifier

    It can return the LP60090222 RIC.

    Hope this helps.