Sir/Madam, I have subscribed to use KiteConnect API and streaming data both. I am using c# .NET for my automation. I receive the "Error : Lost Ticker Connection", when i am calling "kite.GetHistoricalData()" method on "OnTick()" event.
To give you more context i am calling "kite.GetHistoricalData()" method to receive past 1 month data with the 30 mins interval. This happens on each tick.
You need to use multi-threading, don't make any calculations or processing inside on_tick. One should never block the main thread that is receiving ticks. The only code inside on_tick should be to pass data to other threads and nothing more.
The only code inside on_tick should be to pass data to other threads and nothing more.
It's rectified.