Static IP for TradingView webhook trading
TradingView doesn't place orders with your broker. It sends a webhook alert to a URL you choose, and whatever receives that alert places the order. If the alert goes to a server you run, that server's IP must be registered with your broker. If it goes to a hosted platform such as Tradetron, the platform handles it and you don't need your own IP.
Which case are you?
| Alert goes to | Who places the order | Your own static IP? |
|---|---|---|
| Your own server or PC (Python, Node, OpenAlgo, a bridge) | Your server, through your broker API key | Yes |
| A hosted platform (Tradetron, AlgoTest and similar) | The platform | No |
Things that trip people up
- The webhook comes in; the order goes out. TradingView sends alerts from its own published IPs to your server. That's inbound. The broker checks the outbound order call from your server, which is the IP you register.
- TradingView's timeout. TradingView drops a webhook request that takes longer than 3 seconds, so reply to the alert quickly and place the order after replying.
- Webhooks need 2FA. TradingView requires two-factor authentication on your account to use webhooks.
Give your webhook server a static IP
Your server needs a public address TradingView can reach, so it usually runs on a VPS. If the VPS's own IP is fixed and only yours, you can register that. If not, or if you want the same order IP when you move servers, send the broker calls through a dedicated-IP proxy. For Python broker SDKs, setting HTTPS_PROXY in the bot's process, or passing the SDK's proxy option, is enough; each broker page has the code.
A proxy changes only where your outgoing calls come from. It can't receive the webhook for you, so the server still needs its own reachable address for TradingView.
TradingView static IP: FAQs
Do I need a static IP to use TradingView alerts with Zerodha?
If the alerts go to your own server, which then calls Kite Connect, yes: that server's IP must be registered with Zerodha. If they go to a hosted platform, the platform handles it.
Should I whitelist TradingView's IPs with my broker?
No. TradingView's IPs are what your server may allow in for webhooks. Your broker needs the IP your orders leave from.
Sources
- TradingView: about webhooks
- Zerodha: static IP for Kite Connect
- Tradetron blog: TradingView auto trading in India
- NSE: FAQs on retail algo trading
Get your dedicated static IP
IPv6 ₹50 a month, IPv4 ₹200 a month, plus GST. Live in minutes, whitelisted once.