It looks like you're new here. If you want to get involved, click one of these buttons!
hist_day_candles = kite.historical_data(6401, "2010-05-24 00:00:00", "2010-05-24 23:59:59", "day", continuous=False, oi=False)
{'date': datetime.datetime(2010, 5, 24, 0, 0, tzinfo=tzoffset(None, 19800)), 'open': 548, 'high': 607.9, 'low': 548, 'close': 548, 'volume': 6493632}But If I make this call using Python:
hist_day_candles = kite.historical_data(6401, "2010-04-10 00:00:00", "2010-06-18 23:59:59", "day", continuous=False, oi=False)
{'date': datetime.datetime(2010, 5, 24, 0, 0, tzinfo=tzoffset(None, 19800)), 'open': 580, 'high': 607.9, 'low': 548, 'close': 593.7, 'volume': 6493632}The open and close price is different.
{'date': datetime.datetime(2010, 5, 24, 0, 0, tzinfo=tzoffset(None, 19800)),
'open': 548, 'high': 607.9, 'low': 548, 'close': 548, 'volume': 6493632}
Are you seeing this discrepancy on all requests or is it happening intermittently?
Also, can you paste the complete debug log for both the above requests?
Are you seeing this discrepancy on all the requests or is it happening intermittently?
I noticed one thing, In your second request, the start date is "2010-04-14" and in my request, the start date is "2010-04-10".
When I change the start date to "2010-04-14" results are same for me also. Can you please change the start date and try again? @rakeshr
Thank you
An example of candles that differed from one fetch to another are shown below. See the corresponding candles closely to observe what values differ.
1st fetch:
['2021-05-25T09:40:00+0530', 34888.1, 34888.1, 34798.45, 34815.4, 0]
['2021-05-25T09:45:00+0530', 34822.4, 34822.4, 34738.15, 34741.9, 0]
2nd fetch (issued 5 seconds later):
['2021-05-25T09:40:00+0530', 34888.1, 34888.1, 34798.45, 34824.95, 0]
['2021-05-25T09:45:00+0530', 34824.4, 34824.4, 34738.15, 34741.9, 0]
I did this today: According to the data returned
The closing price of 15:29 candle is "209" but on Kite.Zerodha.com chart, it is "209.95".
The close price on 09:15 candle is "201.6" but on kite chart, it is "201.8".
The volume is also wrong.
I also fetched todays data before 2 hours today using a similar command, but in that data returned the values were correct, I do not have the exact dates that I gave as input previously.