Extract historical Lipper fund performance data

I'm trying to extract monthly performance data for a list of Belgian Lipper funds. However, the result I obtain only shows the most recent year-to-date performance. My API request (in R, so forgive me for the slight difference in syntax with the Python syntax) for a single specific Lipper fund (LP60022034) is the following:
lipper_data<-get_data(list(LP60022034),list('TR.FundRollingPerformance.date','TR.FundRollingPerformance'), list("SDate"="-1Y","EDate"="0D"))
However, when I run the API through the excel-instrument builder, I successfully obtain what I am searching for:
=TR("LP60022034";"TR.FundRollingPerformance(Interval=M RollTimeFrame=1Y);TR.FundRollingPerformance(RollTimeFrame=1Y Interval=M).date";"CH=Fd RH=IN";B2)
Could you help me point out my error in my formula? An answer in Python syntax will do just fine, I can then translate to R.
FYI: I have no problem obtaining historical net asset value data through the very same type of R-code chunk listed above.
Many thanks in advance
Best Answer
-
Hi @koen.breemersch Try passing in the parameters as an object:
>>> df, err = ek.get_data('LP60022034', ['TR.FundRollingPerformance.date','TR.FundRollingPerformance'], parameters={'Interval': 'M', 'RollTimeFrame': '1Y'} )
>>> df
Instrument Date Rolling Performance
0 LP60022034 2019-12-06T00:00:00Z 0.989131
1 LP60022034 2020-01-03T00:00:00Z 2.237115
2 LP60022034 2020-02-07T00:00:00Z 5.804150
3 LP60022034 2020-03-06T00:00:00Z -9.107577
4 LP60022034 2020-04-03T00:00:00Z -12.932246
5 LP60022034 2020-05-08T00:00:00Z 7.998068
6 LP60022034 2020-06-05T00:00:00Z 8.700028
7 LP60022034 2020-07-03T00:00:00Z -2.843592
8 LP60022034 2020-08-07T00:00:00Z -3.635662
9 LP60022034 2020-09-04T00:00:00Z 0.568728
10 LP60022034 2020-10-02T00:00:00Z 3.015731
11 LP60022034 2020-11-06T00:00:00Z -4.3471960
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
- 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 中文论坛