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 /

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by james.kennedy · Jul 02, 2019 at 08:06 AM · eikoneikon-data-apiworkspacepythonworkspace-data-apirefinitiv-dataplatform-eikondataequitiessectors

Industry/Sector Relative Stock Metrics

Hello,

I want to pull sector/industry relative stock total return on specific dates and relative PE, ROIC etc - is there a guide with more information about how to do this?

If I could use the stock to identify the peer group in the request I could then pull total return, PE, etc for the peer group and calculate the difference as the stock relative stock performance?

Any ideas how this could be done would be welcome!

Thanks,

JK

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.

4 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Alex Putkov.1 · Jul 02, 2019 at 04:21 PM

Here's how you can get 1 month total return and PE for stock's peers:

ek.get_data('PEERS(TRI.N)',['TR.TotalReturn(EDate=-1M)','TR.PE'],
            {'SDate':'0D'})
One potential challenge I see here is comparing these ratios for stocks traded in different currencies. Whether one should account for the exchange rate factor depends on the purpose of this analysis, I suppose.
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 james.kennedy · Jul 03, 2019 at 05:47 AM

Hello Alex,

Thanks very much for the response, that's really helpful.

Are you able to shed any light on how peers are alined with a stock?

Are you aware of where I can get more information on this?

Thanks,

JK

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 james.kennedy · Jul 03, 2019 at 05:51 AM

Hello Alex,

Is there any scope to set the peer group as the industry/sub-industry?

Thanks,

JK

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
REFINITIV
Answer by Alex Putkov.1 · Jul 03, 2019 at 03:26 PM

Peers function returns the list of stock peers selected by Refinitiv using proprietary methodology. You can get more info on the Help page for Peers & Valuation view for a stock in Eikon. If you still have further questions the best resource is Refinitiv Helpdesk, which you can reach using Contact Us capability in Eikon application

If you prefer using your own methodology for selecting peers, you could use Screener. Follow the wizard behind the Screener button under Thomson Reuters tab in Excel ribbon to set up your criteria and insert the function that returns the result into Excel worksheet. Then you can copy & paste Screener expression from =TR function in Excel to get_data method of Eikon Data APIs. E.g. the following returns the list of primary stock issues of companies headquartered in the same country and classified in the same industry according to Thomson Reuters Business Classification scheme as the given stock.

eq_ric = 'AIG.N'
tmp_df, err = ek.get_data(eq_ric,['TR.HQCountryCode','TR.TRBCIndustryCode'])
hq_ctry = tmp_df.iloc[0,1]
indstry = tmp_df.iloc[0,2]
screener = 'SCREEN(U(IN(Equity(active,public,primary))),'
screener = screener + ' IN(TR.HQCountryCode,"'
screener = screener + hq_ctry + '"), IN(TR.TRBCIndustryCode,"'
screener = screener + str(indstry) + '"))'
df, err = ek.get_data(screener, 'TR.CommonName')
df

peers.png (134.0 KiB)
Comment
Denis Schelling

People who like this

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

Related Questions

Using TR.IsDelistedQuotes an the meaning of listed/deslited stocks.

there is a bug with the quarterly frequency of get_data() function

Total Returns and Price Returns over specific periods

Equity fund ownership

Wrong free float market cap

  • 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