Is it possible to retrieve the historical constituents of the ACWI index using Python?

Our main challenge has been downloading the constituents of the MSCI ACWI index, whether current or historical, as both are crucial for our objective. Unfortunately, we have been unsuccessful despite multiple attempts. Below are the details of our efforts:
Code Attempt 1:
import refinitiv.data as rd
from refinitiv.data.discovery import Chain
fchi = Chain(name="ACWI.L")
print(fchi.constituents)
- With
.MXACW
, I received the following error:
Error code NotEntitled | Access Denied: User req to PE(9908)
- With
ACWI.L
andACWI.O
, the request remained loading indefinitely without results.
Code Attempt 2:
ric = '.FTSE'
initial_constituents = rd.get_data(universe=[f"0#.{ric}(20240101)"],fields=["TR.PriceClose"],parameters={"SDATE": '2024-01-01', "EDATE": '2024-01-01'})
initial_constituents = initial_constituents['Instrument'].to_list()
While this worked for the example RIC provided, .FTSE
, it did not work for any of the following RICs I tested:
ACWI.L
ACWI.O
.MXACW
0#.MXACW
0#.ACWI.O
0#.ACWI.L
Forum Example Attempt:
I also tried an example from the Developer Forum, but unfortunately, it was unsuccessful as well.
link: link_to_forum
I would sincerely appreciate your guidance on how to correctly retrieve the constituents of the MSCI ACWI index, both current and historical.
Answers
-
Thank you for reaching out to us.
First, you need to contact the content support team via MyAccount for chain RICs of MSCI ACWI index. Then, check that if those chain RICs can provide historical constituents.
I found 0#.dMIWD00000PUS which is MSCI ACWI PR USD and it works with the Chain code.
chain = Chain("0#.dMIWD00000PUS") chain.constituents
This chain contains 2642 items. However, I can't retreive historical constituents of this chain RIC.
Please contact the content support team directly to confirm this.
0 -
Hello @AGBC
I have reviewed the question. Please see my investigation below.
Firstly, I checked the ACWI.L and ACWI.O RICs. They are not look like the Chain RIC to me. I do not think you can use these RICs with the Library's Chain function.
The Chain RIC should contain only constituents information like name, but not value like the following Chain RICs examples: 0#.SETI (Thai Stock Exchange Chain RIC) and 0#.HSI (Hong Kong Hang Seng Index Chain RIC)
Secondly, I cannot find the 0#.MXACW, 0#.ACWI.O, 0#.ACWI.L RICs on the Workspace platform. I strongly suggest you contact the Workspace Content Support team to verify if they are the Chain RIC of the data that you need.
You can contact the team via https://myaccount.lseg.com/en/productsupport website.
Thirdly, the error message "Error code NotEntitled | Access Denied: User req to PE(9908)" when you are trying to request the .MXACW RIC indicates that you do not have a permission to request this RIC from Workspace.
Please contact your LSEG account manager to verify your permission.
I did a quick test with
import lseg.data as ld ld.open_session() ld.get_data( universe=['ACWI.L', 'ACWI.O','.MXACW'], fields=['TR.PriceClose'], parameters= {"SDATE": '2024-01-01', "EDATE": '2024-01-01'} )
The result is as follows:
0
Categories
- All Categories
- 3 Polls
- 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
- 615 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
- 249 ETA
- 554 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
- 643 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
- 192 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛