Guide · India · comparison

Zerodha, Angel One, Upstox, Dhan and FYERS: broker APIs compared

Most Indian traders choose a broker first and discover its API later. Here is how five of the APIs we build on compare on the things that shape a trading system, taken from each broker’s own documentation and checked in October 2026. Brokers change these figures, so check the official docs before you build.

The short answer

Every one of these brokers needs a fresh login each trading day, and the clearest difference is the published order limit: Angel One allows 20 orders a second, the others 10, with Upstox allowing 50 for SEBI-registered algos. Moving brokers for an API is rarely worth it; check your own broker’s limits against your busiest moment instead.

Side by side

Zerodha (Kite Connect)Angel One (SmartAPI)UpstoxDhan (DhanHQ v2)FYERS (API v3)
SessionDaily login; token expires 6 AM next daySession login (see docs)OAuth 2; token valid until 3:30 AM next day; a new token revokes the old oneAccess token valid 24 hoursAccess token expires daily at 6:30 AM; FYERS notes refresh tokens are being discontinued
Order limits10 per second, 400 per minute, 5,000 per day20 per second, 500 per minute, 1,000 per hour10 per second, 500 per minute, 2,000 per 30 minutes (50 per second for SEBI-registered algos)10 per second, 250 per minute, 1,000 per hour, 7,000 per day10 orders per second; async order calls are queued to that pace
Data limitsQuotes 1 per second; historical 3 per secondPrices 10 per second; historical 3 per secondOther APIs 50 per second, 500 per minuteData 5 per second, 100,000 per day; quotes 1 per secondAll APIs: 10 per second, 200 per minute, 100,000 per day (FYERS Prime: 600 per minute, 200,000 per day). Blocked for the day after exceeding the per-minute limit more than 3 times
Order changesUp to 25 modifications per orderModify and cancel: same limits as placingIncluded in the combined order limitsUp to 25 modifications per orderSee docs
StreamingWebSocketWebSocket prices and order statusSee docsSee docsData, order and tick-by-tick WebSockets; order webhooks

For US and global brokers and crypto exchanges in the same format, see our broker API comparison.

What all five have in common

SEBI’s framework for retail algorithmic trading applies to every one of them: API access through a unique key and a static IP the broker has whitelisted, OAuth sign-in with two-factor authentication, and tagging of every API order, with exchange registration for algos that send more than 10 orders a second. Our guide to SEBI’s retail algo rules explains each one.

What actually decides the choice

  • The account you already have. Moving brokers for an API is rarely worth it unless a limit below rules your strategy out.
  • Bursts of orders. A multi-leg options entry across several instruments can hit a per-second limit even when the daily total is small. Check the per-second and per-minute figures against your busiest moment.
  • Data needs. Strategies that poll quotes or pull a lot of history are limited sooner than ones that stream prices. Streaming, where offered, is the better design.
  • The daily login. Every broker here needs a fresh session each day. Plan the routine before the market opens, and make the system refuse to trade without a valid session.

We build on all four, and more: see Kite Connect development and Indian broker API integration. For how we approach a full build, see custom algorithmic trading software.

Common questions

Which Indian broker API is best for algo trading?
There is no single best one. All four here support automated trading within SEBI’s framework. The right choice usually follows the broker you already trade with, then the details that matter for your system: how many orders it sends in a burst, how much historical and quote data it needs, and how the daily login fits your routine.
Why does my broker API need a new login every day?
Indian broker sessions are short by design. Zerodha’s access token expires at 6 AM the next day, FYERS’s at 6:30 AM and Upstox’s at 3:30 AM; Dhan’s access token lasts 24 hours. A live system needs a quick daily login routine and should stay idle until it has a valid session.
Do these APIs need a static IP?
Under SEBI’s framework for retail algorithmic trading, brokers allow API access only through a unique API key and a static IP they have whitelisted. Our guide to SEBI’s retail algo rules explains what that means in practice.
start here

Tell us your market, your broker, and what you want automated.

Send us the requirement. We'll come back with the questions that turn it into a real scope, cost and timeline, usually within one working day.

Send us your brief

A few lines is enough to start: your rules in plain words, or a link to your script. We'll ask for the rest.