Screener vs Eikon Advanced search UI discrepencies
Greetings
When I search for active equities for the Johannesburg Stock exchange via the Advanced Search Tools I get 496 instruments.
The following screener expression:
exp = 'SCREEN(U(IN(Equity(active,public))), IN(TR.ExchangeMarketIdCode, XJSE))'
dfxjse, e = ek.get_data(exp, ['TR.RIC','TR.ExchangeMarketIdCode','TR.InstrumentType','TR.InstrumentTypeCode'])
I get 573 issues - exactly the same as with the excel screener:
=TR("SCREEN(U(IN(Equity(active,public))),
IN(TR.ExchangeMarketIdCode,""XJSE""))","TR.RIC;TR.CommonName;TR.ExchangeCountry;TR.CLOSEPRICE;TR.IsPrimaryQuote;TR.IsCountryPrimaryQuote;TR.IsCompositeQuote;TR.IsPrimaryInstrument","RH=In CH=Fd")
Why would this be? The screeener expression excludes MANY equities that should DEFINATELY be included i.e. BHPJ.J, RAVJ.J etc.
Also using the python screener with:
'SCREEN(U(IN(Equity(active or inactive,public)))....'
or excel screen with :
=TR("SCREEN(U(IN(Equity(active or inactive,public))),.....
Has NO Effect - yet if the Advanced Search Tool UI is used with active deselected we get 2806 instruments.
How do i programmatically get a list of ALL active equity instruments for an exchange that would mimic or at least encapsulate the list returned form the Advanced Search Tools UI?
How to get a list of inactive/delisted equities for an exchange? If the screener is adjsuted to filter by TR.ExchangeCountryCode it finally returns delisted RICs but thir TR.ExchangeMarketIdCode is set to NULL?!?!?!?! WHY?
Best Answer
-
Dual listed stocks like BHPJ.J and RAVJ.J are by default excluded from the results returned by Screener. To include them you need to check Include Dual Listings checkbox when editing the Include clause under the Universe in Screener GUI, which will modify screener expression from "SCREEN(U(IN(Equity(active,public)))..." to "SCREEN(U(IN(Equity(active,public,countryprimaryquote)))..."
The discrepancy in the results returned by Advanced Search and the Screener is due to several factors. The criteria you selected in Advanced Search include equity futures and prefs. But they exclude ETFs, which are included in the Screener.
The Screener can only screen against current values of any filters. See the discussion on this thread. TR.ExchangeMarketIdCode is set to NULL for delisted stocks because these stocks are presently not listed on any exchange.
If you have any further questions or would like to report any issues regarding the functioning and capabilities of Advanced Search and/or Screener in Eikon, the best resource for this is Refinitiv Helpdesk, which you can contact by either calling the Helpdesk number in your country or by using Contact Us capability in your Eikon application.0
Answers
-
@Alex Putkov. Thank you so much for your response. The change in the Equity filter provides me what I need to go forward with my analysis. I very much appreciate your time in this regards.
I have sent ticket to Refinitiv to query the inactive search. Should I receive positive feedback I will post it here.
The setting of the TR.ExchangeMarketIdCode to NULL is frustrating for countries where there is more than one exchange so using TR.ExchangeCountryCode becomes problematic - guess that is not the intended use case for this endpoint. Just wish there was a way to duplicate the results of the Adv Search Tools when active is deselected!
Again - thanks Alex0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 5 Bot Platform
- 17 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
- 370 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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛