In DSS REST API, is there a C# equivalent to the HTTP formatted call option, "UseUserPreferencesForV

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

Best Answer

  • Gurpreet
    Answer ✓

    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);


Answers