Upstox API Access Token Guide (2026): Daily Expiry & Analytics Token
Upstox has two tokens: the OAuth access token that expires at 3:30 AM IST daily, and the 1-year read-only Analytics token. How each is generated and which one a journal should use.
By CernoQuant Team
Upstox has twokinds of API token, and the difference matters a lot if you're connecting an analytics dashboard or a trading journal. The standard access token expires every day; the Analytics token is read-only and lasts a year. This guide explains both, how they're generated, and which one you actually want for reading your data. (Verified against Upstox developer docs, 13 July 2026.)
The standard access token (expires daily)
The regular token is generated via a standard OAuth 2.0 authorization-code flow: your app sends the user to the Upstox login page, the user logs in, Upstox redirects back to your redirect URI with a single-use authorization code, and your server exchanges that code (with your API key and secret) for an access token.
The catch traders search for most: it expires at 3:30 AM IST the next day, no matter when it was created. A token made at 8 PM Tuesday and one made at 2:30 AM Wednesday both die at 3:30 AM Wednesday. So it must be regenerated every trading day. Docs: Upstox authentication.
The Analytics token (1-year, read-only)
This is the one people mean when they search “Upstox analytics token,” and it's purpose-built for dashboards and journals:
- Generated directly from Developer Apps → Analytics tab — no OAuth redirect, no daily login.
- Valid for 1 year — not a daily refresh.
- Read-only — GET APIs only. It cannot place, modify or cancel orders. Perfect (and safe) for anything that only needs to read data.
- One token per account. Account-specific APIs (User, Portfolio, Orders) require a static IP; market-data APIs work without one.
Reference: Upstox Analytics Token docs.
Which token should a trading journal use?
A journal only needs to read your trades, so the read-only Analytics token is a natural fit — long-lived and incapable of placing orders, which is exactly the security property you want from a tool that touches your brokerage account. The standard OAuth access token also works, but it needs to be refreshed daily. Either way, a read-only setup means the tool can never trade on your behalf.
How CernoQuant handles Upstox tokens
CernoQuant connects to Upstox with read-onlyaccess and handles the token lifecycle for you — you don't manually regenerate anything each morning. It reads your executed trades and turns them into a full NSE F&O journal: STT decomposition, expiry-day analytics, Greeks at entry, strategy win rate, and behavioural pattern detection. It never places orders and never redistributes live market data.
Frequently Asked Questions
When does the Upstox access token expire?
The standard OAuth access token expires at 3:30 AM IST the following day, regardless of when it was generated. It must be regenerated each trading day.
What is the Upstox Analytics token?
A separate, read-only token valid for one year, generated from Developer Apps → Analytics tab. It can only call GET APIs — it cannot place, modify or cancel orders.
Which token is best for a trading journal?
The read-only Analytics token suits a journal — it is long-lived and cannot trade on your behalf. The standard OAuth token works too but needs daily refresh.
Does the Analytics token need a static IP?
For account-specific APIs (User, Portfolio, Orders) yes; market-data APIs work without a static IP. There is one Analytics token per account.
Connect Upstox — no daily token juggling
Read-only connection, managed for you. Full NSE F&O analytics included.
Connect Upstox Free →Token behaviour verified against Upstox's public developer documentation on 13 July 2026 and may change — check the current Upstox docs. CernoQuant is a trading journal and analytics platform, not a SEBI-registered investment advisor. Trading decisions are your sole responsibility.
Start journaling your trades today
India's smartest AI trading journal. Auto-sync Zerodha, Dhan, Angel One, Fyers & Upstox. Free to start.
Create free account