Data missing for ek.get_timeseries ,asking for solution!
when I try to get data from Python API , I met data missing problem ,the code is pasted below.
import eikon as ek
import pandas as pd
import time
ek.set_app_id('ED142B67FBF0B94BAC3AB')
start=time.strftime("%Y-%m-%dT01:30:00",time.localtime(time.time()))
end=time.strftime("%Y-%m-%dT07:00:00",time.localtime(time.time()))
ss=pd.read_csv('ss.csv')
ss.columns=['ss']
ss1=ss.values.tolist()
sslist=list(ss.ss)
s1=sslist[:300]
df1=ek.get_timeseries(s1,fields=["Open","High","Low","Close","Volume"],
start_date = start,end_date =end,interval='minute')
The attachments include 2 files, ss for the code list, df1 is the result.
Obviously, there is data missing occurred in the df1.
Best Answer
-
I think that it reached the limit as mentioned in this question.
If I reduce the number of items to 200, I can get the data properly.
s1=sslist[:200]
0
Answers
-
When I run your code, I have following error from Timeseries service:
('600005.SS', ': ', 'Error: TSIUnknownInstrument, ErrorCode: TA-TSIUnknownInstrument, Fault: TSIError, Description: Invalid RIC', '\n')
('600074.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600084.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600145.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600146.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600150.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600161.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600162.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600187.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600199.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600209.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600227.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600239.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600242.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600248.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600257.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600267.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600273.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600289.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600311.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600328.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')
('600332.SS', ': ', 'Error: TSINoDataAvailable, ErrorCode: TA-TSINoDataAvailable, Fault: TSIError, Description: No data available for the requested date range', '\n')That means 600005.SS RIC doesn't exist and there is no data available in the time range for all others ('600074.SS','600084.SS','600145.SS','600146.SS','600150.SS','600161.SS', '600162.SS', '600187.SS', '600199.SS', '600209.SS', '600227.SS', '600239.SS', '600242.SS', '600248.SS', '600257.SS', '600267.SS', '600273.SS', '600289.SS', '600311.SS', '600328.SS', '600332.SS')
Do you have the same result ?
0 -
Yes,you got the right data, my code list include some delisting stock ,that's the problem.
The problem is for the available RIC, for example, 600004.SS , do u get the miss data problem?
0 -
I guess you r right , maybe it's too many data...
0 -
I hope I can get the official answer, indeed ,how much data should i get one time
0 -
The official limit for timeseries is 3000 datapoints whatever the number of RIC.
When you need to retrieve data for many RICs, you should slice identifier list and send several requests.0 -
I saw your link for this question. but I have some doubt for this.
Could you help explain the means for 3000 points limitation.Is it means that we can't get data more than 3000 at one time ?
If store data to excel, it's limit to get 3000 cell data at a time?
Thanks very much
0 -
From my test, each interval has its own limitation. For daily historical data, its limit is 3000 entries.
For example, if I request daily historical data of IBM.N from year 2000 to 2017, the returned data will only have 3000 rows from year 2005 to 2017.
f = ek.get_timeseries(['IBM.N'],['OPEN','CLOSE'],start_date='2000-10-25T00:00:00',end_date='2017-10-25T00:00:00',interval='daily')
df.to_csv('IBM.csv')However, if I request two RICs, the returned data will have 1500 entries for each RIC.
df = ek.get_timeseries(['IBM.N', 'TRI.N'],['OPEN','CLOSE'],start_date='2000-10-25T00:00:00',end_date='2017-10-25T00:00:00',interval='daily')
df.to_csv('IBM_TRI.csv')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 中文论坛