UseExchangeCodeInsteadOfLipper flag in C# DataScope Select - REST API?

Pocari Sweat
Pocari Sweat Newcomer
edited December 2024 in DSS

Hi all,

I'm using the DataScope Select REST API C# dll libraries to make CompositeExtractionRequests

In the http REST API there is a json flag you can use for "UseExchangeCodeInsteadOfLipper" - is there an equivalent for this on the CompositeExtractionRequest C# class? All I can see on that class is IdentifierList, ContentFieldNames, and Condition

Many thanks

Best Answer

  • Pocari Sweat
    Pocari Sweat Newcomer
    Answer ✓

    Solved. I was looking at the wrong level, you set the Lipper flag when you instantiate the InstrumentIdentifierList:

    var extractionRequest = new CompositeExtractionRequest
    {
    IdentifierList = InstrumentIdentifierList.Create(instrumentIdentifiers, new InstrumentValidationOptions() { UseExchangeCodeInsteadOfLipper = true }, false),
    ContentFieldNames = contentFields,
    };