Retrieve/Calculate the BETA of a stock relative to an index other than its benchmark
Hi guys,
A customer is looking for an easiest way to compute the BETA of a stock relative to any index this stock may be in.
For instance, let's take Volkswagen whose RIC is VOWG_p.DE. Volkswagen's main index is the DAX whose RIC is .GDAXI
However, Volkswagen is also part of the Euro STOXX 600 whose RIC is .STOXX
As the Euro Stoxx 600 is broadly used as a benchmark, it makes sense to be able to retrieve/compute performance data linked to it.
In that case, what does the underlying python function which uses refinitiv.data library look like ?
Thanks
Best Answer
-
Following @haykaz.aramyan contribution on this thread, this allows me to compute the BETA.
Thanks
1
Answers
-
You may need to elaborate exactly what specific details you need. It's unclear if you want some specific python function to calculate a value for a specific index or whether you need a way to determine the list of indexes a specific RIC is a member of. For the latter, I believe the following is a way to retrieve this list:
As you stated, the main index for VOWG_p.DE is .GDAXI.
rd.discovery.search(
filter = "code eq 'VOWG_p.DE' and IsMemberOfIndex eq true",
select = "DocumentTitle, MainIndexRIC, IndexMembership"
)And based on the Index Membership, we can pull down the list of index details:
rd.discovery.search(
top = 500,
filter = "NDAID in ('276262' '293074' '296158' '303064' '307126' '330500' '335612' '354837' '355640' '355787' '363702' '363735' '364172' '365089' '366554' '382578' '384349' '384370' '414779' '414990' '415264' '415267' '415442' '415453' '415534' '415536' '415539' '415543' '416038' '431316' '431417' '453413' '548592' '5847432' '7182968' '7183011' '7183056' '7183102' '7191327' '7192074' '7192089' '7192092' '7192095' '7192098' '7456134' '11459440' '12398405' '12398409' '15464123' '18973288' '19070454' '19070472' '19070490' '19070508' '60789514' '60789515' '60789519' '60789521' '60789523' '62093664' '63124495' '63124515' '63124557' '63124573' '63124613' '63269979' '65833503' '65833507' '65836585' '65836588' '65836738' '65836742' '65836904' '65836910' '65837092' '65837096' '65837589' '65837592' '74629512' '74630188' '74632043' '74632045' '91634410' '91634564' '122266313' '124541486' '126738417' '136588784' '136591023' '152728676' '152728678' '158704891' '158706172' '168347385' '181282521' '181282526' '192154904' '192156113' '192161327' '192164530' '205293444' '238657872' '238657873' '238657874' '289858120' '297987784' '357637055' '357637131' '357637163' '357637209' '357637253' '357637269' '357637345' '357637707' '460786934')",
select = "DocumentTitle, RIC"
)0
Categories
- All Categories
- 6 AHS
- 39 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
- 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 中文论坛