Samco API: 403 "The IP is not the registered static IP"
Samco accepts order placement and modification only from the IPv4 addresses whitelisted on your API app. Anything else gets HTTP 403, "The IP is not the registered static IP". Samco gives you a way to see exactly which address it received.
Check with whoami
Samco's GET /ip/whoami returns the source IP Samco sees and whether it matches your registered IP. It doesn't use up your weekly IP change. The Samco dashboard footer also shows "Your IP".
The usual causes
- Your request left over IPv6. Samco accepts only IPv4 in the whitelist, but its API host also has IPv6 addresses. A connection that prefers IPv6 reaches Samco from an address you can't register. Use an IPv4-only exit.
- The SDK isn't using your proxy. Samco's Python SDK,
stocknotebridge, usesurllib3and ignoresHTTPS_PROXY, so setting the environment variable does nothing. Give it a proxy-aware connection pool; the code is on static IP for the Samco Trade API. - Your home IP changed. Samco allows one change every 7 days across your whole account, and deleting an IP counts as a change, so a changing home IP can lock you out for a week.
If you can't add the IP at all
Samco maps a static IP to one Samco client at a time. If another client already registered the address, yours is rejected. Shared proxy pools and VPN exits run into this; a dedicated IP doesn't.
FAQs
Does Samco accept IPv6?
No. Both the primary and secondary IP must be public IPv4 addresses.
Why did my session stop working in the morning?
Samco logs out every API session at 8:00 AM IST. That's not an IP problem; log in again.
Sources
Get your dedicated static IP
IPv6 ₹50 a month, IPv4 ₹200 a month, plus GST. Live in minutes, whitelisted once.