Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • DSS /

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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

avatar image
Question by jayzoww · Aug 01, 2017 at 03:10 PM · dss-rest-apidatascope-selectdssexchanges

Some Instruments not returning correct data for Composite Extraction

I am trying to obtain a list of exchange codes that the security is traded on using the 9th tutorial example in the .NET SDK set of tutorials - On Demand Composite Extraction. I have replaced the requested fieldnames with :

            string[] requestedFieldNames = {  "Instrument ID",
                    "Exchange Code",
                    "Exchange Country Code",
                    "Exchange Country Code Description",
                    "Exchange Description",
                    "Exchange Listed Flag",
                    "Security Description",
                    "Security Description Detail",
                    "Security Long Description",
                    "Security Long Name",
                    "Exchange Code List"};

and the Instruments with :

instrumentIdentifiers[0] = new InstrumentIdentifier
            {
                IdentifierType = IdentifierType.Cusip,
                Identifier = "922908769"	//Security we are using
            };
            instrumentIdentifiers[1] = new InstrumentIdentifier
            {
                IdentifierType = IdentifierType.Cusip,
                Identifier = "594918104"	//Microsoft
            };

The output of the extraction request returns proper values for Microsoft, while the security we use does not return anything except LIP as exchange code.

Running the same composite extraction on the web GUI returns a proper result with the correct exchange code and a list of exchanges its traded on, which leads me to believe it is a problem with the on demand extraction.

Is there a reason some securities do not work with the API?

untitled.png (6.2 KiB)

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by veerapath.rungruengrayubkul · Aug 02, 2017 at 01:05 AM

@jayzoww

It seems that the security you are using, 92290879, requires the "Use Exchange Code Instead of Lipper as Mutual Fund Default Source" instrument list option which is configured in the User Preferences page .

Normally, the On Demand extraction doesn't apply the options configured in the User Preferences page.

Application can either:

- directly add the option in the extraction request.

DssClient.cs

public IDssEnumerable<ExtractionRow> CreateAndRunCompositeExtraction(
    InstrumentIdentifier[] instrumentIdentifiers, string[] contentFieldNames)
{
    CompositeExtractionRequest extractionComposite = new CompositeExtractionRequest
    {
        IdentifierList = InstrumentIdentifierList.Create(instrumentIdentifiers,
        new InstrumentValidationOptions { 
            UseExchangeCodeInsteadOfLipper = true
        }
        ,false),
        ContentFieldNames = contentFieldNames,
                
    };
    //Run the extraction.
    //This call is blocking, it returns when the extraction is completed:
    return extractionsContext.Extract(extractionComposite);
}

- or set the useUserPreferencesForValidationOptions=true, when call InstrumentIdentifierList.Create() to allow the extraction request to use the options setting in the User Preferences page.

DssClient.cs

public IDssEnumerable<ExtractionRow> CreateAndRunCompositeExtraction(
    InstrumentIdentifier[] instrumentIdentifiers, string[] contentFieldNames)
{
    CompositeExtractionRequest extractionComposite = new CompositeExtractionRequest
    {
        IdentifierList = InstrumentIdentifierList.Create(instrumentIdentifiers, null , true),
        ContentFieldNames = contentFieldNames,
                
    };
    //Run the extraction.
    //This call is blocking, it returns when the extraction is completed:
    return extractionsContext.Extract(extractionComposite);
}

Below is the result.

Returned field values:
922908769, PSE, US, United States, NYSE Arca, , VANGUARD TOTAL STOCK MARKET ETF, , Vanguard Total Stock Market Index Fund;ETF, , ADC,ASE,BAT,BER,BOS,BTY,CIN,DEA,DEX,IEX,MEX,MID,NBA,PCQ,PPB,PSE,TDG,THM,XPH
594918104, NSM, US, United States, NASDAQ Stock Exchange Global Select Market, , MICROSOFT ORD, , Microsoft Ord Shs, , AEX,BDS,BEC,BER,BRN,COL,DEU,DUS,ETX,FRA,GCD,GCY,GCZ,GDA,GER,GSA,GSB,GSC,GSD,GSM,GSP,GSX,HAM,HAN,HKG,IES,MEX,MIL,MUN,NSM,NSQ,NXB,PPB,SGO,STO,STU,SWX,TDG,TRQ,VIE,XBO,XDS

useexchangecodeinstead.png (21.3 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
11 People are following this question.

Related Questions

REST DSS ISIN to RIC for specific exchange

GET ExchangeTypes Does not Return all Exchanegs

How to find extract error details via the rest api?

Access to economic events via REST api

Sample C# code that excludes deleted items when pulling data from DSS Corporate Actions table

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges