How do I get the constituents of MSCI Small Cap Index using Eikon API
Hi,
I am unable to download MSCI Index constituents for Small Cap index using EikonDataAPI.
I have been able to get MSCI World and Emerging market constituents using Ric codes .dMIWO00000NGB and dMIEF00000NGB.
However it's not returning any data for .dMIWO000S0P or .dMIEF000S0P
Any help would be appreciated.
Thanks,
Fergal
Best Answer
-
I have run this code and it returns the data properly.
List<string> indexname = new List<string> { ".dMIWO000S0P" };
List<string> fields = new List<string> { "TR.IndexConstituentRIC", "TR.IndexConstituentName" };
var data2 = eikon.GetData(indexname, fields);
data2.Print(true);The output is:
Instrument Constituent RIC Constituent Name
(string) (string) (string)
0 -> .dMIWO000S0P SVM.TO SILVERCORP METALS
1 -> .dMIWO000S0P SGCG.DE SGL GROUP
2 -> .dMIWO000S0P BPT.AX BEACH ENERGY
3 -> .dMIWO000S0P 6651.T NITTO KOGYO CORP
4 -> .dMIWO000S0P FCNCA.OQ FIRST CITIZENS BANCSHS A
5 -> .dMIWO000S0P HMTV.OQ HEMISPHERE MEDIA GROUP A
6 -> .dMIWO000S0P CC11.MU CONSUS COMM PROPERTY
7 -> .dMIWO000S0P 0341.HK CAFE DE CORAL HOLDINGS
8 -> .dMIWO000S0P 7840.T FRANCE BED HOLDINGS CO
9 -> .dMIWO000S0P FPM.L FAROE PETROLEUM
10 -> .dMIWO000S0P AVP.N AVON PRODUCTS
11 -> .dMIWO000S0P IOMG.L IOMART GROUP
12 -> .dMIWO000S0P 6136.T OSG CORP
13 -> .dMIWO000S0P ALU.AX ALTIUM
14 -> .dMIWO000S0P GMT.NZ GOODMAN PROPERTY TRUST
: ... ... ...
4360 -> .dMIWO000S0P ULE.L ULTRA ELECTRONIC HLDGS
4361 -> .dMIWO000S0P FCFS.OQ FIRSTCASH
4362 -> .dMIWO000S0P MDCO.OQ MEDICINES CO
...It could be a permission issue. Please enable debug log to verify the retrieved response.
Logging
The libraries use the Microsoft.Extensions.Logging package for logging. To support console log, it requires the Microsoft.Extensions.Logging.Console package. After adding this package, you can use the following code to enable console logging with debug level.
using Microsoft.Extensions.Logging;
...
eikon.GetLoggerFactory().AddConsole(LogLevel.Debug);2
Answers
-
@fergal.twomey, have you tried this?
df, e = ek.get_data('.dMIWO000S0P', ['TR.IndexConstituentRIC'])
0 -
Thanks for your reply.
I'm using C# but I have tried that RIC code, the forst example below works but the second doesn't:
This works....
List<string> indexname = new List<string> { ".dMIWO00000NGB" };
List<string> fields = new List<string> { "TR.IndexConstituentRIC", "TR.IndexConstituentName" };
var data2 = eikon.GetData( indexname, fields );
But this doesn't...
List<string> indexname = new List<string> { ".dMIWO000S0P" };
List<string> fields = new List<string> { "TR.IndexConstituentRIC", "TR.IndexConstituentName" };
var data2 = eikon.GetData( indexname, fields );
0 -
Thank you
0
Categories
- All Categories
- 6 AHS
- 39 Alpha
- 162 App Studio
- 4 Block Chain
- 5 Bot Platform
- 17 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
- 370 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
- 60 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛