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 RAJEEV.PATEL · Feb 11, 2021 at 04:32 PM · eikoneikon-data-apiworkspacepythonworkspace-data-apirefinitiv-dataplatform-eikonpricing

Is it possible to get more than 1 year of minute data via the python API?

import eikon as ek
import warnings
warnings.filterwarnings("ignore")

ek.set_app_key('xxxxxxxxxxxxxxxxxxxxxxxxxxxxx')
time_series_interval = 'minute'
df = ek.get_timeseries('LCOc1', start_date='20200101', end_date='20200201', interval=time_series_interval)


The above code produces error:


2021-02-11 16:41:28,356 P[31484] [MainThread 63476] Error with LCOc1: No data available for the requested date range

2021-02-11 16:41:28,356 P[31484] [MainThread 63476] LCOc1: No data available for the requested date range |

Traceback (most recent call last):

File "C:\Users\....\.conda\envs\reutersdataenv\lib\site-packages\IPython\core\interactiveshell.py", line 3418, in run_code

exec(code_obj, self.user_global_ns, self.user_ns)

File "<ipython-input-16-cc510d2060b5>", line 1, in <module>

df = ek.get_timeseries('LCOc1', start_date='20200101', end_date='20200201', interval=time_series_interval)

File "C:\Users\....\.conda\envs\reutersdataenv\lib\site-packages\eikon\time_series.py", line 198, in get_timeseries

raise EikonError(-1, message=ts_error_messages)

eikon.eikonError.EikonError: Error code -1 | LCOc1: No data available for the requested date range |


After a little investigation it looks like if the start date and end date are more than a year ago this error is produced. If instead i run:

df = ek.get_timeseries('LCOc1', start_date='20200201', end_date='20200301', interval=time_series_interval)

this seems to work fine!.


Any suggestions how to pull multiple years of data at minute intervals, not just 1 year?


Thanks

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.

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by zoya faberov · Feb 12, 2021 at 01:57 PM

Hello @RAJEEV.PATEL,

Please see this previous discussion thread for more details, it is not possible to request more then 1 year of minute data with Eikon Data API python, which is desktop API.

If you require more content, extensive history coverage can be delivered by enterprise history products, for developers info, see Refinitiv Tick History (RTH) - REST API. HTTP REST interface can be accessed via Python. Please contact your Refinitiv account team for more information and to discuss your specific requirements.

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

Related Questions

Trying to fetch Close Bid Price for CMO tranche from Python

Get cumulative abnormal returns

Close Price Not Available

FINRA minute volumes

Loading European options data on European/UK equities

  • 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