Kiteticker

SharadKothari
I login to kite and saves the access token to a file.

I run kiteticker in a separate module which stores the ticks in database which I access through other modules.

Is it possible to update the access token from the file without having to rerun kiteticker daily. Because I'm unable to execute kiteticker.connect(threaded=True) command after dynamically updating access token as it results into error.
  • dinezh
    You can't reconnect once you disconnect the kiteticker, because the kiteticker has been implemented that way.
  • dinezh
    What you could do is to del the KiteTicker instance and initialize (create) a new KiteTicker instance with new token and connect.
  • dinezh
    dinezh edited February 22
    To put simply, don't update the access token. instead just del the KiteTicker instance with the expired token from the memory and create a new `KiteTicker` instance with the new access token dynamically and connect.
Sign In or Register to comment.