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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
3 0 0 2

In DSS REST API, is there a C# equivalent to the HTTP formatted call option, "UseUserPreferencesForValidationOptions": true ?

dss-rest-apidssc#rest-api
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.

@andrew.hoeing1

Hi,

Thank you for your participation in the forum.

Is the reply below satisfactory in answering your question?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
22k 58 14 21

Hi @andrew.hoeing1 ,

I presume you are asking about the DSS C# SDK. Yes, when an instrument identifier list is created, the last boolean parameter allows you to define if user preferences are to be used or not.

Signature:

public static InstrumentIdentifierList Create(DssCollection<InstrumentIdentifier> instrumentIdentifiers, InstrumentValidationOptions validationOptions, bool useUserPreferencesForValidationOptions);

Use (setting it to false and using specified validation rule):

IdentifierList = InstrumentIdentifierList.Create(
new[]
{
  new InstrumentIdentifier { Identifier = "191216100", IdentifierType = IdentifierType.Cusip },
  new InstrumentIdentifier { Identifier = "2005973", IdentifierType = IdentifierType.Sedol },
  new InstrumentIdentifier { Identifier = "AAPL.OQ", IdentifierType = IdentifierType.Ric }
}, 
new InstrumentValidationOptions
{
  UseExchangeCodeInsteadOfLipper = true,
  AllowHistoricalInstruments = false,
  AllowOpenAccessInstruments = false,
  ExcludeFinrAsPricingSourceForBonds = false,
  UseConsolidatedQuoteSourceForCanada = false,
  UseConsolidatedQuoteSourceForUsa = false,
  UseUsQuoteInsteadOfCanadian = true
}, 
false);


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.

This answer worked great - thank you for the quick response!

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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