Static IP for Angel One SmartAPI

Static IP for Angel One SmartAPI

SmartAPI ties your API key to a registered origin IP. Shared VPNs and daily office IPs fail that check. Use one dedicated IPv4 and send every SmartAPI call through it.

Angel One API facts

How to whitelist a static IP

  1. Allocate an Algo-IP IPv4 after KYC.
  2. In smartapi.angelone.in open your app → IP restriction and save the IPv4.
  3. Configure HTTP proxy port 443 in your SmartAPI Python or Node client.
  4. Generate the session token only after the proxy is on — the login call is also origin-checked.

Python / proxy hint

Pass proxies={"https": "http://USER:PASS@HOST:443"} into the SmartAPI session.

Common errors

SmartAPI IP not whitelisted

Token or order left from the machine IP. Enable the proxy before login, not only before orders.

SmartAPI 403

Wrong IP saved, IPv6 plan used on an IPv4-only field, or WebSocket bypassed the proxy.

Related guide: angel-one-smartapi-ip-whitelisting-guide. Also see dedicated IPv4, trading proxy and all brokers.

Other broker setups