Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /
avatar image
Question by Wessel · Oct 10, 2017 at 11:56 AM · tickerwebapilistscreen

Screen to capture a list of tickers

Some of my Excel API queries involved fetching a list of tickers that are covered only by a certain broker, so I could get the EPS forecasts provided by that specific broker. Hence I constructed a screen query to get the Primary Tickers of that broker, and then ran a different query from that ticker list to get the data values.

My screening query looked something like this:

=TR("SCREEN(U(IN(Equity(active,public,primary))), avail(TR.EPSEstValue(Period=FY1,Brokers=US_2),TR.EPSEstValue(Period=FY1,Brokers=US_57030))>=-100)","TR.PrimaryRICCode", "SDate=0 EDate=0 Frq=d RH=IN")

The problem is that this query does not work in the Web API. Can you assist me to get it working?

People who like this

0 Show 1
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.

avatar image
REFINITIV
jirapongse.phuriphanvichai ♦♦ · Oct 12, 2017 at 06:09 AM 0
Share

@Wessel

This question was posted in Eikon Scripting APIs which is Python. However, the question is about Web API.

Could you please confirm the API that you are using? Is it App Studio - Web SDK (JET)?

It will be helpful if you can share the code that you are using in the Web API.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by pierre.faurel · Oct 12, 2017 at 09:52 AM

Following code should be the equivalent of your TR function in EXCEL:

>>> rics = 'SCREEN(U(IN(Equity(active,public,primary))), avail(TR.EPSEstValue(Period=FY1,Brokers=US_2),TR.EPSEstValue(Period=FY1,Brokers=US_57030))>=-100)'
>>> params = {'SDate':0, 'EDate':0, 'Frq':'d'}
>>> data, error = ek.get_data(rics, fields=['TR.PrimaryRICCode'], parameters=params)
>>> data
      Instrument Primary RIC
0        AMED.OQ      AMED.O
1        AAPL.OQ      AAPL.O
2          AAP.N         AAP
3        ABAX.OQ      ABAX.O
...          ...         ...
2707      CTEC.L      CTEC.L
2708    AALR3.SA    AALR3.SA
2709     DNAO.HE     DNAO.HE
2710     PNBH.NS     PNBH.NS

[2737 rows x 2 columns]
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.

avatar image
Answer by Wessel · Oct 12, 2017 at 08:07 AM

Apologies, I should have said Eikon Scripting API. I'm experiencing the problem in Python.

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 >
8 People are following this question.

Related Questions

Converting a list of tickers to RICs

How do I add additional criteria when retrieving RIC codes to a ‘screener_exp’ statement?

If I am trying to convert tickers to RIC's which Eikon Api do I need?

Companies data clarifications

Pull all RICs associated with a specific company ticker

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • 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
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges