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
Best Answer
-
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.
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛