Indian Broker Automation Guides
How to automate trading with Indian brokers such as Zerodha, Angel One, Upstox and Dhan through their official APIs, and what SEBI’s rules mean for your own account.
Each broker gives developers its own API. Zerodha has Kite Connect, Angel One has SmartAPI, and Upstox and Dhan publish their own. They differ in how you log in, how long a session token lasts, which order types they accept and how many requests they allow per second. A Kite Connect access token, for example, expires every day, so a bot that worked yesterday can fail this morning until it logs in again.
The guides here cover the Python code for login, market data and orders, the errors people hit most often and the rules for retail algo trading in India. SEBI’s framework for retail algos, in force at every broker from 1 April 2026, adds steps such as a registered static IP for API orders. Read these before you connect a live account, and test every rule on paper or with the smallest quantity first.
If you want signals from TradingView or Telegram placed on your broker account, see the TradingView to Indian broker copier. For a strategy built to your own rules, see Indian stock market automation. Trading in equity and F&O carries risk of loss, and automation does not remove it.