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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
5 1 0 3

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

dss-rest-apidatascope-selectdss.net
icon clock
10 |1500

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

Upvote
Accepted
38.1k 71 35 53

@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.

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

1583479880372.png (48.1 KiB)
icon clock
10 |1500

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

Upvotes
1 0 0 0

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

icon clock
10 |1500

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

Click below to post an Idea Post Idea