get_data returns NA at last row, and data is shifted

I notice get_data gives different return (shifted data) when the duration is large (eg. 1400 days)
This can be reproduced with below:
- The current date is 28 Jul 2019.
- 27-28 Jul 2019 is none trading day.
- The last row of return result is NA, no timestamp, BUT with a value of PE.
- However, the PE value of last row (no timestamp) is for second last row (26 July).
df, error = ek.get_data( 'AIRX.KL',
['TR.OPENPRICE.Date','TR.OPENPRICE','TR.HIGHPRICE','TR.LOWPRICE',
'TR.CLOSEPRICE','TR.PE','TR.VOLUME','TR.BIDPRICE','TR.ASKPRICE'],
parameters = {
'SDate': -1400,
'EDate': 0})
When I run this the same code (with smaller date window, just 5 days), the data is show correctly.
df, error = ek.get_data( 'AIRX.KL',
['TR.OPENPRICE.Date','TR.OPENPRICE','TR.HIGHPRICE','TR.LOWPRICE',
'TR.CLOSEPRICE','TR.PE','TR.VOLUME','TR.BIDPRICE','TR.ASKPRICE'],
parameters = {
'SDate': -5,
'EDate': 0})
Is this a correct behaviour ?
Best Answer
-
@yongks
The misalignment appears to be due to a gap in the timeseries of price history for AIRX.KL on 2015-01-30. This (or any other content issues that you find) needs to be reported to Refinitiv Helpdesk. I would be happy to open a ticket with the Helpdesk on your behalf, however unfortunately you chose to register on this portal with a personal rather than a corporate email address, which makes you anonymous to the moderators on this forum. And we cannot open a ticket with the Helpdesk for anonymous users.
Here's the best way to report such an issue to Refinitiv Helpdesk.
1. Reproduce the issue using Excel. In this case the data retrieved by the following function demonstrates that fields TR.OPENPRICE, TR.CLOSEPRICE omit the row for 2015-01-30 while TR.PriceOpen, TR.PriceClose return duplicate row for 2015-01-29, whereas TR.Volume returns a row for 2015-01-30 with zero volume.=TR("AIRX.KL","TR.PriceOpen.date;TR.PriceOpen;TR.PriceClose.date;TR.PriceClose;TR.OPENPRICE.date;TR.OPENPRICE;TR.CLOSEPRICE.date;TR.CLOSEPRICE;TR.Volume.date;TR.Volume","SDate=2015-01-25 EDate=2015-02-05 CH=Fd RH=IN")
2. Use Contact Us capability in your Eikon application or follow the link below to report the issue to Refinitiv Helpdesk.
https://my.refinitiv.com/content/mytr/en/helpandsupport.html
0
Answers
-
I drilled down further and notice that the error happened on below dates:
2-3 Feb 2015 (Mon, Tue) not a trading day.
I had compared MBBM.KL and AIRX.KL, and noticed that MBBM.KL data is correct, wherease AIRX.KL has this error.
df, error = ek.get_data( 'AIRX.KL',['TR.VOLUME.Date','TR.OPENPRICE.Date','TR.OPENPRICE','TR.HIGHPRICE','TR.LOWPRICE','TR.CLOSEPRICE','TR.BIDPRICE','TR.ASKPRICE','TR.VOLUME'],
parameters = {
'SDate': '2015-1-25',
'EDate': '2015-2-04'})In this situation, how do we adjust it ?
0
Categories
- All Categories
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 683 Datastream
- 1.4K DSS
- 613 Eikon COM
- 5.2K Eikon Data APIs
- 10 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 3 Trading API
- 2.9K Elektron
- 1.4K EMA
- 248 ETA
- 552 WebSocket API
- 37 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
- 275 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
- 626 Refinitiv Data Platform Libraries
- 5 LSEG Due Diligence
- 1 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
- 26 DACS Station
- 121 Open DACS
- 1.1K RFA
- 104 UPA
- 191 TREP Infrastructure
- 228 TRKD
- 915 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 84 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 46 中文论坛