TraderOps

Guide

Algo trading with the Zerodha and Upstox APIs

Updated November 27, 20262 min read

Yes, both Zerodha and Upstox allow algo trading through their APIs: Zerodha through Kite Connect, Upstox through the Upstox API. Your code logs in, reads prices and places orders the way the broker’s app would. Since 1 April 2026 those orders fall under SEBI’s retail algo rules, which change how you set the code up.

This guide reflects the position in November 2026. Broker plans and charges change often, so confirm on the broker’s own pages before you rely on a number. It is written by THWorks, which runs TraderOps, an execution platform that trades through Indian broker APIs.

What the APIs cost

Zerodha made the Kite Connect order and account APIs free for personal use in March 2025; live and historical market data sit on a paid plan. Upstox does not charge a subscription for API access. Normal brokerage and taxes apply to every order on both, and the static IP the rules now require usually comes from your own server or a third party, at its own cost.

How a strategy connects

  1. Create an app in the broker’s developer console and register your static IP against it.
  2. Log in each trading day: both brokers issue an access token through a login with two-factor authentication.
  3. Stream or fetch prices, compute the signal, and place, modify or cancel orders through the API.
  4. Read fills and positions back, and reconcile them with what the strategy thinks it holds.

What the static IP rule changes

Order requests must come from the IP you registered, so a strategy running on a laptop with a changing home connection no longer works for orders. Most people move it to a small cloud server with a fixed address, or use a provider that supplies one. Upstox allows the registered IP to be changed periodically, not freely, so plan where the code will live before you register.

Where it gets hard

  • Daily login and token refresh, done reliably before the market opens.
  • Rate limits and rejections, which the code has to handle without sending duplicate orders.
  • Keeping a strategy’s view of its positions in line with the broker’s, especially after a crash or restart.
  • Running one strategy on several accounts or brokers, each with its own API and quirks.

Those are the problems TraderOps is built to handle across several Indian brokers. If you need something built for a desk or a fintech, see trading software development.

Questions

What people ask next.

  • Yes, through the Kite Connect API, which has been free for personal order placement since March 2025. Orders must come from a static IP registered with Zerodha, under SEBI’s rules in force since 1 April 2026.

  • Upstox does not charge a subscription for API access; normal brokerage applies to orders. Check Upstox’s own pages for current charges, as broker pricing changes often.

Next step

Tell us what is breaking, and what it costs you.

A scoping call is 30 minutes and gets you a fixed estimate. If we are the wrong people for it, we will say so.

See the work
  • Reply within one business day
  • Fixed price, fixed scope
  • You own the code