Upstox Live Data

Connect your Upstox account to receive genuine live market prices via WebSocket V3.

Checking connection status...

How Live Data Works

1

Configure API Credentials

Add UPSTOX_API_KEY and UPSTOX_API_SECRET to your environment variables. Get these from the Upstox Developer Console.

2

Complete OAuth

Click "Connect Upstox Account" above. You will be redirected to Upstox to authorize the app. The access token is stored in a secure httpOnly cookie — never exposed to the browser.

3

WebSocket V3 Connects

The backend fetches a one-time WSS URL from Upstox. The browser connects to this URL to receive live LTPC price ticks.

4

LIVE Status Confirmed

The status indicator changes from DEMO MODE → CONNECTING → LIVE only after a genuine price tick is received. It never shows LIVE on OAuth success alone.

Security: Your Upstox API secret and access token are never sent to the browser, never stored in localStorage, and never logged. They are used only in server-side API routes.