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 yiyezhou · Mar 02, 2020 at 05:37 PM · eikoneikon-data-apiworkspacepythonworkspace-data-apirefinitiv-dataplatform-eikonhistoricalindexconstituents

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

Is there a way to use API to pull the historical index (eg. ASX 200 Index) constituents during a period of time (eg. 1/1/2016-12/31/2016)? I know we can pull on a daily basis by using "= tr.get_data("0#.AXJO(2016-08-09)","TR.CommonName")", but can we do for a period of time? This is the entire reason I am using the API

charleszhou

People who like this

1 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 chavalit-jintamalit · Mar 02, 2020 at 07:17 PM

Hi @yiyezhou and @charleszhou

It is not possible to directly retrieve the index on a date range.

Here is the explanation from @Alex Putkov.

So basically, you have 2 ways to achieve this:

1. Loop your code from start_date to end_date and call get_data

df, e = ek.get_data('0#.SPX(2016-01-01)','TR.RIC') #then keep the data to your local variable
df, e = ek.get_data('0#.SPX(2016-01-01)','TR.RIC') #then keep the data to your local variable
...
...
df, e = ek.get_data('0#.SPX(2016-12-30)','TR.RIC') #then keep the data to your local variable
df, e = ek.get_data('0#.SPX(2016-12-31)','TR.RIC') #then keep the data to your local variable

Please note to beware of API call limitation too.

2. Get the constituent on the start date and get joiner and leaver from start date to end date and apply them locally in your code:



ahs.png (39.6 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
Answer by charleszhou · Mar 02, 2020 at 05:49 PM

I have the same question here. It will be really helpful if Eikon API can do that. It is a really common function to use in the industry I am working in.

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.

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 >
11 People are following this question.

Related Questions

Can't get constituents of Russell index

Eikon Data API - Error requesting TR.IndexConstituentWeightPercent

Trying to fetch Close Bid Price for CMO tranche from Python

ETF constituent changes

Issue retreiving RICs for the SPI index

  • 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