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?
Best Answer
-
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,XDS0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛