Hi @rgustin ,
Is this what you're looking for?
data = ek.get_symbology(PermID, from_symbol_type='OAPermID', to_symbol_type=['RIC'])If not, could you please give an example of PermID list for further investigation.
How to pull RIC list from 13F by using PermID via Python Eikon API?

Hi - I have established the connection to Eikon from Python, and I know how to pull historical data by using ek.get_data, but how would I pull a list of RIC within a specific 13F period by PermID?
The ek.get_data(PermID, 'TR.RIC') won't work because the PermID are private funds. So I need to pull a complete list of their holdings (RIC) based on private fund's 13F by using their PermID. Thank you.
Below is what I'm looking for in an example:
Assuming I have a PermID 5055409279, and this fund is filing 13F every quarter. If I go under "filings", I would see the most recent 13F filing is Nov 14 for Q3:
The PDF filing has a detailed list of all positions held by the fund, below is a snapshot of a part of the filing:
So I need Python to have both the PermID and the 13F period as input variables, to return to me a list of all RIC on that 13F filing. Please advise. Thank you.
Best Answer
-
Please try the following formula.
date="2022-05-16"
permid="5055409279"
df, err = ek.get_data([permid],
["TR.SecurityOwnedRIC",
"TR.SecurityOwnedName",
"TR.InvestorValueHeld(Scale=6)",
"TR.InvestorSharesHeld",
"TR.SecurityOwnedTypeCode",
"TR.InvestorPctPortfolio",
"TR.InvestorPositionPctChg",
"TR.InvestorFilingDate",
"TR.InvestorValueHeld.EffectiveTo",
"TR.InvestorFilingType"],
{"sdate":date})
dfThe output is:
If it doesn't match your requirement, please contact the Eikon Excel support team directly via MyRefinitiv and ask for the formula in Eikon Excel that can be used to get the required data.
If the formula in Eikon Excel is available, we may be able to convert it to Python code.
0
Answers
-
Hi @rgustin ,
Is this what you're looking for?
data = ek.get_symbology(PermID, from_symbol_type='OAPermID', to_symbol_type=['RIC'])
If not, could you please give an example of PermID list for further investigation.
0 -
Thanks for replying , just added example, please further advise.
0 -
Hi Jirapongse, thanks for the reply, I think this is what I need.
A follow up question would be what does sdate refer to? I used 5/16/2022 you have in your code and it looks like it's InvestorFilingDate, which in the returned value of df would give me 3/31/2022, the document date that I need. If I use 3/31/2022 as sdate in Python query, I get the same result. So what exactly is sdate? I really only need document date, which is end of each quarter. Appreciate the input in advance.
0 -
I got this code by converting the following Eikon Excel formula to Python code.
=@TR($B$1,"TR.SecurityOwnedRIC;TR.SecurityOwnedName;TR.InvestorValueHeld(Scale=6);TR.InvestorSharesHeld;"&"TR.SecurityOwnedTypeCode;TR.InvestorPctPortfolio; TR.InvestorPositionPctChg;TR.InvestorFilingDate; TR.InvestorValueHeld.EffectiveTo;TR.InvestorFilingType","CH=Fd Sdate=#1",,$B$2)
Please contact the Eikon support team directly via MyRefinitiv to clarify it.
0 -
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 33 Data Model Discovery
- 682 Datastream
- 1.4K DSS
- 613 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.8K Refinitiv Data Platform
- 622 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
- 84 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛