For ticker (RIC) EFIV.N , I want to pull DERIVED HOLDINGS (Full Holdings). How can I pull that using
For ticker (RIC) EFIV.N , I want to pull DERIVED HOLDINGS (Full Holdings). How can I pull that using Eikon API ? Below is the screenshot from Eikon.
0
Best Answer
-
anonymous user ,
Below is the Python code I tried to get the holdings for that ETF via Eikon API (my app key is removed) from the Codebook:
import refinitiv.dataplatform.eikon as ek
# import eikon as ek
import pandas as pd
ek.set_app_key('xxxxxxxxxxxxxxxxxxxxxxxxxxxx')
fund_holdings = ek.get_data('EFIV.N', ['TR.FundHoldingRIC','TR.FundHoldingName',
'TR.FundPercentageOfFundAssets',
'TR.FundNumberOfShares',
'TR.FundNumberOfSharesChanged'],
{'Endnum':'5000'})
print(fund_holdings)I got the results below.
( Instrument Holding RIC Holding Name \
0 EFIV.N AAPL.OQ APPLE INC ORD
1 EFIV.N MSFT.OQ MICROSOFT CORP ORD
2 EFIV.N AMZN.OQ AMAZON.COM INC ORD
3 EFIV.N NVDA.OQ NVIDIA CORP ORD
4 EFIV.N GOOGL.OQ ALPHABET INC CLASS A ORD
.. ... ... ...
320 EFIV.N LNC.N LINCOLN NATIONAL CORP ORD
321 EFIV.N NWL.OQ NEWELL BRANDS INC ORD
322 EFIV.N NWS.OQ NEWS CORP ORD
323 EFIV.N USD CASH
324 EFIV.N OTHER ASSETS LESS LIABILITIES
Percentage of Fund Assets Number of Shares Number of Shares Changed
0 9.7322 505385.0 39760.0
1 8.5397 254189.0 20020.0
2 4.3167 305148.0 24717.0
3 4.2761 84525.0 6650.0
4 2.8356 203155.0 15960.0
.. ... ... ...
320 0.0139 5298.0 420.0
321 0.0139 12840.0 980.0
322 0.0092 4075.0 350.0
323 0.0033 32454.75 23945.6
324 -0.0093 <NA> <NA>
[325 rows x 6 columns], None)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 中文论坛