How to get total returns of US mutual funds using python eikon API?

The Fund NAV data for mutual funds is dont adjusted for dividends or capital gains. For stocks and ETFs I'm able to get the total returns using "TR.TotalReturn1D" but for mutual funds Im not able to get the total returns. Because the prices are not adjusted, calculating return on the unadjusted price will be wrong on the date of the dividends/capital gain release.
Im able to retreive dividends and capital gains for any mutual fund using which I can adjust the NAVs on the release of capital gains or dividends but directly getting the returns data is much easier and less prone to error.
Is there any way to directly get total returns of any mutual fund similar to "TR.TotalReturn1D" for stocks and ETFs?
Image1: Python using Eikon API for ticker VWIGX
Image2: Yahoo data for ticker VWIGX
Best Answer
-
@BlackBird , You get the fund performance (total return) using data under "Lipper Funds". The "Quantitative Analysis" provides latest 1M, 3M, 6M, 1Y, 3Y.... 10Y, Year-to-Date...etc performances. You can also use "Rolling Performance" to get historical rolling performances, e.g.:
import refinitiv.dataplatform.eikon as ek
ek.set_app_key('DEFAULT_CODE_BOOK_APP_KEY')
df, err = ek.get_data(
instruments = ['VWIGX.O'],
fields = ['TR.FundRollingPerformance(Interval=M,Curn=Native,RollTimeFrame=1Y).date', 'TR.FundRollingPerformance(Interval=M,Curn=Native,RollTimeFrame=1Y)']
)
display(df)Instrument Date Rolling Performance
0 VWIGX.O 2021-09-10T00:00:00Z 1.97126
1 VWIGX.O 2021-10-08T00:00:00Z -8.599819
2 VWIGX.O 2021-11-12T00:00:00Z 5.396323
3 VWIGX.O 2021-12-10T00:00:00Z -6.582896
4 VWIGX.O 2022-01-07T00:00:00Z -3.541576
5 VWIGX.O 2022-02-11T00:00:00Z -9.375742
6 VWIGX.O 2022-03-11T00:00:00Z -14.222106
7 VWIGX.O 2022-04-08T00:00:00Z 9.89313
8 VWIGX.O 2022-05-13T00:00:00Z -14.670742
9 VWIGX.O 2022-06-10T00:00:00Z 0.293064
10 VWIGX.O 2022-07-08T00:00:00Z -0.064935
11 VWIGX.O 2022-08-12T00:00:00Z 8.28460
Answers
-
Hi @BlackBird,
I couldn't find anything representing total return in the Data Item Browser for a mutual fund. This previous question talks about mutual fund total return - not sure if it is relevant to your needs.
For content question, it is best to contact Refinitiv support at my.refinitiv.com where you can speak with a content expert.
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
- 616 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
- 652 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 中文论坛