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
- 6 AHS
- 37 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
- 367 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
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛