How to add and get response for user defined identifiers value in .Net SDK Solution?

Hi Team,

We are using the ‘.Net SDK Code based: On Demand: large instrument lists’ and we passed the below attributes list

Requested Field Names = { "RIC", "ISIN","CUSIP", "SEDOL" ,"Ticker”, UserDefinedIdentifier”};


But in the response file we have received value for { "RIC", "ISIN","CUSIP", "SEDOL" ,"Ticker” } attributes not for the user defined Identifier.


Anyone Could share any sample code how we can add the value for the user defined Identifier in response file.


Thanks,

Mithun

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @mithun.ghosh

    You need to specify the UserDefinedIdentifier in the InstrumentIdentifier.

                        instrumentIdentifiersList.Add(new InstrumentIdentifier
                        {
                            IdentifierType = identifierType,
                            Identifier = identifierCodeString,
                            UserDefinedIdentifier="test"+i.ToString()
                        });

    Then, you need to add "User Defined Identifier" in the requested field names.

                string[] requestedFieldNames = { "Instrument ID", "Security Description",
                                                 "Universal Close Price Date", "Universal Close Price","User Defined Identifier" };

    You will see the value on the UserDefinedIdentifier property of the ExtractionRow or the output in the gzip file.

    image

    Instrument ID,Security Description,Universal Close Price Date,Universal Close Price,User Defined Identifier
    911760HW9,VNDE 963 1Z Z Fix,2020/03/05,107.3289495,test0
    79548KHM3,SBMSI7 936A B2 Sub Vari,2020/03/05,97.0142938,test1

Answers

  • @jirapongse.phuriphanvichai Are User Defined Identifiers only returned when using ExtractRaw? I cannot get them to return when using ExtractWithNotes.