Static IP for Alice Blue ANT API

Static IP for Alice Blue ANT API

ANT API sessions should leave from one registered IP. A dedicated Mumbai IPv4 avoids ANT blocking a laptop that moved from office fibre to home broadband.

Alice Blue API facts

How to whitelist a static IP

  1. Allocate Algo-IP IPv4.
  2. Save it on the ANT app IP whitelist.
  3. Force HTTP proxy 443 for ANT REST and websocket helpers.

Python / proxy hint

Set proxy env vars before starting the ANT session.

Common errors

ANT login works, orders fail

Login used the proxy; a second thread opened a direct socket. One process-wide proxy setting is safer.

Related guide: broker-ip-address-whitelisting-india. Also see dedicated IPv4, trading proxy and all brokers.

Other broker setups