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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
3 0 0 1

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

dss-rest-apidssrest-apic#
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.

1 Answer

Upvotes
Accepted
14.7k 39 12 18

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!