Static IP for WebSocket Trading
A whitelist match on REST is useless if the ticker connects direct. Brokers then see two origins. Put every socket on the same HOST:443 credentials.
- REST vs WebSocket is two clients, one IP
- Reconnects must reuse the proxy agent
- Keepalive does not replace origin
- Verify ipify through the same process
Python
Export HTTPS_PROXY before starting KiteTicker / SmartAPI WS. A second thread that opens a raw socket will 403.
Node.js
Pass HttpsProxyAgent into the ws constructor. See /integrations/websocket.