Yes, algo trading is legal for retail traders in India, inside a framework SEBI set out in its circular of 4 February 2025. After two extensions it has applied to all stock brokers since 1 April 2026. It does not ban retail algos; it makes every automated order traceable to a client, a broker and, where one is used, an algo provider.
This is a technical summary, not legal or investment advice, and it reflects the position in November 2026. Rules and exchange standards change, so check the SEBI circular, your exchange’s implementation standards and your broker before you build. It is written by THWorks, which runs TraderOps, an execution platform that places orders through broker APIs.
What the framework requires
| Requirement | What it means in practice |
|---|---|
| API orders count as algo orders | Any order placed through a broker’s API is treated as an algo order and tagged with an exchange-issued algo ID |
| Static IP | Order requests must come from a static IP registered with the broker; other IPs are rejected |
| Client-specific API keys | Keys are issued to you, not shared, and access needs two-factor authentication |
| Registration above a threshold | Algos that send orders faster than the exchange’s orders-per-second threshold must be registered through the broker |
| Brokers are responsible | Brokers must approve the algos they allow and the providers they work with, and can stop them |
Writing your own algo
If you code your own strategy for your own account, you can trade through your broker’s API from your own static IP. NSE’s guidance treats self-coded algos as the case static IPs are meant for: the algo logic runs where the static IP is, on your machine or your own server, not on someone else’s.
Using an algo provider
Platforms that offer ready strategies or run algos for many clients have to be empanelled with the exchange through a broker, and their algos carry their own IDs. Before you connect one to your account, check that it works through your broker under the framework, and that you understand what it can do with your API key.
What this means for a build
- Host the strategy where it can keep a fixed, registered IP, such as a cloud server with a static address.
- Keep order rates under the exchange threshold unless the algo is registered.
- Log every order with its algo ID, so fills and rejections can be reconciled.
- Plan for the broker rejecting orders that break its rules, and alert on it.
Our guide to automating trades on Zerodha and Upstox covers the broker side. If you need a platform built rather than a script, see trading software development.

