Static IP for the Shoonya (Finvasia) API

Shoonya accepts API requests only from IP addresses registered against your client ID, and the check covers login and every endpoint, not just orders. You can register a primary and a backup IP. Shoonya's main API host is reachable only over IPv4, so a dedicated IPv4 is the straightforward choice.

Last checked against the broker's own docs on 13 November 2026

What Shoonya checks

Shoonya's docs present the IP fields as something you update yourself, while its blog says the IP is changed only through the broker. Neither gives a weekly limit. The blog says immediate family can share one IP with the broker's written consent.

Why IPv4 for Shoonya

The official client sends API and WebSocket traffic to api.shoonya.com, which has no IPv6 address, so an IPv6-only exit can't reach it:

dig +short api.shoonya.com AAAA    # no ipv6 address
dig +short trade.shoonya.com AAAA  # has ipv6

The docs only describe moving the authorize step to trade.shoonya.com for IPv6. With an IPv4 address you don't need to work around that.

How to register your IP

  1. Get a dedicated IPv4 and check its exit address: curl -x http://USER:PASS@HOST:PORT https://ifconfig.co
  2. In Shoonya web, click the profile icon, then API Key Generation.
  3. Enter the address as Primary IP Address, add a Backup IP Address if you have one, and click Update.

Send Shoonya calls through the fixed IP

Use the current OAuth client linked from Shoonya's docs (NorenRestApiOAuth with the repository's api_helper.py). It calls requests directly, so set the proxy variables before logging in:

import os
PROXY = os.environ["PROXY_URL"]  # http://USER:PASS@HOST:PORT
for v in ("HTTPS_PROXY", "HTTP_PROXY"):
    os.environ[v] = PROXY

from api_helper import NorenApiPy
api = NorenApiPy()
access_token, uid, refresh_token, actid = api.getAccessToken(auth_code, secret_code, client_id, uid)
api.injectOAuthHeader(access_token, uid, actid)

The full Shoonya proxy guide on GitHub covers the OAuth steps and troubleshooting.

Shoonya static IP: FAQs

Does Shoonya support IPv6?

The IP fields accept IPv6, and Shoonya says to use trade.shoonya.com in the authorize URL for IPv6. But the main API host, api.shoonya.com, has no IPv6 address, so we recommend a dedicated IPv4.

Is only order placement IP-checked on Shoonya?

No. Shoonya's docs say the IP must be whitelisted before login and before calling any endpoint.

Sources

Get your dedicated static IP

IPv6 ₹50 a month, IPv4 ₹200 a month, plus GST. Live in minutes, whitelisted once.

Get IPv4 · ₹200/mo + GSTGet IPv6 · ₹50/mo + GST

Other brokers

Samco Trade API

Samco accepts API orders only from a whitelisted IPv4. One change per 7 days across your account, one client per IP, and the Python SDK proxy setup.

Zerodha Kite Connect

Zerodha Kite Connect accepts API orders only from a whitelisted IP. The rules, IPv4 or IPv6, where to add the IP, and Python code to route orders through it.

Upstox API

Upstox accepts API orders only from your registered static IP. The rules, IPv4 or IPv6, where to add the IP, and the Python SDK setup that avoids 407 errors.

Angel One SmartAPI

Angel One SmartAPI accepts orders only from your registered static IP, and only IPv4 for now. The rules, how to register the IP, and the Python setup.

Fyers API

Fyers accepts API orders only from the static IP on your Algo trading app. How the new app works, IPv4 or IPv6, and the Python setup for fyers-apiv3.

Flattrade Pi API

Flattrade needs a static IP to create an API key, and both the token and orders must come from it. The rules, IPv4 or IPv6, and the NorenRestApiPy proxy setup.

All 10 brokers