ek.get_data Problems for 31st December 2021

I have a python script that uses ek.get_data to pull a list of fields for various RICs. This has run fine for a long time now, but when using it for year end (31/12/2021) the majority of dataframes retrieved are filled with <NA>. I have tested the script for other dates and there is no such issue, so was wondering if there is a known problem with Python API data for 31st December.
The fields I am trying to pull are as follows:
['TR.CLOSEPRICE.date', 'TR.PriceCloseDate', 'TR.Volume', 'TR.VWAPVOLUME', 'TR.CLOSEPRICE', 'TR.PriceClose', 'CF_CURR', 'TR.AvgDailyVolume100D', 'TR.Volatility60D','TR.ExchangeCountry','TR.PRICECLOSE.Currency']
Best Answer
-
I have been advised by the Eikon Data API team that this issue has been fixed and passed their internal testing with 3000 RICS.
Please test and confirm. Thank you for your patience.
0
Answers
-
Hi @thomas.goodman ,
If my understanding of the problem is correct, I tried to solve it on my end for the RICs I can see above and there is data for most of them. Please see below the code and the output.
rics = ['1332.T', '1334.T','1514.T', '1605.T', '1662.T', 'ARAL.SI', 'CAM.N', 'CANCDA.S', 'CAPP.PA', 'CAPCC.L']
df, err = ek.get_data(rics, ['TR.CLOSEPRICE.date', 'TR.PriceCloseDate', 'TR.Volume', 'TR.VWAPVOLUME', 'TR.CLOSEPRICE', 'TR.PriceClose', 'CF_CURR', 'TR.AvgDailyVolume100D', 'TR.Volatility60D','TR.ExchangeCountry','TR.PRICECLOSE.Currency']
, {"SDate":'2021-12-31'})
dfAnd the reason there is no data for 1334.T, and CAM.N is that those stocks are delisted and their new RIC is 1334.T^C14, CAM.N^D16, respectively.
Are you using a similar code to above or trying to achieve something different?
Best regards,
Haykaz
0 -
Seeing that you had no issues retrieving the data for the list of 10 RICs, I took it and hard coded it into my script, rather than using the dynamically sourced list. Sure enough, I also got data.
So I thought possibly it was the batch size I was using, as normally the script snaps 1,000 RICs at a time. I dropped this to 100 and the first couple of runs seemed to be ok, retrieving the required data.
I did the same with a batch size of 500 and again the first couple of runs were ok. However, when I tried to run the full set, I could see the first couple coming back fine again, but after that, more often than not the data was missing.
Possibly it is just a problem with the API being overloaded for year end? Or possibly some sort of additional throttling has been added?
I appreciate that this is a difficult issue to replicate.
0 -
I could replicate the problem on my end as well and it seems it is not because of the date (31-12-2021) as I get the same problem (when I get data missing more often than not) for other dates as well. The problem seems to be related to the response time as a result of a relatively large number of RICs requested. I consulted with my colleague @chavalit-jintamalit, and he advised that having large amount of RICs in a single API call can sometimes fail on the source. A possible workaround could be reducing the size of input rics list.
For a more detailed investigation you can also raise a ticket via helpdesk (https://my.refinitiv.com/) by refering the case to TSG (technical support group). Please mention that the code is verified to be correct, issue randomly happen when the ric list is large and need more to be investigated by Technical Support Group.
0 -
Putting here the error message as well
0 -
If the Eikon support team have referred you back to the Developer portal, I apologise.
I have contacted the support person and advised them to escalate the ticket to the appropriate team internally and to update you of the progress.
If you do not hear back confirming the above in the next 24hrs please let us know and we can chase.
0 -
Thanks for your help.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 167 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 688 Datastream
- 1.4K DSS
- 625 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- 1 Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 255 ETA
- 557 WebSocket API
- 38 FX Venues
- 14 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 23 Messenger Bot
- 3 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 60 Open Calais
- 276 Open PermID
- 44 Entity Search
- 2 Org ID
- 1 PAM
- PAM - Logging
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 22 RDMS
- 1.9K Refinitiv Data Platform
- 693 Refinitiv Data Platform Libraries
- 4 LSEG Due Diligence
- LSEG Due Diligence Portal API
- 4 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.2K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 12 World-Check Customer Risk Screener
- 1K World-Check One
- 46 World-Check One Zero Footprint
- 45 Side by Side Integration API
- 2 Test Space
- 3 Thomson One Smart
- 10 TR Knowledge Graph
- 151 Transactions
- 143 REDI API
- 1.8K TREP APIs
- 4 CAT
- 27 DACS Station
- 121 Open DACS
- 1.1K RFA
- 105 UPA
- 194 TREP Infrastructure
- 229 TRKD
- 918 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 92 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛