get_data() inconsistent between an index and a single stock

(1) get_data() on an index:
ek.get_data('.TOPX', fields=["TR.PriceClose.date","TR.PriceClose.value"], parameters={'SDate':'2020-01-01', 'EDate':'2020-03-31', 'Frq':'D'})[0]
(2) get_data() on a single stock
ek.get_data('5411.T', fields=["TR.PriceClose.date","TR.PriceClose.value"], parameters={'SDate':'2020-01-01', 'EDate':'2020-03-31', 'Frq':'D'})[0]
I have two questions about inconsistency between the two requests above.
Question 1: Starting date
(1) stats from 2019-12-30
nstrument Date Price Close
0 .TOPX 2019-12-30T00:00:00Z 1721.36
1 .TOPX 2019-12-30T00:00:00Z 1721.36
2 .TOPX 2019-12-30T00:00:00Z 1721.36
3 .TOPX 2020-01-06T00:00:00Z 1697.49
(2) starts from 2020-01-06
Instrument Date Price Close
0 5411.T 2020-01-06T00:00:00Z 1394
1 5411.T 2020-01-07T00:00:00Z 1388
2 5411.T 2020-01-08T00:00:00Z 1402
3 5411.T 2020-01-09T00:00:00Z 1445
Why is that? Is there any way of correcting this inconsistency?
Question 2: Duplicated entries for (1)
You can already see duplicated entries for (1) on 2019-12-30. The same thing happens on other days such as 2020-02-21 and 2020-03-19.
Could you check it and let me know why this duplicated returns happen? Is there any way of correcting it?
Thank you!
Best Answer
-
Below is the resolution provided by Content specialist in the case: 08558851.
Upon checking, this is due to the logic behind these two TR items
TR.ClosePrice - calendar logic built in and delivers data in-line with Exchange specifics
TR.PriceClose - calendar holidays are not mapped to the data series
However please notice that there's a parallel issue ongoing with a TR.PriceClose series feeding NULL data for holidays by multiplication of the previous day price .
This is a known issue that concerns a list of indices (and indices only): .SP500, .5SP45, .FTSE, .TA25, .BAK, .TOPX and a few others. For the fact that there's a valid workaround of appliance of a TR.ClosePrice data item instead, the issue is not treated as a priority. I'm therefore not in position to provide a possible data of a fix deployment.
Thus, in these circumstance, please use a TR.ClosePrice data item which has the calendar logic built in and delivers data in-line with Exchange specifics or alternatively TR.PriceClose field, with a reminder that calendar holidays are not mapped to the data series.
I have updated the excel file with TR.closeprice and the data is showing correctly.0
Answers
-
Hello, Iwasaki
F.Y.I.
I think better to use TR.ClosePrice.
0 -
Hi @iwasaki
This seems to be a same content issue as posted on https://community.developers.refinitiv.com/questions/57386/reply-wrong-datatopx-yesterday-close-data.html
I have raised ticket no. 08558851 on your behalf.
In the meantime, please use the TR.ClosePrice field. (However, I also think there is a problem on this TR.ClosePrice field too, it should not be close from 31-12-19 to 05-01-20)
0 -
Hi @kengo_takahashi_deprecated_0
Thanks a lot for your answer.
I am sorry that I didn't see your answer before I submitted my answer.
So I ended up posted the same content with your answer.
0
Categories
- All Categories
- 3 Polls
- 6 AHS
- 36 Alpha
- 166 App Studio
- 6 Block Chain
- 4 Bot Platform
- 18 Connected Risk APIs
- 47 Data Fusion
- 34 Data Model Discovery
- 687 Datastream
- 1.4K DSS
- 621 Eikon COM
- 5.2K Eikon Data APIs
- 11 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- 4 Trading API
- 2.9K Elektron
- 1.4K EMA
- 254 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
- 669 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
- 104 UPA
- 193 TREP Infrastructure
- 229 TRKD
- 917 TRTH
- 5 Velocity Analytics
- 9 Wealth Management Web Services
- 90 Workspace SDK
- 11 Element Framework
- 5 Grid
- 18 World-Check Data File
- 1 Yield Book Analytics
- 48 中文论坛