Skip to content

India · Broker API

Build an Upstox API trading bot with your AI coding agent.

Super Algo Kit helps you build an Upstox API trading bot inside your own AI coding agent. The Upstox Developer API covers orders, GTT orders, market data, history and option chains. Since 1 April 2026, every order call must come from your registered static IP, and a human approves the login each day. The kit paper tests first; live waits for your authorize command.

Upstox Developer API logo

broker facts

Upstox Developer API

What it is
The REST and WebSocket API of Upstox, an Indian broker, for its account holders in India.
Coverage
Orders, GTT orders, portfolio, funds, margins, quotes, history, option chains and live streams.
Login
You sign in on Upstox's site or approve a token request. Tokens reportedly expire at 03:30 IST.
Static IP
Since 1 April 2026, every order call needs a registered IP. A weekly change logs out your tokens.
Paper option
An SDK sandbox setting with its own token. Which endpoints it supports is not confirmed.
Order limits
Order calls share 10 a second, 500 a minute and 2,000 per 30 minutes for regular algos.
Algo apps
Algo apps send their configured algo name with each order. Over 10 orders a second needs registration.

From the kit's Upstox card, checked 2026-09-30. Confirm current terms on Upstox's own site.

Paper first

A Upstox bot, built paper first.

Super Algo Kit runs inside the coding agent you already use. It interviews you, writes the spec with pass marks set first, then builds, backtests and paper-tests. Real money starts only when you type the authorize command.

Type this in your coding agent
Build me a moving-average trend filter bot for Upstox on NSE stocks. Paper only.

The plan, step by step

Tick them off as you go.

How Upstox API access and login work

You create an app in Upstox Developer Apps and get an API key and secret. The redirect address you register must match exactly. In the standard login, you sign in on Upstox's own site, and your server swaps a single-use code for the token.

Upstox says all logins happen on its own site, so no public method lets another app log you in. It offers a semi-automated path, where you approve a token request in a mobile notification, and manual generation. Super Algo Kit uses one of these, so a human approves each day.

Static IP for Upstox algo trading

Since 1 April 2026, Upstox rejects order calls from unregistered IPs, including GTT and exit-all calls. You get one primary and one optional secondary IP, as IPv4 or IPv6, and an IP cannot be shared with another customer. Holdings, positions, funds and candles are not restricted.

You may change the IP once per calendar week, and a change invalidates your tokens, so log in again. Run the bot at home only if your provider gives that line a static IP, or rent a server. Backtests and paper trading send no orders, so they need no static IP. This is a summary, not legal advice.

Can you paper trade with the Upstox API?

The official Upstox SDK has a sandbox setting that uses its own sandbox token. Which endpoints it supports, and how it differs from live, is not confirmed. Use it for order-flow and error tests, not for fills or strategy results.

For strategy results, Super Algo Kit uses its own paper trading, which sends no orders to Upstox. Paper first, live only when you say.

Upstox API limits and costs to plan for

These are Upstox's published limits as the kit read them on 30 September 2026. API and data fees were not stated in the pages read, so they are not confirmed.

  • Order calls share one budget: 10 a second, 500 a minute, 2,000 per 30 minutes.
  • SEBI-registered algos get 50 order calls a second.
  • Other standard calls: 50 a second, 500 a minute.
  • Going over the limits may lead to a temporary suspension of access.
  • Market orders from algos are reported as rejected, so send limit orders.

What Super Algo Kit does with the Upstox API

The kit builds on the version 3 order API, because older version 2 examples still circulate. Your agent never holds your live keys or places live orders.

  • Waits in a clear state until a human approves today's token.
  • Protects the token notifier address with authentication and HTTPS, and keeps tokens out of logs.
  • After a timeout, matches the order book on tag before any resend.
  • Paces order messages at 5 to 8 a second, the kit's own setting.
  • Expects every stored token to be invalid after a static-IP change.
  • Adds an independent risk gate and a kill switch you can run yourself.

Before you rely on it

Gotchas to plan for.

  • One budget covers place, modify, cancel, multi-order and GTT calls.
  • A static-IP change logs out your tokens, and you can change it once a week.
  • The token reportedly ends at 03:30, earlier than Zerodha's 06:00 and Angel One's midnight.
  • A login code works once, even if the token swap fails, so a failed swap needs a new login.
  • A redirect address that ends in .php or a similar extension may be blocked; use a plain path.
  • Algo market orders are reported as rejected; confirm the rule before release.

FAQ

Upstox: questions.

Can I automate Upstox API login?

Not through the standard flow, because Upstox says all logins happen on its own site. A TOTP token method is reported, but the kit has not read its terms and does not use it. Super Algo Kit uses the semi-automated or manual path, so a human approves each day.

Does Upstox have a sandbox for paper trading?

Yes, the official Upstox SDK has a sandbox setting with its own token, but its supported endpoints are not confirmed. Use it for order-flow tests, not strategy results. Super Algo Kit's own paper trading sends no orders and needs no static IP.

What are the Upstox API rate limits for orders?

For regular algos, Upstox order calls share 10 a second, 500 a minute and 2,000 per 30 minutes. SEBI-registered algos get 50 a second. Super Algo Kit paces order messages at 5 to 8 a second, its own setting.

Do I need a static IP for Upstox API orders?

Yes. Since 1 April 2026, Upstox rejects order calls from unregistered IPs, and changing the IP logs out your tokens. Super Algo Kit blocks a live release until your IP is registered; paper runs need none.

Is Super Algo Kit affiliated with Upstox?

No. Super Algo Kit is not affiliated with or endorsed by Upstox. The name is used only to say the kit works with the Upstox Developer API. You use your own Upstox account and app.

Keep reading

More guides.

Upstox Developer API and its logo are trademarks of their owner, used here only to say that Super Algo Kit can work with it. Super Algo Kit is not affiliated with or endorsed by Upstox. Super Algo Kit is development software. It is not investment advice, a signal service or a promise of performance. Trading involves substantial risk, including the loss of all capital you trade with.