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 /
avatar image
Question by lgreen · Dec 03, 2020 at 02:51 PM · python eikon#get_datasdateedate

python eikon API - is there a parameter value for Edate which will get "all" the available history?

I have the following code:

df=ek.get_data('4295905573',['TR.PriceClose.Date', 'TR.PriceClose'], {'SDate':0, 'EDate':-365})

Is there a way to get "all" the available history, instead of setting it at a specific number of days?

Similarly, if I want to only get up to the last day of data for a company, is there an SDate value that will start on the "last" avaialble date automatically? If I set SDate to 0, and the EDate to say -5000, for a company that delisted say 1 year ago, it fills the whole 5000 reefcords with the last available value forward filled to "today"

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 marcin.bunkowski · Dec 03, 2020 at 03:47 PM

@lgreen, you can try this workaround to get the timeseries from the first trading date:


dftemp,err=ek.get_data('4295905573','TR.FirstTradeDate')
start = dftemp['First Trade Date'][0]
df,err=ek.get_data('4295905573',['TR.PriceClose.Date', 'TR.PriceClose'], {'SDate':0, 'EDate':start})
df
Comment
lgreen

People who like this

1 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
lgreen · Dec 03, 2020 at 03:50 PM 0
Share

would that go for the last trade date also? for companies that may be delisted?

avatar image
REFINITIV
marcin.bunkowski lgreen · Dec 03, 2020 at 04:15 PM 0
Share

@lgreen

as suggested by @chavalit.jintamalit you can use TR.RetireDate. If the TR.FirstTradingDate is null then you may try:

ek.get_data('TRIL.L^I09','MIN(TR.PriceClose.date)',{'SDate':0, 'EDate':-9999})


avatar image
REFINITIV
Answer by chavalit.jintamalit · Dec 03, 2020 at 03:38 PM

Hi @lgreen

There is no parameter to get "all" the available history.

For delisted company, you can get 'TR.RetireDate' and use it as the end date parameter.


Please also review API limitation at https://developers.refinitiv.com/en/api-catalog/eikon/eikon-data-api/documentation


ahs.png (33.3 KiB)
Comment
lgreen

People who like this

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

Related Questions

ek.get_data - TR.PriceClose.date not working

Get intraday BID/ASK data through ek.get_data

Missing datas with two dates (EDate, SDate)

What is the format of SDate and EDate using python data api?

Which are the codes of last/bid/ask in the ric USTARTSD=ME?

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • 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
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges