# Step 1: Login and get access token using KiteConnect REST API (manual step for first time) kite = KiteConnect(api_key=api_key)
print("Go to this URL and login: ", kite.login_url())
# After login, you receive request_token via redirect URL callback # Assume you obtained the request_token manually or from your web app
request_token = input("Enter the request token obtained after login: ").strip()
# Generate session to get access_token and refresh_token data = kite.generate_session(request_token, api_secret=api_secret) access_token = data["access_token"] refresh_token = data.get("refresh_token")
Please avoid sharing your API key, access token, and client and app specific details publicly. I've removed it for you this time. Additionally, market data cannot be accessed via WebSocket with the Kite Connect personal app (free version), which is why you encountered an error.
It looks like the API key you mentioned earlier is associated with the free version. If you've set up a Kite Connect (paid version) app, you can use the API key and access token from that paid version app to resolve the issue.
1. Do we currently have a paid plan active?
we've paid already on the portal, but not sure as the API key appears to be still free
2. Ask them the URL of billing page where you can check the active plan and upgrade ETC
3.,why is this api key not providing the results and giving a 403 forbidden error still.
we've paid already on the portal, but not sure as the API key appears to be still free 2. Ask them the URL of billing page where you can check the active plan and upgrade ETC 3.,why is this api key not providing the results and giving a 403 forbidden error still.
You currently have credits in your developer account. To proceed, you need to create an app in the Kite Connect console and use the generated API key to fetch market data.
Note: The Kite Personal app will not be converted to a paid version once you've added the credits. Instead, you have to create a new Kite Connect(paid version) app after adding the credits.
from email
[email protected]
we have 1000 rupee balance in it
we've paid already on the portal, but not sure as the API key appears to be still free
2. Ask them the URL of billing page where you can check the active plan and upgrade ETC
3.,why is this api key not providing the results and giving a 403 forbidden error still.
Note: The Kite Personal app will not be converted to a paid version once you've added the credits. Instead, you have to create a new Kite Connect(paid version) app after adding the credits.