Will my code run unchanged when i upgrade to Kite 3?

hanzo
I'm getting TokenException on KiteConnect object when getting positions, placing orders etc.
  • sujith
    You need to log in again. It means your session is expired.
  • hanzo
    i've tried multiple times. my Websocket connection works fine.

    i added an "on_close" handler to the KiteConnect object. if i call "kite.instruments()", it works fine. but the moment i call "kite.positions()", the on_close handler is called and i get the error message.

    the only change i made was upgrade. my code was working on the previous version.
  • sujith
    Kite Connect 3 APIs expects you to send authorization tokens in the header.
    Can you add more details like which version of pykiteconnect you are using?
Sign In or Register to comment.