Get connection status

Benthomas
Hi,
how to get the status of the connection established(after giving the login credentials, api_key, TOTP etc.)
Here is the logic looking for

If(connection_status==TRUE):
print((kite.profile()["user_name"])
else:
popup "login window"

thanks in advance
Sign In or Register to comment.