How to get historical holdings and allocation data for funds?
How to get monthly or quarterly changes in a fund holdings, sector and country allocations? With the below code I'm only able to get the recent holdings and not the historical holdings.
Python
column_fields = [
"TR.FundHoldingRIC",
"TR.FundHoldingName",
"TR.FundPercentageOfFundAssets",
]
refinitiv_data, err = ek.get_data(["SPY"], column_fields, date_paremters)
refinitiv_data
How to get the same historical weights for the below allocations?
Asset allocation -> ["TR.FundAssetAllocation", "TR.FundAllocationName"]
Country allocation -> ["TR.FundCountryAllocation", "TR.FundAllocationName"]
Sector allocation -> ["TR.FundIndustrySectorAllocation", "TR.FundAllocationName"]
Best Answer
-
Hi @BlackBird, I do not think the Eikon data API for Lipper (i.e. field name starts with "TR.Fund") can provide historical data currently. Because I do not see date parameters for these fields from Data Item Browser.
I know the RDP Funds API can can provide that.
However, if you only interested in ETFs, I am aware the constituent data is available from the Refinitiv's exchange data (not from Lipper I believe). Below is a sample code you can try. The sample is getting the data as of the month-end date 2 months ago. You can put in the exact date if you want, and I think they got daily data for most of ETFs. I am not sure if you can specify a date range. Also, I do not think the "allocations" data is available from Exchange data set, as allocations is likely only available from Lipper database.
df, err = ek.get_data(
instruments = ['SPY'],
fields = [
'TR.ETPConstituentRIC',
'TR.ETPConstituentName',
'TR.ETPConstituentWeightPercent',
'TR.ETPConstituentWeightPercent.Date'
],
parameters = {'SDate': '-2M'}
)
df0
Answers
-
Hi, regarding what was written above "I know the RDP Funds API can can provide that." could you please let me know how this could be done? I.e. reproduce the code you provided above with an SDate of -2M but for a non-ETF product, such as the following ID: LP40065886, and using the RDP Funds API? Many thanks in advance
0 -
Below is the REST GET query to get the holdings latest data for your sample fund:
https://api.refinitiv.com/data/funds/v1/assets?symbols=LP40065886&properties=holdings
You can add the start and end dates to get historical data like:
https://api.refinitiv.com/data/funds/v1/assets?symbols=LP40065886&properties=holdings[start:2024-03-31;end:2024-07-31]
** The queries above did escape the special characters for URL, you need to escape these characters such as ";", "[" and "]", etc, if you want to try in API Playground.
Notes, the full holdings data is very large, if you try to get historical data, it may be better to do multiple queries for smaller chuck of periods.
0 -
Actually
@bob.lee could you please point me to further documentation on how to use the REST GET query above in the context of the RDP? I've been using the Eikon API for some time but am just starting to get familiar with the RDP, and am not sure how to test the above query (in Python). Thanks a lot in advance0 -
Hi @AAMZ , Firstly, I need to clarify, the Lipper Funds API is separate from the Eikon/Workspace API. It is part of the RDP API platform. Do you have the access to the RDP Funds API? If you already have, then you can use the API Playground to check the samples and some documentations there:
API Playground (refinitiv.com)
Check with your account manager serving you, he/she should offer the on-boarding process to guide you to use the API.
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 中文论坛