Skip to main content
Connect your broker
~2 min read

Get your Upstox API keys

The live desk uses your own Upstox account for real-time data. Create a free app in Upstox's portal, then paste its keys into your Stage2Stocks settings.
Keys to copy
2
API Key + API Secret
Data cost
Free
no API fees
Your password
0
we never see it
What you'll need
An active Upstox account and about two minutes. Everything happens in Upstox's portal — Stage2Stocks only receives the keys you copy at the end, never your password.
3 steps
01

Open the Upstox developer apps page

Go to account.upstox.com/developer/apps and sign in with your normal Upstox login.
02

Create a new app

Click + New App. App Name = anything; Redirect URL = https://www.stage2stocks.com/api/live/upstox/callback (paste exactly, no trailing slash). Choose the live API-Trading app (not Sandbox). Create.
03

Copy your credentials

Open the app → copy the API Key (client id) and API Secret. Paste both into Settings → Broker.
Redirect URL — paste into the broker app
https://www.stage2stocks.com/api/live/upstox/callback
Where the keys go
Open Settings → Broker, choose Upstox, paste your API Key + API Secret, and save. Then open the Live Desk and click Authenticate.
Good to know
Question
Free — no subscription for the API or market data.
Answer
Handled automatically — nothing extra for you to do.
Question
The access token expires daily (~3:30 AM IST) — re-authenticate once each day.
Answer
Handled automatically — nothing extra for you to do.
Question
Does this place trades?
Answer
No. The connection is read-only — it pulls real-time market data and never places orders.
Question
Is it safe to add my keys?
Answer
Your keys are encrypted at rest and never shared. Login and 2FA always happen on Upstox's own site, so Stage2Stocks never sees your broker password.
Open Upstox portal →← Back to the live desk