You don't have to do it. pykiteconnect has the option to reconnect and it maintains the subscriptions for you. You just need to enable it. You can know more here.
It will be very helpful if you kindly suggest how to do it. Do I need to call the __init__ function and put the variables as my requirement or there is any other way
Do I need to call the __init__ function and put the variables as my requirement or there is any other way
__init__ is KiteTicker class initialization. So, you need to set reconnect=True during class initialization. kws = KiteTicker("api_key","access_token", reconnect=True)
You just need to enable it. You can know more here.
It will be very helpful if you kindly suggest how to do it.
Do I need to call the __init__ function and put the variables as my requirement or there is any other way
Thank you.
__init__
isKiteTicker
class initialization. So, you need to setreconnect=True
during class initialization.kws = KiteTicker("api_key","access_token", reconnect=True)