Listen aloud is not supported in this browser.
Upstox
Connect Upstox Pro API using API key, secret, and OAuth login.
How to get here
Navigation: Brokers › Add new Account › Upstox
Prerequisites (Upstox developer portal)
- Active Upstox trading account
- Create an app in the Upstox Developer Console
- Register Redirect URI exactly as:
https://atpalgo.ai/upstox-callback.html - Copy API Key and API Secret from the app settings
- Enable required API permissions for trading and market data as needed
Redirect URI
Upstox redirects to /upstox-callback.html with ?code= and state=. Register the full URL including .html unless you override redirect in the form.
Step 1 — Open Add Broker and name the account
- Go to Brokers › Add new Account (open Add Broker).
- Enter a display name and click Next.
Step 1: Account display name.
Step 2 — Select Upstox
- Select Upstox from the broker grid.
- Click Next.
Step 2: Select Upstox.
Step 3 — Enter API credentials
- Enter API Key and API Secret.
- Optionally override Redirect URI if you use a custom callback (default is
https://atpalgo.ai/upstox-callback.html). - Click Next.
Step 3: API Key and Secret.
Step 4 — OAuth login
- Click Open Upstox Login if the popup did not open automatically.
- Approve access in Upstox; the callback page posts the code back to ATPAlgo.
- Wait until authentication shows Connected.
Step 4: Upstox OAuth login popup.
Step 5 — Finish setup
- Click Finish Setup on the summary step.
- Verify the account on My Brokers.
Step 5: Complete setup.
Troubleshooting
| Issue | What to check |
|---|---|
| Redirect mismatch | Redirect URI in Upstox app = https://atpalgo.ai/upstox-callback.html |
| code exchange failed | API secret must match the Upstox app; retry login |
| Session expired | Use Connect from My Brokers to re-login |