Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Eikon Data APIs /

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

avatar image
Question by auth · Dec 06, 2021 at 04:14 PM · eikon-data-apiindexconstituents

Determine Index constituents from Joiners & Leavers

Hi there,

I am currently trying to stitch together historical index constituents from joiners and leavers data. To get the data, I am using the command:

lj, err = ek.get_data(RIC, ['TR.IndexJLConstituentChangeDate(SDate={0},EDate={1},IC=B)'.format(start_date, end_date,'TR.IndexJLConstituentChangeDate(SDate={0},EDate={1},IC=B).change'.format(start_date, end_date,'TR.IndexJLConstituentName(SDate={0},EDate={1},IC=B)'.format(start_date, end_date, 'TR.IndexJLConstituentRIC(SDate={0},EDate={1},IC=B)'.format(start_date, end_date)])

To test this, I am using the HDAX as a test case '0#.GDAXHI'.

Now from this data, the goal is to find the current index constituents at any given time. I thought I can just refer to the RICs and filter the latest joiner RICs, which are not leavers yet. However, I am struggling a bit with the data that I am getting back. For instance, the company 'Salzgitter Werke', has joined the index early on, and the left twice, but based on a different RIC. (so it seems I cannot use RICs for this exercise, cause the RIC KLKG.F^A11 never left according to this)


1638806945050.png


In general I see many joiners and leavers at the same date, with changed tickers (example here)

1638807050611.png


So my question, based on this data: how do I back out the list of index constituents at any given date using only joiners and leavers data?


Many thanks.

Best,

Chris





1638806945050.png (31.9 KiB)
1638807050611.png (6.5 KiB)

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

2 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Jirapongse · Jan 13 at 09:17 AM

@auth

I think the data from Eikon Data API is similar to the data from the Eikon Leavers and Joiners.

1642064803063.png

1642064897016.png

This is why you need to contact the content team regarding how to process the data.

Another API that can retrieve historical items in indices is Tick History REST API.

Tick History REST API has the HistoricalChainResolution endpoint which can resolve current and past chain constituents.

For example, the request looks like this:

{
  "Request": {
    "ChainRics": [
      "0#.GDAXHI"
    ],
    "Range": {
      "Start": "2001-01-12T00:00:00.000Z",
      "End": "2001-01-13T00:00:00.000Z"
    }
  }
}

The response is:

                },
                {
                    "Identifier": "SRZG.DE",
                    "IdentifierType": "Ric",
                    "Source": "",
                    "Key": "VjF8MHgzMDAwMDAwMDAwMDAwMDAwfDB4MzAwMDAwMDAwMDAwMDAwMHx8fHx8fHxTUlpHLkRFfA",
                    "Description": "Historical Instrument",
                    "InstrumentType": "Unknown",
                    "Status": "Valid",
                    "DomainCode": "6"
                },
                {
                    "Identifier": "SZUG_p.DE",
                    "IdentifierType": "Ric",
                    "Source": "",
                    "Key": "VjF8MHgzMDAwMDAwMDAwMDAwMDAwfDB4MzAwMDAwMDAwMDAwMDAwMHx8fHx8fHxTWlVHX3AuREV8",
                    "Description": "Historical Instrument",
                    "InstrumentType": "Unknown",
                    "Status": "Valid",
                    "DomainCode": "6"
                },
                {
                    "Identifier": "TAGG.DE",
                    "IdentifierType": "Ric",
                    "Source": "",
                    "Key": "VjF8MHgzMDAwMDAwMDAwMDAwMDAwfDB4MzAwMDAwMDAwMDAwMDAwMHx8fHx8fHxUQUdHLkRFfA",
                    "Description": "Historical Instrument",
                    "InstrumentType": "Unknown",
                    "Status": "Valid",
                    "DomainCode": "6"
                },
                {
                

1642064803063.png (12.6 KiB)
1642064897016.png (22.7 KiB)
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by raksina.samasiri · Dec 07, 2021 at 01:58 PM

Hi @auth ,

In case you'd like to get the list of index constituents at any given date, you may put the date parameter after the RIC, for example

df1, err = ek.get_data('0#.GDAXHI(19980324)', 
            ['TR.RIC','TR.CompanyName'])
df1

1638885197698.png

You may get the date when there're any leavers/joiners and use the code above to get the constituents list at any date.

hope this could help


1638885197698.png (28.7 KiB)
Comment

People who like this

0 Show 2 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
auth · Dec 07, 2021 at 03:13 PM 0
Share
Hi @raksina.samasiri


Many thanks for your answer. I am aware that I can do this though. Reason why I am asking is because for my needs, it is much easier and less data intensive to build the list of tickers for each index from Joiners/Leavers, rather than having to pull the entire list each time there is an update.


I am sure it must be possible to reconstruct the list with your command, with the Joiners/Leavers data, I just haven't figured it out yet. Any help would be much appreciated...


Best,

Chris

avatar image
REFINITIV
raksina.samasiri ♦♦ · Dec 08, 2021 at 07:50 AM 0
Share

Hi @auth ,

This forum is dedicated to software developers using Refinitiv APIs. The moderators on this forum do not have deep expertise in every bit of content available through Refinitiv products, which is required to answer content questions such as this one.

The best resource for the content questions is the Eikon support team, which can be reached by submitting queries through MyRefinitv. The support team will either have the required content expertise ready available or can reach out to relevant content experts to get the answer for you.

However, in this case, I open the case number 10755576 on behalf of you and the support team is going to contact you soon for the explanation and the suggestion (if any other field can be used in your use case)

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
12 People are following this question.

Related Questions

Can't get constituents of Russell index

Using API to pull the historical index constituents during a period of time

How to get list of leaver companies of the ASX 100 using the Python API?

ETF constituent changes

Eikon Data API - Error requesting TR.IndexConstituentWeightPercent

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges