Angel One SmartAPI wins on cost (₹0/month vs ₹4,720/month) and free historical data access (5 years vs Zerodha’s paid Historical API). Zerodha Kite Connect wins on ecosystem maturity — the official kiteconnect Python SDK is more stable, better maintained, and has India’s largest algo-trading community. For beginners and cost-conscious traders: choose Angel One SmartAPI. For production-grade, high-reliability systems: Zerodha Kite Connect is worth the premium.
📋 Table of Contents
1. API Overview & Eligibility
Both Zerodha Kite Connect and Angel One SmartAPI are official REST + WebSocket broker APIs for retail algorithmic traders in India. They enable order placement, live tick streaming, historical OHLCV data retrieval, and portfolio management — fully compliant with SEBI’s framework for personal API-based trading.
| Feature | 🟠 Zerodha Kite Connect | 🟢 Angel One SmartAPI |
|---|---|---|
| API Type | REST + WebSocket (Kite Ticker) | REST + WebSocket (SmartStream) |
| Official Python SDK | ✅ kiteconnect (PyPI) | ✅ smartapi-python (PyPI) |
| Eligibility | Any active Zerodha account holder | Any active Angel One account holder |
| Markets Supported | NSE, BSE, NFO, BFO, MCX, CDS | NSE, BSE, NFO, MCX, CDS |
| Sandbox / Paper Trading | ❌ No official sandbox | ✅ Official sandbox WINNER |
| Documentation Quality | ⭐⭐⭐⭐⭐ Excellent | ⭐⭐⭐⭐ Good, improving |
| Community | Largest — TradingQ&A 100k+ posts WINNER | Growing SmartAPI community |
2. Fee Structure Deep-Dive
This is the sharpest divergence between the two platforms. Zerodha monetizes API access aggressively; Angel One offers a completely free API ecosystem.
| Component | 🟠 Zerodha Kite Connect | 🟢 Angel One SmartAPI |
|---|---|---|
| Connect API (Order Placement) | ₹2,000/mo + GST = ₹2,360/mo | ₹0 FREE |
| Historical Data API | ₹2,000/mo + GST = ₹2,360/mo | ₹0 FREE |
| Live WebSocket (Ticker/SmartStream) | ₹0 (included with Connect) | ₹0 |
| Total Monthly API Cost | ₹4,720/month | ₹0/month WINNER |
| Annual API Cost | ₹56,640/year | ₹0/year SAVES ₹56,640 |
| Intraday Equity Brokerage | ₹20/order or 0.03% (lower) | ₹20/order or 0.25% (lower) |
| F&O Brokerage | ₹20/order flat | ₹20/order flat TIE |
3. Rate Limits & Order Throughput
Exceeding rate limits triggers HTTP 429 errors causing missed orders — catastrophic in live trading. Understanding real-world limits is essential before deploying any algo strategy.
| Limit Type | 🟠 Zerodha Kite Connect | 🟢 Angel One SmartAPI |
|---|---|---|
| Order Placement per second | 10 orders/sec WINNER | ~5 orders/sec |
| REST API calls per second | 10 req/sec | 25 req/sec WINNER |
| REST API calls per minute | ~600 req/min | ~1,500 req/min WINNER |
| WebSocket subscriptions | 3,000 instruments WINNER | 1,000 instrument tokens |
| WebSocket connections per key | 1 concurrent | 1 concurrent TIE |
| Historical data requests/sec | 3 req/sec | 3 req/sec TIE |
| Login automation | Requires browser redirect | Full TOTP via pyotp WINNER |
Production Rate Limit Handler (Python)
import time
import threading
from collections import deque
class RateLimiter:
"""Token-bucket rate limiter compatible with both Zerodha & Angel One."""
def __init__(self, calls_per_second: int = 10):
self.calls_per_second = calls_per_second
self._lock = threading.Lock()
self._calls = deque()
def wait(self):
with self._lock:
now = time.monotonic()
while self._calls and now - self._calls[0] > 1.0:
self._calls.popleft()
if len(self._calls) >= self.calls_per_second:
sleep_time = 1.0 - (now - self._calls[0])
if sleep_time > 0:
time.sleep(sleep_time)
self._calls.append(time.monotonic())
# Initialise per-broker limiters
zerodha_limiter = RateLimiter(calls_per_second=10)
angel_limiter = RateLimiter(calls_per_second=25)
def safe_place_order(client, params, limiter):
limiter.wait()
return client.place_order(**params)
4. WebSocket Market Data Streaming
WebSocket streaming is the backbone of any intraday algo system. Both brokers provide full-duplex streaming but differ in protocol, capacity, and auto-reconnect behaviour.
Zerodha KiteTicker — Binary Protocol, 3,000 Instruments
KiteTicker uses a binary (not JSON) protocol for maximum throughput. Supports LTP (6 bytes/tick), Quote (OHLC + L1 depth, 44 bytes/tick), and Full (20-level market depth, 492 bytes/tick). Built-in auto-reconnect logic handles disconnections.
from kiteconnect import KiteTicker
ticker = KiteTicker("your_api_key", "your_access_token")
tokens = [408065, 738561] # NIFTY 50, RELIANCE
def on_ticks(ws, ticks):
for tick in ticks:
print(f"Token: {tick['instrument_token']} | LTP: Rs{tick['last_price']:.2f}")
def on_connect(ws, response):
ws.subscribe(tokens)
ws.set_mode(ws.MODE_FULL, tokens) # 20-level depth
def on_error(ws, code, reason):
print(f"Error {code}: {reason}")
ticker.on_ticks = on_ticks
ticker.on_connect = on_connect
ticker.on_error = on_error
ticker.connect(threaded=True)
Angel One SmartStream — JSON WebSocket, 1,000 Instruments
SmartStream uses JSON messages and supports LTP (mode 1), Quote (mode 2), and SnapQuote/Depth (mode 3). Reconnect logic must be implemented manually.
from SmartApi.smartWebSocketV2 import SmartWebSocketV2
sws = SmartWebSocketV2(AUTH_TOKEN, API_KEY, CLIENT_CODE, FEED_TOKEN)
token_list = [
{"exchangeType": 1, "tokens": ["26000", "26009"]} # NIFTY, BANKNIFTY
]
def on_data(wsapp, message):
print(f"Token: {message['tk']} | LTP: {message['ltp']}")
def on_open(wsapp):
sws.subscribe(
correlation_id="pulse_stream",
mode=1, # 1=LTP, 2=Quote, 3=SnapQuote
token_list=token_list
)
sws.on_message = on_data
sws.on_open = on_open
sws.connect()
5. Historical Data Access
| Feature | 🟠 Zerodha Kite Connect | 🟢 Angel One SmartAPI |
|---|---|---|
| Cost | ₹2,360/month PAID | ₹0 FREE |
| 1-minute candles (max depth) | 60 days rolling WINNER | 30 days rolling |
| Daily candles (max depth) | ~5.5 years | 5 years SIMILAR |
| Intervals | 1min, 3min, 5min, 10min, 15min, 30min, 60min, day | Same set as Zerodha TIE |
| All NSE/BSE/NFO/MCX instruments | ✅ Yes | ✅ Yes TIE |
6. Python Code: Full Production Setup
"""Zerodha Kite Connect — install: pip install kiteconnect pandas"""
import pandas as pd
from datetime import datetime, timedelta
from kiteconnect import KiteConnect
kite = KiteConnect(api_key="YOUR_API_KEY")
print(kite.login_url()) # Open in browser, grab request_token
request_token = input("Paste request_token: ")
data = kite.generate_session(request_token, api_secret="YOUR_SECRET")
kite.set_access_token(data["access_token"])
# Historical 15-min candles (paid — requires Historical API subscription)
hist = kite.historical_data(
instrument_token=256265, # NIFTY 50 NSE
from_date=datetime.now() - timedelta(days=60),
to_date=datetime.now(),
interval="15minute"
)
df = pd.DataFrame(hist).set_index("date")
print(df.tail())
# Place intraday market order
order_id = kite.place_order(
variety=kite.VARIETY_REGULAR,
exchange=kite.EXCHANGE_NSE,
tradingsymbol="RELIANCE",
transaction_type=kite.TRANSACTION_TYPE_BUY,
quantity=1,
product=kite.PRODUCT_MIS,
order_type=kite.ORDER_TYPE_MARKET
)
print(f"Kite order: {order_id}")
"""Angel One SmartAPI — install: pip install smartapi-python pyotp pandas"""
import pyotp
import pandas as pd
from SmartApi import SmartConnect
obj = SmartConnect(api_key="YOUR_API_KEY")
# Automated TOTP login — no browser required!
totp = pyotp.TOTP("YOUR_TOTP_BASE32_SECRET").now()
session = obj.generateSession("YOUR_CLIENT_CODE", "YOUR_PIN", totp)
feed_token = obj.getfeedToken()
print("Angel One session active")
# Historical data (FREE — no subscription needed)
hist = obj.getCandleData({
"exchange": "NSE",
"symboltoken": "26000", # NIFTY 50
"interval": "FIFTEEN_MINUTE",
"fromdate": "2026-09-01 09:15",
"todate": "2026-10-19 15:30"
})
df = pd.DataFrame(hist["data"],
columns=["timestamp","open","high","low","close","volume"]
).set_index("timestamp")
print(df.tail())
# Place intraday market order
order_id = obj.placeOrder({
"variety":"NORMAL","tradingsymbol":"RELIANCE-EQ","symboltoken":"2885",
"transactiontype":"BUY","exchange":"NSE","ordertype":"MARKET",
"producttype":"INTRADAY","duration":"DAY","price":"0","quantity":"1",
"squareoff":"0","stoploss":"0"
})
print(f"Angel order: {order_id}")
7. Authentication Flows Compared
| Auth Feature | 🟠 Zerodha Kite Connect | 🟢 Angel One SmartAPI |
|---|---|---|
| Token validity | Till 6 AM next trading day | JWT 24 hrs; refresh token auto-renews |
| Fully automated login | ❌ Requires browser redirect | ✅ Full TOTP via pyotp WINNER |
| Headless server deployment | Selenium/Playwright workaround needed | ✅ Native pure-API login WINNER |
| Session invalidation | Re-login invalidates old token | Refresh token maintains session |
8. Reliability, Uptime & Support
| Factor | 🟠 Zerodha Kite Connect | 🟢 Angel One SmartAPI |
|---|---|---|
| Track record | 10+ years, battle-tested WINNER | 6+ years, mature |
| Status page | status.kite.trade | status.angelbroking.com TIE |
| Developer forum | TradingQ&A (100k+ posts) WINNER | SmartAPI community forum |
| GitHub SDK updates | Weekly WINNER | Monthly |
| Third-party tools | Amibroker, Streak, Opstra WINNER | Limited integrations |
9. Final Verdict & Use-Case Matrix
Overall Scores
🏆 Final Verdict
- Your AUM exceeds ₹10 lakh (API cost <1%)
- You need 3,000-instrument WebSocket capacity
- You rely on Streak, Opstra, or Amibroker
- You need the most mature, stable Python SDK
- You require BSE F&O (BFO) market access
- You are a beginner or small-capital trader
- You want zero API fees (save ₹56,640/year)
- You need automated headless server login
- You want a free sandbox for strategy testing
- Your strategy uses fewer than 1,000 live instruments
Related Articles
Frequently Asked Questions
Is Zerodha Kite Connect API free?
No. Zerodha Kite Connect charges ₹2,000 + 18% GST = ₹2,360/month for the Connect API and ₹2,360/month for Historical Data. Total minimum cost: ₹4,720/month or ₹56,640/year.
Is Angel One SmartAPI completely free?
Yes. Angel One SmartAPI is 100% free with zero subscription fees for order placement, historical OHLCV data (up to 5 years), real-time WebSocket streaming, and market depth data.
Which API is better for Python beginners in algo trading?
Angel One SmartAPI is better for beginners: it’s free, has an official sandbox environment, and supports fully automated TOTP login with pyotp — eliminating the browser dependency that makes Zerodha difficult to deploy on headless servers.
What are the WebSocket instrument subscription limits?
Zerodha KiteTicker supports up to 3,000 instrument subscriptions per WebSocket connection. Angel One SmartStream supports up to 1,000 instrument tokens per session. Both allow only one concurrent WebSocket connection per API key.
Can I run both Zerodha and Angel One algos simultaneously?
Yes. You can maintain active accounts and API keys with both brokers and route different strategies through each. For example, use Angel One for backtesting (free data) and Zerodha for live execution (stable SDK) — though this requires active brokerage accounts with both.