Skip to main content

Get your Upstox API keys

The live desk uses your own Upstox account for real-time prices. Create an app in Upstox's portal, then paste its keys into your Stage2Stocks Broker page.

About 2 minutesYou copy: API Key + API SecretMarket data: no fees

The 3 steps

  1. Open the Upstox developer apps page

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

  2. 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.

  3. Copy your credentials

    Open the app → copy the API Key (client id) and API Secret. Paste both into your Broker page (in the account menu).

Redirect URL (paste into the broker app)
https://www.stage2stocks.com/api/live/upstox/callback

Where the keys go

Open your Broker page (in the account menu), choose Upstox, paste your API Key + API Secret, and save. Then open the live desk and click Authenticate.

Good to know

  • Free: no subscription for the API or market data.
  • The access token expires daily (around 3:30 AM IST), so re-authenticate once each day.

Questions people ask

Does this place trades?

No. The connection is read-only: it pulls real-time market data and never places orders.

Is it safe to add my keys?

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.