Hi Sujith,
I am not trying to close the connection, the issue is it automatically stops ie. the websocket connection, So as in the code in on_ticks method i am dumping ticks into csv file, which doesn't happen as the connection gets closed.
Hi Kousik,
If you are trying to automate your trade, want to login automatically in case you can go through my github:
https://github.com/Deepak336/Zerodha-Kiteconnect-automatic-login-/blob/master/login_kiteconnect.py
you can stay logged in for hou…