Static IP for API Trading in India: SEBI Compliance Guide

Complete guide to Static IP for API Trading compliance in India. Learn SEBI requirements, implementation steps, and how to get a static IP for secure algorithmic trading.
Table of Contents
Static IP for API Trading in India: Your Complete SEBI Compliance Guide
If you are an algorithmic trader in India using API-based trading systems, understanding Static IP for API Trading requirements is no longer optional — it is mandatory. The Securities and Exchange Board of India (SEBI) has implemented strict regulations requiring all retail traders placing orders through APIs to register a static IP address with their broker. This comprehensive guide walks you through everything you need to know about SEBI's static IP mandate, how to get one, and the best ways to stay compliant.
What is SEBI's Static IP Requirement for API Trading?
In 2023, SEBI introduced a circular mandating that all orders placed via Application Programming Interfaces (APIs) must originate from a pre-registered, whitelisted static IP address. This means if you use platforms like Zerodha Kite Connect, Angel One SmartAPI, Upstox API, or any broker's trading API, your broker must have your static IP on file before you can execute trades.
The regulation was introduced to enhance market surveillance, prevent unauthorized access to trading accounts, and create an audit trail for all API-based orders. Without a registered static IP, your API trading orders will be rejected by the broker's systems.
Key Points of the SEBI Circular
- Mandatory IP whitelisting — Every API trader must register their static IP with the broker
- Order rejection — Orders from non-whitelisted IPs will be automatically rejected
- Multiple IPs allowed — Most brokers allow registering 2-5 static IPs per account
- Applies to all segments — Equity, F&O, commodity, and currency trading via API
- No exceptions — Both institutional and retail API traders must comply
Why Do You Need a Static IP for Algo Trading?
A static IP address is a fixed internet address that doesn't change, unlike dynamic IPs assigned by most ISPs that rotate with every reconnection. For API trading, a static IP serves several critical purposes:
1. SEBI Compliance
The most obvious reason — without a static IP registered with your broker, you simply cannot trade via API. Your orders will be blocked at the gateway level.
2. Security
A static IP creates an additional layer of security. Only orders originating from your registered IP reach the exchange, making it virtually impossible for unauthorized parties to place trades on your behalf even if they somehow obtain your API credentials.
3. Reliability
Dynamic IPs can change unexpectedly, causing your trading system to lose connectivity mid-session. A static IP ensures uninterrupted connectivity, which is crucial for time-sensitive algorithmic strategies.
4. Low Latency
Static IPs, especially when paired with a dedicated VPN connection, can offer consistent low-latency connections to broker servers — a critical factor for high-frequency and scalping strategies.
5. Algo Trading Support
For algorithmic traders who need a dedicated static IP specifically for algo trading platforms, the VPN Premium High Speed plan offers an optional Algo Trading IP add-on at just ₹500/month extra. This provides a dedicated IP whitelisted for API trading, separate from your regular browsing IP. Note that the Algo Trading IP add-on is only available with the Premium plan.
How to Get a Static IP for API Trading in India
There are several ways to obtain a static IP address in India. Each method has its own advantages depending on your trading setup, budget, and technical requirements.
Option 1: Static IP from Your ISP
The simplest approach is to request a static IP from your Internet Service Provider (ISP). Most ISPs like Airtel, Jio Fiber, ACT Fibernet, and BSNL offer static IP add-ons for an additional monthly fee (typically ₹200-500/month). However, this ties your trading to a single physical location.
Option 2: VPN with Dedicated Static IP
A VPN with a dedicated static IP is the most popular choice among algo traders. It offers the flexibility to trade from anywhere while maintaining a consistent IP address. Services like Netspace India provide dedicated VPN connections with Indian static IPs specifically designed for trading use cases.
Benefits of using a VPN for API trading:
- Trade from any location — home, office, or while travelling with a portable travel router
- Consistent static IP regardless of your underlying internet connection
- Encrypted connection for added security
- Multiple device support for monitoring from phone and computer simultaneously
- Failover capability if your primary internet goes down
Option 3: Cloud Server / VPS
For traders running automated strategies 24/7, a cloud server or VPS (Virtual Private Server) provides a dedicated environment with a static IP. Your trading bot runs on the server itself, ensuring minimal latency and maximum uptime. This is ideal for high-frequency strategies but requires technical knowledge to set up and maintain.
Step-by-Step: Setting Up Static IP for Algo Trading
Follow these steps to get compliant with SEBI's static IP requirement:
Step 1: Choose Your Static IP Provider
Select between an ISP static IP, VPN service, or cloud server based on your needs. For most retail algo traders, a VPN with a dedicated static IP offers the best balance of flexibility, cost, and reliability.
Step 2: Obtain Your Static IP Address
Once you subscribe to a service, you will receive your dedicated static IP address. This is the IP that all your trading API requests will originate from.
Step 3: Register the IP with Your Broker
Log into your broker's platform and navigate to the API settings section. Add your static IP to the whitelist. The process varies by broker:
- Zerodha: Go to kite.trade → Apps → Select your app → Add IP whitelist
- Angel One: SmartAPI Dashboard → App Settings → IP Whitelist
- Upstox: Developer Console → App → IP Whitelist
- Fyers: API Dashboard → App Management → Allowed IPs
- Alice Blue: Developer Portal → API Settings → IP Registration
Step 4: Test Your Connection
Before deploying your live strategy, test the API connection from your static IP. Place a few paper trades or use the broker's sandbox environment to confirm everything works correctly.
Step 5: Monitor and Maintain
Keep your static IP subscription active and monitor for any connectivity issues. Set up alerts for disconnections so you can take manual control if your automated system loses connectivity.
Common Challenges and Solutions
Dynamic IP Keeps Changing
If your ISP provides a dynamic IP, use a VPN with a dedicated static IP. This overlay network ensures your broker always sees the same IP regardless of your underlying connection.
Trading from Multiple Locations
Register your VPN's static IP (not your local IP) with the broker. This way, you can connect to the VPN from anywhere — home, office, or while traveling — and your broker sees the same registered IP.
IP Gets Blocked or Changed
Always ensure your static IP subscription is current. If your IP changes due to a service migration, immediately update it with your broker. Keep the old IP registered for a transition period.
Latency Concerns
Choose a static IP provider with servers geographically close to your broker's infrastructure. For NSE/BSE trading, an Indian IP (preferably in Mumbai or nearby data centers) will offer the lowest latency.
Cost Comparison: Static IP Options for Traders
Here is a rough comparison of costs for different static IP solutions:
- ISP Static IP: ₹200-500/month — cheapest but location-locked
- VPN with Static IP: Starting from ₹1,999/month (Standard) or ₹5,000/month (Premium with Algo Trading IP support) — flexible, works from anywhere
- Cloud VPS: ₹1,500-5,000/month — best for 24/7 automated strategies
- Dedicated Server: ₹5,000-15,000/month — maximum performance and control
For most retail algo traders, a VPN with a dedicated static IP provides the best value. You can explore VPN plans with static IP for trading starting from ₹1,999/month (Standard) or ₹5,000/month (Premium with Algo Trading IP at ₹500/month extra).
Key Takeaways
- SEBI mandates static IP registration for all API-based trading — non-compliance means order rejection
- A VPN with dedicated static IP is the most flexible and cost-effective solution for most traders
- Register your static IP with your broker before attempting any API trades
- Choose an Indian IP (preferably near Mumbai) for lowest latency to NSE/BSE
- Always test your connection before deploying live trading strategies
- Keep your static IP subscription active and monitor for connectivity issues
- Consider a cloud VPS for strategies that need to run 24/7 without interruption
Conclusion
SEBI's static IP requirement for API trading is here to stay, and compliance is non-negotiable if you want to continue algorithmic trading in India. The good news is that getting a static IP is straightforward and affordable. Whether you choose an ISP add-on, a dedicated VPN with static IP, or a cloud server depends on your specific trading needs, budget, and technical comfort level.
The most important thing is to act now — register your static IP with your broker, test your setup thoroughly, and ensure your trading infrastructure is compliant before SEBI enforcement tightens further. With the right setup, you can trade confidently knowing your API connections are secure, stable, and fully compliant with Indian regulations.
Shashi Kant Pandidhar
CTO
I’ve been helping businesses to be online for over 15 years. Today my team and I, focus on helping real businesses to overcome real-life challenges and analyse data in a way that can help businesses grow in the right direction of this digital age.