when i use kiteconnect.getHistoricalData i can see a difference between the data fetched when compared to the data on the chart. there is always some gap. How can i fetch the proper candle stick information for completed candles for each time frame. Please help.
The historical data API is provided for backtesting purposes only. It is not feasible for live market strategies. We recommend generating candles at your end using the Websocket API. You can get started here.
You can get started here.