Retireve prices based on overriden price contributor through User Defined Identifer2 -- DSS API -...

...- .Net SDK

Hi Team,

Currently we are using DSS .Net SDK solution (API) to get pries using ‘’Premium End of Day Pricing’ template.

As per the user guide if we pass User Defined Identifier2 with a value ‘CPL,PA’ it will override the default price source and prices will retrieved based on overridden price source.

This is not working with SDK solution and the default price source prices are always retrieved.

Could someone share any sample code how we can accomplish this?

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @mithun.ghosh

    There is an attribute named Source in the InstrumentIdentifer.

    instrumentIdentifiers[0] = new InstrumentIdentifier
    {
        IdentifierType = IdentifierType.Isin,
        Identifier = "US47770VBQ23",
        Source = "MB1"               
    };

    However, if I search for US47770VBQ23 in the DSS GUI. There are two sources (EJV and MB1) for US47770VBQ23.

    image


Answers

  • Jirapongse
    Jirapongse ✭✭✭✭✭

    @mithun.ghosh

    As I know, User Defined Identifiers are used for internal auditing and tracking purposes. It likes closures for identifiers.

    You can specify User Defined Identifiers in instruments:

     instrumentIdentifiers[0] = new InstrumentIdentifier
     {
         IdentifierType = IdentifierType.Ric,
         Identifier = "IBM.N",
         UserDefinedIdentifier = "EQUITYTEST"
     };
     instrumentIdentifiers[1] = new InstrumentIdentifier
     {
         IdentifierType = IdentifierType.Cusip,
         Identifier = "438516AC0",
         UserDefinedIdentifier = "BONDTEST"
     };

    Then, you can retrieve it in the ExtractionRow.

     foreach (ExtractionRow row in extractionDataRows)
     {
         Console.WriteLine(row.UserDefinedIdentifier);
    ...

    Can you point me to the user guide that mentions " if we pass User Defined Identifier2 with a value ‘CPL.PA’ it will override the default price source and prices will be retrieved based on overridden price source."?


  • When we extract from DSS portal, we are able to override price source by creating instrument list in this format

    Eg. if default source for this instrument is EJV, but we want to override with CPL


    Identifier Type, Identifier, User Defined Identifier, Price Source

    ISN,US47770VBQ23,,CPL,


    Also screenshot from user guide. How do we accomplish this through .NET SDK API?

    image

  • @mithun.ghosh,

    The screenshot of the GUI User Guide is in "Importing Instruments" section which imports Instrument List from CSV file. This is similar to the ImportFromBytes endpoint. For sample code usage, please see the C# Example application downloaded on this page.

    image