Skip to content

Updated

Crypto exchange API IP whitelist:
give your trading bot one stable exit (Kraken, OKX, Binance)

  1. To whitelist an IP on a crypto exchange API key: on the Proxy302 per-GB static IP order page, tick “Opens crypto exchanges” so you only get IPs we have tested to open exchange sites and APIs; in My proxies click Lock this line so the system does not swap it automatically; add the line's exit IP to the IP whitelist in the exchange's API management, and route both REST and WebSocket traffic of your bot through the proxy.
  2. Per GB costs US$3.50 and generating is free.
  3. Which exchange you can use, and from which country, is set by the exchange's rules and your KYC; a proxy does not change that.

Check it right after buyingExample output

curl -x http://USER:PASS@HOST:PORT https://ipinfo.io/json

ip
203.0.113.24
country
US
Matches the country you picked
Day 15
203.0.113.24
Same address for the whole term
Example addresses (203.0.113.0/24), not real exits
01 / 05Why exchange API keys should be bound to an IP

Give your trading program an exit that can open exchanges, then put that exit in the API key's IP whitelist.

Why exchange API keys should be bound to an IP

A leaked API key lets anyone trade with it. With an IP whitelist the key only works from the addresses you registered. Kraken's API docs put IP whitelisting first in their security practices and say it prevents almost all key misuse even if the key is leaked.

OKX lets each API key bind up to 20 IP addresses, and keys with trade or withdraw permission and no bound IP expire after 14 days of inactivity. Binance's API management also has an option to restrict a key to trusted IPs.

That is why trading programs break when their exit IP moves: a home line gets a new address, a cloud server moves, the whitelist no longer matches and the strategy stops. Give the program its own exit and whitelist it once; you can move computers or servers without touching the exchange settings.

Recommended setup

Recommended setup
ItemChooseWhy
ProductPer-GB static residential ISPTrading bots use little traffic, so per GB costs less; generating is free
Option“Opens crypto exchanges”You only get IPs we have tested to open exchange sites and APIs; lines without it work as before
LockClick Lock this line after generatingThe system will not swap the line automatically, so the whitelist keeps matching; if it breaks you swap it yourself and update the whitelist
CountryA country your exchange account is allowed to useExchanges have their own regional rules; choose by your account and KYC
ProtocolHTTP or SOCKS5Match your software; ccxt supports both

Per GB costs US$3.50; 0.01 PTC in the wallet is enough to generate (1 PTC = US$1). Per-GB exits are not reserved for one customer long term.

Set it up in 4 steps

  1. Generate an exchange-ready IP

    Open the static residential ISP order page, set Billing to Per GB, pick the country and protocol, tick “Opens crypto exchanges”, set the quantity to 1 and confirm.

    Expected result The new line appears in My proxies.

  2. Lock the line

    In My proxies, find the line and click Lock this line.

    Expected result The line shows Locked.

  3. Check the exit IP and whitelist it

    Open ipinfo.io through the proxy and note the exit IP. In the exchange's API management, edit the key and add this IP to its IP whitelist (OKX calls it binding an IP).

  4. Route the bot through the proxy

    Set the proxy for both REST and WebSocket; with only one set, market-data streams leave from your own IP. See the guide below for ccxt and Freqtrade.

FAQ

What if the line breaks?

A locked line is not swapped automatically. Swap it yourself in My proxies (with “Opens crypto exchanges” ticked again), then update the IP whitelist with the new exit IP. You can whitelist a spare IP in advance.

Can one key be bound to several lines?

Yes, up to the exchange's limit, for example 20 IPs per key on OKX. When several servers run the same strategy, give each its own line and whitelist all of them.

Does a proxy let me use an exchange from any country?

No. Exchanges decide which regions can open accounts and trade, and they manage accounts through KYC. Choose a country your account is already allowed to use.

Why tick “Opens crypto exchanges”?

Not every static IP can open exchange sites and APIs. With the option ticked you only get IPs we have tested, so you do not have to try them one by one. Opening the site does not guarantee the platform's account checks.

Can I use the option with per-IP static IPs?

The same option is coming to per-IP static IPs soon. Until then, use per-GB static IPs with “Opens crypto exchanges” ticked for exchange work.

Further reading

Setup guides Proxy302 publishes on GitHub on the same topic:

Reference links

3
  1. Kraken API docs: API keys, security best practices

    Official documentation · Confirmed on:

    Kraken recommends locking each API key to the IP addresses the trading system runs from, and separate keys per purpose.

  2. OKX API v5 docs: API key security

    Official documentation · Confirmed on:

    Each OKX API key can bind up to 20 IP addresses (IPv4/IPv6 and ranges); keys with trade or withdraw permission and no bound IP expire after 14 days of inactivity.

  3. Proxy302 product fact sheet, per-GB order page and My proxies

    Product observation · Confirmed on:

    Per-GB static residential ISP: US$3.50 per GB, generating is free, up to 500 exits per order, exits not reserved for one customer; the Opens crypto exchanges checkbox on the per-GB order (link parameter exchange=1) assigns only IPs tested to open exchange sites and APIs; Lock this line in My proxies stops automatic swaps of a static line.

Ready to try it?

Create an account, top up once, then pick rotating residential, static ISP or datacenter IPs and have one running in your browser within minutes.