Upstox Algo Trading | Automate Your Strategy | Tradetron
Upstox + Tradetron

Automate Your
Upstox Trading

To automate trading on Upstox, create a free algo trading app in the Upstox developer portal with Tradetron's redirect URL and your Tradetron virtual server address, enter its API key and secret in Tradetron, and deploy a strategy. Tradetron places the orders through Upstox's API, and you write no code. You log in to Upstox from your Tradetron link once each trading day.

Start Free — Connect Upstox

Free forever plan available.

4,400+ traders run strategies on Upstox via Tradetron
Upstox algo trading with Tradetron
Step by step

How to automate trading on Upstox

Set it up once with these steps, in this order. Field names follow the Upstox connection form on Broker & Exchanges.

  1. Add Upstox on Tradetron

    On Broker & Exchanges, click Add Broker, pick Upstox and save with placeholder details for now. This unlocks Enable virtual server.

  2. Enable a virtual server

    On the broker's edit page, click Enable virtual server and pick a plan (from Rs 100 a month + GST). Tradetron emails you the server's address; Upstox accepts API orders only from an address you register with it.

  3. Create an app in Upstox

    In the Upstox developer portal, click + New App. Name it Tradetron, set the Redirect URL to https://upstox.tradetron.tech/login, paste the virtual server's address into Primary IP, set the Postback URL to https://127.0.0.1/ and leave the other fields blank.

  4. Confirm the app

    Accept the terms, click Continue, then Confirm plan (the app is free). The API key and secret appear under My Apps.

  5. Enter your keys and log in

    On Broker & Exchanges, enter api_key and api_secret and leave token blank. Save, then click the auth link and log in to Upstox; the token is generated when you reach the success page.

  6. Deploy a strategy

    Build a strategy in the no-code builder or pick one from the marketplace, choose Upstox as the broker and deploy. Live Offline runs it on live prices and shows each signal without placing an order; Live Auto places the orders at Upstox.

Every trading day. Before you trade each day, open the login link on your Upstox broker card and sign in. Upstox also ends the token at once if a registered address changes, and lets you change it only once a week.

Why the virtual server. Under SEBI's framework for retail algo trading, every Indian broker accepts API orders only from an address registered with it (all brokers from 1 April 2026). Your strategies run on Tradetron's servers, so the address Upstox needs is your virtual server's, never your home or office address.

Updated 24 Oct 2026. Steps follow Tradetron's Upstox connection guide; broker screens can change, and the guide has the current labels. Trading in securities and derivatives carries a risk of loss. Tradetron is a software platform, not an investment adviser, and does not tell you what to trade. A backtest shows how rules behaved on past data and is not a forecast.

How it works

Three steps to automated trading

Set up once. Trade forever. Here's how to get your Upstox account running on autopilot.

1

Build your strategy

Use Tradetron's no-code builder to create entry/exit rules, position sizing, and stop-loss logic — no programming needed.

2

Connect Upstox

Link your Upstox account in minutes. One-time setup, then Tradetron handles order placement automatically.

3

Trade on autopilot

Your strategy runs through market hours — scanning signals, placing orders, and managing risk while you focus on what matters.

Why Tradetron

Built for serious Upstox traders

Trade the segments you need, with the reliability professional traders demand.

✓
Supports Equity, F&O, Commodity Trade across all asset classes available on Upstox.
✓
Reliable order execution Orders placed directly through Upstox's official API.
✓
No coding required Build complex strategies with conditions, scanners, and risk management — all visual.
✓
See every signal before you go live In Live Offline, Tradetron runs your strategy on live prices and shows you each signal. It places no order; you may place the trade yourself at your broker.
✓
Switch brokers without rebuilding Your strategy logic stays intact when you switch — connect a different broker without starting over.
✓
Marketplace of 1,000+ strategies Subscribe to strategies built by creators and deploy them in a few clicks.
Getting connected

How to connect Upstox

One-time setup

Link your account

In the Upstox developer portal, create a free app named Tradetron with Tradetron's redirect URL and your Tradetron virtual server's address as the primary IP, then copy the API key and secret into Tradetron.

Setup once
Daily login

Refresh your session

Each trading day before markets open, open your Upstox login link from Tradetron and sign in to reach the success page.

Takes ~30 seconds

☀ Your trading day, automated

🔑
8:30 AMRefresh token (30s)
⚙️
9:15 AMMarket opens
📈
All dayStrategies run
✓
Market closeYou stay in control

A few things to know about Upstox

  • Set the redirect URL to https://upstox.tradetron.tech/login on your Upstox app.
  • Upstox ends the token at once if a registered IP address changes, and allows an IP change only once a week.
  • Daily token: a quick Upstox login from the link on your broker card.

Need step-by-step guidance? Read the Upstox connection guide →

FAQ

Common questions about
Upstox algo trading

Do I need to know how to code?

No. Tradetron's builder is fully no-code; you can also deploy ready-made strategies from the marketplace in a few clicks.

Is automated trading allowed on Upstox?

Yes. Tradetron connects through Upstox's official API. You stay in full control of your account and funds.

Why do I need to log in to my broker every day?

Under the exchange rules for retail algo trading, every broker API session is logged out each day before the next trading day begins. So each broker asks you to log in again, or generate a new token, before you trade. It is not a Tradetron limit.

Can I try it before paying?

Yes. Tradetron is free to start — sign up with your email, build a strategy, and paper trade at no cost.

How do I automate trading on Upstox without writing code?

Create a free algo trading app in the Upstox developer portal with Tradetron's redirect URL and your Tradetron virtual server's address, enter its API key and secret in Tradetron, and deploy a strategy built in the no-code builder or picked from the marketplace. Tradetron places the orders through Upstox's API.

Do I need to create an app in Upstox?

Yes, once. In the Upstox developer portal click + New App, name it Tradetron, set the redirect URL to https://upstox.tradetron.tech/login and add your Tradetron virtual server's address as the primary IP. The app is free, and it gives you the API key and secret you enter in Tradetron.

Why did my Upstox token stop working?

Upstox ends the access token as soon as a registered IP address changes, and it needs a fresh login each trading day. Log in again from the Upstox link on Tradetron's Broker & Exchanges page. Upstox lets you change the app's IP addresses only once a week.

Do I have to log in to Upstox every day?

Yes. Before you trade each day, open the login link on your Upstox broker card in Tradetron and sign in to Upstox. The token is generated when you reach the success page.

Can I backtest a strategy before running it on Upstox?

Yes. Any Tradetron strategy can be backtested on 1-minute NSE and NFO history from January 2020 before you deploy it on Upstox. A backtest shows how the rules behaved on past data; it is not a forecast. See tradetron.tech/backtest/nifty-options.

Ready to automate your Upstox trades?

Join thousands of traders who run their strategies on autopilot with Tradetron.

Get Started Free