Static IP for Fyers API v3

Static IP for Fyers API v3

Fyers v3 apps store a whitelist IP. If your bot leaves from broadband or a VPS that changed after rebuild, orders fail. Bind the app to an Algo-IP dedicated address.

Fyers API facts

How to whitelist a static IP

  1. Get an Algo-IP IPv4 from the dashboard.
  2. In myapi.fyers.in open the app → IP whitelist.
  3. Route fyers-apiv3 HTTP and socket traffic through proxy port 443.
  4. Complete OAuth while the proxy is already enabled.

Python / proxy hint

Export HTTPS_PROXY before importing fyersModel.

Common errors

Fyers IP whitelist not working

OAuth ran without the proxy, so the token is tied to the wrong origin. Log in again through the static IP.

Related guide: fyers-api-v3-static-ip-setup-guide. Also see dedicated IPv4, trading proxy and all brokers.

Other broker setups