PipLedger
Today's forex newsNFP, CPI, FOMC and other high-impact eventsEconomic calendarCalendar →

Algo trading in India: SEBI's rules, broker APIs and AI trading

Algo trading means letting a program place your orders by fixed rules. In India it's legal for retail traders, through a SEBI-registered broker and under rules SEBI applied to every broker from 1 April 2026. Here's how those rules work, which broker APIs you can build on and what they cost, what's possible in currency trading, and what AI trading tools can and can't do.

By M. A. Horaira. Updated 4 October 2026. 6 minute read.

What algo trading is

An algorithm, or algo, is a set of rules turned into code: when this happens, buy this much; when that happens, sell. The program watches prices and sends orders to your broker by itself, through an API (application programming interface). It can be a simple rule, such as buying at a moving-average crossover with a fixed stop, or a complex model. What it can't do is make a losing idea profitable; it only follows the idea faster and without hesitation.

SEBI's rules for retail algo trading

SEBI's circular of 4 February 2025, "Safer participation of retail investors in Algorithmic trading", set the framework, and NSE's implementation standards of 5 May 2025 filled in the details. After a phased rollout, it applies to all stock brokers from 1 April 2026. The main points:

SEBI had warned years earlier, in June 2022, about unregulated platforms offering algo strategies: "These platforms are unregulated and thus there is no investor grievance redressal mechanism covering their activities." Brokers are also barred from advertising the past or expected returns of algos.

Algo trading platforms in India: broker APIs

If you write your own code, usually in Python, you connect it to your broker's API. Here's what the main ones cost:

From each broker's own API pages on 4 October 2026. Static IP rules apply at all of them from April 2026.
Broker APICostNotes
Zerodha Kite ConnectPersonal API free; Connect ₹500 a monthThe free version places orders but has no live or historical market data
Upstox APIFreeUpstox says all trading and data APIs are free
Dhan (DhanHQ)Trading APIs free; data API ₹499 a month plus tax
Fyers APIFreeExtended limits with Fyers Prime; up to 100,000 requests a day on the free tier

Ready-made platforms that let you build strategies without code also exist. Under the framework, the provider has to be empanelled with the exchanges and work through your broker, so check both before you connect one, and never share your login or password with a platform.

Trading automation software: what's legal and what isn't

Where automated trading fits within Indian rules
ToolLegal for Indian residents?
Your own code on a SEBI-registered broker's API (NSE, BSE)Yes, under SEBI's algo rules
An exchange-empanelled algo provider working through your brokerYes
A 'copy my trades' Telegram group or a platform promising fixed returnsNo: unregistered advice, and the kind of offer SEBI warns about
An EA on an offshore MT4 or MT5 forex accountNo: trading forex with overseas brokers isn't allowed, and MetaTrader is on RBI's Alert List

Algo trading in forex from India

The legal market is currency derivatives on NSE. You can automate USDINR, EURINR, GBPINR and JPYINR futures and options through a broker API, but those rupee pairs are for hedging a real currency exposure under RBI's rules. EURUSD, GBPUSD and USDJPY contracts have no such purpose restriction, but few brokers offer them; Zerodha, for one, offers only the rupee pairs. NSE's currency segment runs from 9:00 to 17:00 IST for rupee pairs. The USDINR page has the contract details, and the legal forex brokers lists who offers the segment.

Expert advisors on MetaTrader are a different world: see the forex EA guide. With prop firms, where the accounts are simulated, EA rules vary by firm.

AI forex trading: what's real

AI in trading mostly means machine-learning models that look for patterns in past data, or language models that summarise news. They can help with research, testing ideas and writing code. They can't see the future. The US CFTC puts it bluntly: "AI technology can't predict the future or sudden market changes", and "Scammers claim AI-created algorithms can generate huge returns—sometimes tens of thousands of percent—or yield 100 percent 'win' rates."

Before you automate anything

  1. Prove the strategy by hand or in a backtest first, with real costs.
  2. Use only your broker's official API or an exchange-empanelled provider.
  3. Build in a kill switch: a daily loss limit after which the code stops trading.
  4. Start small, and log every order so you can compare live results with the test.
  5. Keep your API keys private, and watch the first days of live trading closely.

Quick answers

Is algo trading legal in India?

Yes, through a SEBI-registered broker and under SEBI's retail algo framework, which applies to all brokers from 1 April 2026. Every algo order is tagged by the exchange, and your broker is responsible for it.

Do I need SEBI approval to run my own algo?

Not if it sends 10 orders per second or fewer per exchange segment. Above that threshold the algo has to be registered with the exchange through your broker. You'll also need a static IP registered with the broker.

What is the best algo trading platform in India?

It depends on what you need. Upstox and Fyers offer free APIs, Dhan's trading APIs are free with paid data, and Zerodha's Kite Connect with data costs ₹500 a month. Ready-made platforms must be empanelled with the exchanges.

Is AI forex trading real?

AI tools can help research and test strategies, but they can't predict markets. Regulators such as the US CFTC warn that bots promising huge or guaranteed returns are a common scam.

Can I do algo trading in forex from India?

Only on Indian exchanges: currency futures and options on NSE through a broker API. Rupee pairs are for hedging a real exposure. Automated trading with offshore forex brokers isn't allowed for residents.

How much does Zerodha Kite Connect cost?

On 4 October 2026, Zerodha's Personal API was free but without market data, and Kite Connect with live and historical data cost ₹500 a month per API key.

More guides

All 41 guides →

हिंदी में पढ़ें: Lot size kaise nikale?, Prop firm challenge kaise pass kare?, Gold trading kaise kare?, Forex trading kya hai, और India में यह legal है या नहीं?

Trading psychology

The habits that decide whether a good strategy makes money.

All 14 trading psychology guides

8 popular prop firms

Well-known firms for forex, gold and index traders that were still operating in 2026. Compare their rules before you buy a challenge.

If a link in this list is a referral link, PipLedger may earn a commission if you sign up, at no extra cost to you. This list is not a recommendation. Programs, prices and rules change often, so check each firm's own site, including its margin and drawdown rules, before you buy a challenge.