Upstox API IP Not Whitelisted — Stop SDK Direct Connections
Upstox origin / IP error even after whitelist? The SDK often opens a direct socket. Force HTTP proxy 443 at process level for REST and market data.
Whitelist path
Upstox developer console → app → allowed IPs. Paste the dedicated Algo-IP IPv4. Confirm IPv6 support in the form; do not guess.
Why the SDK bypasses your proxy
Many official SDKs create their own HTTP adapter. Setting proxies on one requests.Session is not enough if market-data code uses urllib or a WebSocket library with no proxy argument. Export HTTP_PROXY / HTTPS_PROXY for the process, then restart the bot.
Verify before live orders
Call api.ipify.org with the same client the SDK uses. If you see the home WAN, Upstox will too. Setup: /brokers/upstox.