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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
5 1 2 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 512.0 KiB each and 1.0 MiB total.

Upvote
Accepted
45.2k 103 43 60

@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 512.0 KiB each and 1.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 512.0 KiB each and 1.0 MiB total.