(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!