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
0
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
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 685 Datastream
- 1.4K DSS
- 615 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 252 ETA
- 556 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 275 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 651 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 193 TREP Infrastructure
- 228 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛