Hi, I have subscribed to ontick method and the only scrip I have added is BANKNIFTY index. I was saving the previous tick and the current tick. At some time today, precisely at 11.30.05.4773700, BANKNIFTY index price jumped down to 35993.7 from 36039.6. That's almost 40 points jump down. When I looked at the chart now, it doen's show any gapdown. Did this jump really happen or is it due to delayed data I got from your servers?
Gap ups/downs mean difference between the closing price of previous candle and opening price of the current candle,and can only be seen in minimum 1 min candles on Zerodha , as that's the smallest timeframe on Zerodha. As you noticed,the price moved down during the 11:30 1 min candle , so the gap down doesn't reflect on the chart.
There is no delayed data,as KiteConnect just relays whatever they get from the exchange,no modification. If you look at the chart,you can see that this price movement was captured on the chart.
The tick data you get through websocket is the same data Kite uses to build candles.
Kite doesn't store tick data. Only the 1 minute candles formed from those candles are stored,and higher timeframes are made from those minute candles.
You can check the tick timestamp to verify if the gap down indeed happened. If the tick timestamp does not verify the gapdown,it might be that you recived the tick later if you were blocking the main on_ticks thread .
However,by looking at the chart,it seems like the price did move down instantaneously as you can see the 11:30 candle is big. .
Thanks, tick timestamp is null for BankNifty. Is that expected? Why can't this be the timestamp of the data arrived from the exchange? Why is it null? How do I get the timestamp of the tick for BankNift then? Even the last traded time is null.
Oh,my bad. I forgot there is no last trade time for banknifty. . It's null because banknifty is index, it's not traded.Yeah,then check the exchange timestamp.
There is no delayed data,as KiteConnect just relays whatever they get from the exchange,no modification. If you look at the chart,you can see that this price movement was captured on the chart.
Kite doesn't store tick data. Only the 1 minute candles formed from those candles are stored,and higher timeframes are made from those minute candles.
You can check the tick timestamp to verify if the gap down indeed happened. If the tick timestamp does not verify the gapdown,it might be that you recived the tick later if you were blocking the main on_ticks thread .
However,by looking at the chart,it seems like the price did move down instantaneously as you can see the 11:30 candle is big. .
It is relayed, as received from the exchange.