UTC

Sign up free

Exchange API Security: What to Set Up Before Connecting Binance or OKX to a Quant Platform

Before linking Binance, OKX, Bybit or Bitget to a quant platform like MetisAI: trade-only API permissions, withdrawals off, an IP whitelist and a subaccount.

Why API settings decide how safe your funds are

MetisAI doesn’t hold your funds. It places orders through an API key you create on your exchange. So what really decides how safe your funds are is the key’s permissions. As long as withdrawal permission is off, even if the key leaks, nobody can move your coins out.

Four hard rules

  1. Only enable “Read” and “Trade” (spot/futures as needed). Never enable “Withdraw”.
  2. If the platform provides fixed outbound IP addresses, bind them as an IP whitelist on the exchange. Some exchanges limit how long a key without a whitelist stays valid.
  3. Use a subaccount: open a subaccount on the exchange just for your quant strategies, move in only the funds you’re willing to use for them, and keep it separate from your main account.
  4. One key per platform; don’t reuse keys in several places. Delete keys you no longer use right away.

General setup steps (similar on every exchange)

  1. Log in to the exchange → Account / Profile → API Management.
  2. Create an API key, choose the “System-generated” type, and use the label to note its purpose, for example “MetisAI-Strategy1”.
  3. After completing two-factor verification, set the permissions and whitelist according to the hard rules above.
  4. Copy the API Key and Secret (some exchanges also have a Passphrase) and paste them into MetisAI’s exchange connection page. The Secret is shown only once; never send a screenshot of it to anyone.
Note

Exchange interfaces change often; button names may differ, so go by what you see on the actual page.

What to check after connecting

  • On the exchange’s API management page, confirm that “Withdraw” is not in the permission list.
  • Run one trade on paper trading or with a tiny position first, and confirm the order direction, size and leverage are what you expect.
  • Turn on the exchange’s notifications for logins and API changes.
+

Related reading

  1. 01How to Read a Backtest Report: Annualized Return, Max Drawdown and Sharpe Ratio ExplainedDrawdown first, then Sharpe, then returns. Four metrics that help you filter out 90% of “pretty junk”.
  2. 02Great Backtest, Losing Live? 5 Traps Every Quant Beginner Should KnowOverfitting, look-ahead bias, slippage and fees, regime shifts… how to make backtests and live results line up.
  3. 03From Paper Trading to Live: A 10-Point Checklist Before Launching a Quant StrategyGo through these 10 points before going live and you’ll avoid most basic mistakes.