A Kite Connect app gives you an API key and secret. The free Personal plan places orders; market data is the paid one.
Before you start
http://127.0.0.1:8000/callback/. The postback URL is optional.The redirect URL must match character for character, trailing slash included: http://127.0.0.1:8000/callback/.
request_token; While25 swaps it for an access_token that expires at 6 AM the next morning, by regulation. First thing each trading day, sign in again.What you copied
An access token also dies if you log out of Kite Web, or if anyone does a master logout on the account.
When it does not work
The URL in the app registration and the one being sent differ somewhere: http against https, a port, a trailing slash. They must be identical.
The access token expired at 6 AM. Log in again; this is a regulatory requirement, not a bug, and no refresh token exists.
You are on the free Personal plan, which carries no market data. The ₹500 a month plan adds live and historical data.
The checksum is SHA-256 over api_key plus request_token plus api_secret, in that order, with no separators. A stale secret is the usual cause.
Straight from Zerodha
Also trade through Upstox? The Upstox guide is the same shape. Want a risk-free first look? Alpaca paper takes five minutes.