How to do fund performance analysis using Refinitiv.Data?

I'm a student doing my master's thesis and I've been instructed by my former supervisor to use Refinitiv dataplatform so seek data and do calculations needed for the thesis in Python.
I've been trying to figure things out with documentation and tutorials for weeks and I'm unable to proceed. Also I'm not able to get any help from the school as my current supervisor doesn't know how to use the program.
I'm able to get historical closing prices of the needed active ETFs but I'm unable to proceed with calculations in Python. Any help or push to right direction would be greatly appreciated.
Example of the code from one Active ETF:
import refinitiv.data as rd
from refinitiv.data.content import historical_pricing
from refinitiv.data.content.historical_pricing import Intervals
from refinitiv.data.content.historical_pricing import Adjustments
from refinitiv.data.content.historical_pricing import MarketSession
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import asyncio
import datetime
rd.open_session()
response = historical_pricing.summaries.Definition(
universe = "JEPI.K",
interval = historical_pricing.Intervals.DAILY,
start = datetime.date(2020, 1, 1),
end = datetime.date(2020, 12, 31),
fields = ["TRDPRC_1"],
adjustments = [
Adjustments.EXCHANGE_CORRECTION,
Adjustments.MANUAL_CORRECTION
]
).get_data()
# Extract in DataFrame format
response.data.df
JEPI.K TRDPRC_1
Date
2020-05-21 49.9345
2020-05-22 50.0935
2020-05-26 50.2383
2020-05-27 50.6274
2020-05-28 51.14
.........
2020-12-24 55.6026
2020-12-28 55.87
2020-12-29 55.91
2020-12-30 55.35
2020-12-31 55.75
156 rows × 1 columns
Best Answer
-
@Ville L Thanks for your question - funds have the concept of total return which includes dividends - this is how typically they are analysed - see my code below:
import refinitiv.data as rd
rd.open_session()
df = rd.get_history(['JEPI.K','PSFD.K','SPUC.K'],['TR.TotalReturn.date','TR.TotalReturn'],start='2023-08-01',end ='2024-03-04',interval = '1D')
dfThis is providing you with daily returns series for whatever period and can then be cumulatively summed etc. To get a universe of fund peers app (type FPEERS into Eikon Search bar). I hope this can help.
0
Answers
-
Hi @Ville L, I have liaised with our internal teams to try and find a solution for your inquiry. I will revert to you on this Forum as soon as I have an update.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
- 684 Datastream
- 1.4K DSS
- 614 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
- 248 ETA
- 552 WebSocket API
- 37 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
- 641 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 89 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛