Python Integration — Static IP Proxy
Set the proxy before you import the broker SDK. A late Session.proxies assignment often misses the ticker thread.
Setup
import os
os.environ["HTTP_PROXY"] = "http://USER:PASS@HOST:443"
os.environ["HTTPS_PROXY"] = os.environ["HTTP_PROXY"]
Exit-IP test
import requests
print(requests.get("https://api.ipify.org", timeout=8).text)
Errors
- IP not whitelisted — origin mismatch
- Jio timeout — you used 8088 instead of 443
- 407 — dashboard user/pass, not the broker