Connection is failing due to insufficient permission as indicated below:
from kiteconnect import KiteConnect api_key = "actualApi" access_token = "generatedToken" //Here i hide due to security kite = KiteConnect(api_key=api_key) kite.set_access_token(access_token) symbol = "NSE:RELIANCE" try: ltp = kite.ltp(symbol) print(f"{symbol} Last Price:", ltp[symbol]["last_price"]) except Exception as e: print("Error:", e) 3:59 [Running] python -u "c:\DDrive\PythonStrategy\SampleTest.py" Error: Insufficient permission for that call.
What updation to me done for above logic so that the same works with the Kite new 2025 Personal API and my account is activated for Options trading and this code was working with my older Kite API connect.
With the Kite Connect Personal app, it's not possible to access real-time or historical market data. For more details, you might find this thread helpful.
Thanks for your reply. My doubt is that this script was working fine with Kite older API which was 2000 per month so now will this need any changes to work with the new API which is for 500 per month or should there be any modifications done to the scripts in general.
However, if you're using the API key and access token for the Personal app (free version), you might encounter an error. Please make sure you're using the API key and access token from the paid version of the Connect app or check if your Kite Connect subscription has expired.
I have taken the subscribed version of 500 rupee but there is errors like below (in image) coming up but this script was working fine in the previous 2k subscribed version. So can you let me know if the API have been changed in this latest version that i need to update in my script.
However, if you're using the API key and access token for the Personal app (free version), you might encounter an error. Please make sure you're using the API key and access token from the paid version of the Connect app or check if your Kite Connect subscription has expired.