Upstox API Algo Trading
Upstox API algo trading is software that takes the decision you would have made and places it in your own Upstox account. We build it to your specification, and Telegram, WhatsApp, Discord, TradingView or a strategy inside the software can drive it.
You run the software on your own PC or VPS, under your own Upstox API keys. AlgoDevelop is a software developer, not a SEBI-registered intermediary: we give no signals or advice, and we never place trades or manage funds for you.
On this page
- What Upstox API algo trading software does
- What the Indian copiers already handle at Upstox
- The OAuth redirect and the 3:30 AM token
- A custom build written from plain sentences
- Signal sources a custom build can read
- Upstox’s sandbox, Paper mode and dry runs
- Registering a static IP with Upstox
- Instrument keys that change every expiry
- Products I, D and MTF, and your own square-off
- Limits on each Upstox account
- Upstox API algo trading under SEBI and NSE rules
- From requirement to first live order
- Questions about Upstox API algo trading
What Upstox API algo trading software does
Upstox API algo trading software holds a signed-in session to your own Upstox account and places orders through the Upstox API when your conditions come true. The orders then appear in your normal order book, while your money and your login stay under your control.
Upstox lists its trading and data APIs as free, so the API itself adds no monthly bill. Brokerage still applies to each order, so check Upstox’s own pricing before you plan around a number.

What the Indian copiers already handle at Upstox
Not every job needs custom code. Two of our ready-made apps already trade Upstox, along with nine other Indian brokers. The Telegram to Indian broker copier turns the calls in your channels into orders. The TradingView to Indian broker copier does the same for your TradingView alerts.
For an Upstox account, both of them handle the awkward parts:
- The instrument key. Upstox names every contract by a key such as NSE_FO|43919, never by its symbol, and the app finds that key in Upstox’s own instrument file.
- The fast order host. Orders go to Upstox’s low-latency order address, not the general one.
- Large orders. An order above the exchange freeze limit goes out sliced by Upstox, and the journal lists every order id it became.
- Safe market orders. Market signals become protective limit orders by default. If a market order does go out, it carries Upstox’s protection band.
- The right exchange. A stock listed on both exchanges trades on NSE. BSE is the fallback, used only when NSE has no match.
- Upstox’s own words. When Upstox refuses an order, such as for low funds, the journal shows its reason rather than a bare error code.
Both copiers trade options and shares, NSE first with BSE as the fallback. Futures and MCX orders are refused, so those need a custom build.
Your Upstox token stays on your PC, and TradingView alerts come straight to it. The Telegram copier does send the text of messages from the chats you select to the AI service set in the app, to turn them into orders; it does not copy them to our website. Our privacy policy lists what the apps send.

The OAuth redirect and the 3:30 AM token
Upstox signs you in through an OAuth flow, and it’s the most common reason a first attempt fails.
First, you register an app in the Upstox developer console and set a redirect URI. After you sign in, Upstox sends you there with a code in the address. Then the software swaps that code for an access token, and each code works only once. If the registered URI differs at all from the one the software uses, the login fails with an error that explains nothing. Protocol, port and path all count.
Every token expires at the next 3:30 AM. A token made at 9:00 AM lasts until 3:30 AM the next day, while one made at 2:30 AM lasts one hour. Someone has to sign in, or approve a sign-in, once each trading day, and NSE’s standards log every API session out before the next trading day in any case. In the ready-made copiers, you paste the day’s token on the account each morning. Test the connection then confirms it, and an expired token shows up as a plain message rather than a silent failure.
With a custom build, the software can automate the code swap, or use Upstox’s token request instead, which you approve on your phone. The Upstox API documentation covers all three ways, and the redirect URI is the setting to check first.

A custom build written from plain sentences
There is no settings page here. You describe the behaviour you want, and we build that.
The requirements are usually plain English. Trade only the first hour. Skip the next signal if the previous one lost. Put two lots on the index and none on stocks. Stop after three losses. Message me on Telegram when anything happens. Those sentences are the specification.
Tell us yours, and we will say whether the Upstox API supports it before you commit to anything.
Signal sources a custom build can read
The decision can start in any of these:
- Telegram: any channel, group or bot you can already read.
- WhatsApp: groups, direct messages and forwarded calls.
- Discord: servers and channels, bot posts and embeds included.
- TradingView: webhook alerts from your own indicator or strategy.
- Logic inside the software, with no outside source at all.
- Manual: you press, then it places the order and manages it.
More than one at a time is normal, each with its own quantity and its own daily limits.
Upstox’s sandbox, Paper mode and dry runs
Upstox offers a sandbox, so Upstox API algo trading is easier to test there than at most brokers. It covers placing, changing and cancelling orders, and a sandbox token lasts 30 days. You get one sandbox app per user, and its tokens can’t trade your live account.
We use the sandbox where it covers what you need. Where it does not, we run a session with trading switched off, so the log shows every order the software would have placed. The ready-made copiers add Paper mode too. It reads live prices from your real Upstox account, but fills every order in the app’s own book. Either way, you read the log before anything goes live.
Registering a static IP with Upstox
SEBI’s framework for retail algo trading has applied to every broker since 1 April 2026, the date set in its circular of 30 September 2025. Under it, Upstox takes API orders only from a static IP that you have registered with it. NSE’s implementation standards (NSE/INVG/67858) allow one primary IP plus an optional secondary, changed at most once a calendar week. A home connection whose address keeps changing won’t do. A VPS with a fixed IP will, and so will a static IP from your internet provider.
The Dashboard shows the address Upstox sees, with a Copy button. If that address changes, the app warns you, because Upstox refuses orders from an IP it does not know.

Instrument keys that change every expiry
An instruction like “NIFTY 24600 CE” is not yet an instrument. The software has to find the strike, the expiry and the exact instrument key Upstox uses. Those change at every expiry, so anything hard-coded works for a week and then silently stops.
Because those keys change, the copiers download Upstox’s instrument file and reload it every six hours. With no expiry named, they take the nearest one that has not passed. Futures and MCX contracts are matched the same way in a custom build, where your account has them.
Products I, D and MTF, and your own square-off
Upstox writes its products as short codes: I for intraday, D for delivery and MTF for margin trade funding. Send the full word, and Upstox answers with an unhelpful error, so the app always sends the code.
Give the software a square-off time, and it squares off what is still open at that minute. That way you are not waiting for the broker’s automatic square-off. If you carry positions overnight, simply leave the time blank.
Limits on each Upstox account
Both ready-made copiers carry these limits for each Upstox account:
- A daily cap on orders, 10 to start with, and a cap on lots per order.
- Ceilings on rupees per order and on open positions.
- A slippage guard that skips an entry when the price has run too far.
- Trading hours of 09:15 to 15:15 by default, plus a repeat window for calls posted twice.
- One kill switch that refuses every new order at once.
Custom builds can also carry a daily loss cap, a daily profit target and allowed instruments and hours. Those extra limits stay off until you switch them on. Either way, each refusal goes into the log with its reason.
Broker limits on this page checked against Upstox’s docs on 4 Nov 2026.

Upstox API algo trading under SEBI and NSE rules
Trading your own Upstox account from your own app keys is your own trading, with software you paid for. NSE’s standards treat Upstox API algo trading software as a client-generated algo when it runs your logic from your own registered static IP. Strategies sold or run by a provider follow different rules, such as broker hosting and provider empanelment.
Doing the same on other people’s accounts falls under SEBI’s rules in India. AlgoDevelop isn’t your broker, adviser or fund manager, and we don’t give tips or run the software for you. You make the decisions, and you handle any registration your use may need. Before you trade for anyone else, read whether copy trading is legal in India.
From requirement to first live order
- Describe the requirement in whatever form you have it.
- We scope your Upstox API algo trading build and quote a fixed price.
- You do the Upstox paperwork: developer app, callback address and static IP.
- Test in the sandbox, in Paper mode or with trading switched off, and read the log.
- Go live small, then scale once the log matches what you expected.
Other brokers too: Zerodha, Angel One, Fyers, Dhan and Groww. You can also run them all together with multi-broker copy trading. When you are ready, ask for a quote.
Questions about Upstox API algo trading
Is there a ready-made Upstox bot?
There are two, the Telegram and the TradingView Indian copiers, and each app’s page has a download form for a free trial. Futures, MCX or anything else they don’t cover needs a custom build.
Why does my Upstox app fail to sign in?
Almost always, the redirect URI. Copy it from the developer console into the software character for character: http instead of https, a missing port or an extra slash is enough to break the sign-in.
Do I have to log in every morning?
Once a day, yes. Make the day’s token after 3:30 AM, not before, or it expires within the hour.
Can it take signals from Telegram, WhatsApp or Discord?
The ready-made copiers take Telegram calls and TradingView alerts. A custom build can also read WhatsApp and Discord, run its own logic or take a manual trigger, and several can run at once.
What does Upstox API algo trading cost?
No API fee, only the usual brokerage and charges on each order, plus the price of the software.
Can I test Upstox API algo trading without real money?
Yes. A sensible order is the sandbox first, then one full market session in Paper mode, then a single live lot with a low daily cap.
Why does Upstox need my static IP?
Below 10 orders a second per exchange, NSE doesn’t require you to register the algo itself, but every order still has to come from the static IP Upstox has on file.
Can it trade options like BANKNIFTY 52000 CE?
The copier can. The call is matched by strike and expiry to its NSE_FO instrument key, and with no expiry named the nearest unexpired one is used.
Can it run my own TradingView strategy?
Yes. Your strategy fires a webhook alert, and the software places the order at Upstox.
Do you provide signals or run it for me?
Neither. We build the software, and you run it on your own account with your own credentials.
Do I own what you build?
You do. It comes with its documentation, and there is no per-trade fee.
Can I run Upstox API algo trading for my family too?
Not without checking first. Your own account is your own trading, but trading for family, friends or clients is a different case under SEBI’s rules, so get qualified advice.