Error in python

baloda2015
showing this error in python
Traceback (most recent call last):
File "C:/Users/use/kite1.py", line 72, in
check_candle()
File "C:/Users/use/kite1.py", line 7, in check_candle
bank_nifty = kite.ltp("NSE:BANKNIFTY")
File "C:\Users\use\AppData\Roaming\Python\Python311\site-packages\kiteconnect\connect.py", line 610, in ltp
return self._get("market.quote.ltp", params={"i": ins})
File "C:\Users\use\AppData\Roaming\Python\Python311\site-packages\kiteconnect\connect.py", line 851, in _get
return self._request(route, "GET", url_args=url_args, params=params, is_json=is_json)
File "C:\Users\use\AppData\Roaming\Python\Python311\site-packages\kiteconnect\connect.py", line 927, in _request
raise exp(data["message"], code=r.status_code)
kiteconnect.exceptions.TokenException: Incorrect `api_key` or `access_token`.
  • sujith
    It seems like you session is expired, you will have to create a new access token.
Sign In or Register to comment.