Problems with ownership data, python API.

Hi, I wanted to download historical ownership data for several US companies, I checked and to download ownership data I can use three options:
- Ultimate Parent Holdings =TR("NEOF.OQ^C06@RIC","TR.UltPrntPctOfShrsOutHld")
- Consolidated Holdings =TR("NEOF.OQ^C06@RIC","TR.PctOfSharesOutHeld")
- Fund Holdings =TR("NEOF.OQ^C06@RIC","TR.FdAdjPctOfShrsOutHeld").
to get the data I use the following code:
test, e = ek.get_data('4295914290', ['TR.InvestorFullName',
'TR.PctOfSharesOutHeld',
'TR.SharesHeld.calcdate',
'TR.HoldingsDate',
'TR.SharesHeld',
'TR.SharesHeldChange',
'TR.SharesHeldValue'],
{'SDate': '2000-01-24', 'EDate':'2000-04-29', 'Frq' : 'M'})
with which I should get the following values, since I am occupying the consolidated holdings code.
But what I get is the following, as if I were using the Ultimate Parent Holdings code.
Besides the result gives me many empty cells.
How do I fix this problem?
thanks in advance
Best Answer
-
@bmurua Thanks for your question. So first off it appears that only end of month or quarterly data is available for Holdings - i tried to match the ownership from the Shareholders Report app to encompass the end of month data - see below:
I then use the following API call (using our RD library - it will be the similar call in Eikon Data API)
test = rd.get_data('4295914290', ['TR.InvestorFullName','TR.PctOfSharesOutHeld','TR.SharesHeld.calcdate','TR.HoldingsDate','TR.SharesHeld','TR.SharesHeldChange','TR.SharesHeldValue'],{'SDate': '2000-01-31', 'EDate':'2000-04-30', 'Frq' : 'M'})
testthis matches the shareholder report exactly by date - I exported the file and looked at it in excel using:
test.to_excel("test_own.xlsx")
There is of course a monthly duplication as we are requesting Monthly data for 4 Months. The view you see in the Shareholder Report app is 69 rows - which is the filtered view using TR.SharesHeld.calcdate Month (most recent in this case eg 2000-04-30). However - if I look at the Data Item Browser app (type DIB into Eikon Search bar) I don't see a range parameter for the field - just the date is 'As of' which means a single date rather than a range. I checked this further looking at the earliest data in the range say 2000-01-31 which is as you say containing some NA, NaT returns.
test = rd.get_data('4295914290', ['TR.InvestorFullName','TR.PctOfSharesOutHeld','TR.SharesHeld.calcdate','TR.HoldingsDate','TR.SharesHeld','TR.SharesHeldChange','TR.SharesHeldValue'],{'SDate': '2000-01-31','EDate':'2000-01-31','Frq' : 'M'})
testThis returns 9 populated rows as it does in the Shareholders Report app for the same date - as opposed to 9 populated rows padded to 69 rows with NA, NaTs - in the multi-month query. (Interestingly for 2000-02-29 there are 10 populated rows - padded to 69 rows with NA,NaTs as well). I hope this can clarify. So the way to do this correctly is to build the data for each month I believe and then concatenate these months together to form the full dataset.
If you think the data is incorrect feel free to open a content query with using Contact Us button (helpdesk) in the Helios menu as I cant verify the content.
I hope this can help.
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 684 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.9K Refinitiv Data Platform
- 629 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
- 86 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛