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.
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?
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.
Can you add more details like which version of pykiteconnect you are using?