Difference between "UseUserPreferencesForValidationOptions" and "ValidationOptions

Options

What is difference between DSS API options "UseUserPreferencesForValidationOptions" and "ValidationOptions"?

These two seem to be the same, but please advise how different they are.

example:

"ValidationOptions": {
"AllowOpenAccessInstruments": true,
"AllowHistoricalInstruments": true,
"AllowLimitedTermInstruments": true,
"AllowInactiveInstruments": true,
"AllowUnsupportedInstruments": true,
"ExcludeFinrAsPricingSourceForBonds": true,
"UseExchangeCodeInsteadOfLipper": true,
"UseUsQuoteInsteadOfCanadian": true,
"UseConsolidatedQuoteSourceForUsa": true,
"UseConsolidatedQuoteSourceForCanada": true,
"UseDebtOverEquity": true,
"UseOtcPqSource": true,
"AllowSubclassImport": true
},
"UseUserPreferencesForValidationOptions": false

Regards,

Hiroko

Best Answer

  • Christiaan Meihsl
    Answer ✓

    @hiroko.goto,

    Both these settings can be set in a data extraction request, to change the system behavior for that specific request. The purpose it to override the defaults defined in the general preferences set in the GUI.

    ValidationOptions

    Sets individual options. Each one of these overrides the equivalent setting defined in the general preferences.

    "UseUserPreferencesForValidationOptions": false

    Disables all user preferences. The behavior reverts to the default, but with all the overrides defined using ValidationOptions.

    Please also note that the settings in the general preferences set in the GUI only apply to scheduled extractions, not On Demand extractions, which systematically use defaults. Hence the fact that these 2 parameters are often used in On Demand extractions, the most common use case being to retrieving data for historical instruments, by setting:

    "ValidationOptions": { "AllowHistoricalInstruments": true },"UseUserPreferencesForValidationOptions": false

    Hope this clarifies.