EN
Open screener →Screener →
Documentation
API keys

OKX API keys

The key lets bots trade on your OKX account (USDT perpetual swaps). It cannot be used to withdraw funds.

2 min readUpdated
Never enable withdrawals (Withdraw)

ArbiSnake does not accept an OKX key that allows withdrawals. Trading does not need it.

Before you start

  • Sign in to ArbiSnake. We recommend turning on two-factor sign-in (2FA) on the Account page: then an exchange key can be deleted only with a code.
  • Open Settings → API keys and copy the ArbiSnake server IP address — you will need it in the “IP binding” step.
  • Your OKX account mode must be Futures or Multi-currency margin. Spot mode cannot trade swaps, and Portfolio margin has no reduce-only, so keys on those modes are not accepted. Switch the mode in the OKX app: Trade → settings → account mode.
  • ArbiSnake switches the position mode to One-way itself if the account has no open positions or orders. Margin is Cross in every order.

Create the key

  1. Open API managementOn OKX: profile → API → Create API key.
  2. Name the key and set a passphraseFor example, arbisnake. The passphrase is the key's third secret: remember it, ArbiSnake needs it.
  3. Save the keySave the API Key and Secret Key: the secret is shown only once.

Which permissions to give

✓Readrequired ✓Traderequired Withdrawnever

IP binding

In the key's IP address field, enter only the ArbiSnake server IP from the API keys page.

This is required

ArbiSnake does not accept a key without an IP binding. Also, OKX itself disables trading keys without an IP after 14 days of inactivity.

Add the key to ArbiSnake

  1. Settings → API keysPaste the API Key, Secret Key and Passphrase in the OKX row.
  2. Choose your account regionGlobal (okx.com), EEA (my.okx.com) or US / Australia (app.okx.com) — a key works only on its own region's address.
  3. Click “Check on the exchange and save”ArbiSnake checks the key's permissions, IP binding and account mode (read-only, no orders) and shows the available USDT balance.

If the key is rejected

MessageWhat to do
Withdrawals are allowedCreate a new key without Withdraw. It is best to delete the old one on OKX.
The key is read-onlyGive the key the Trade permission.
The account is in Spot or Portfolio margin modeSwitch the account mode to Futures or Multi-currency margin and add the key again.
OKX did not accept the keyCheck the key, secret, passphrase and account region.
Tip

Create a separate key just for ArbiSnake. To disconnect the service, delete this key on OKX or click “Delete key” in ArbiSnake (with a 2FA code if 2FA is on).

Calculators
Crypto Arbitrage CalculatorSpread between exchanges minus fees, funding and transfer costs — what you actually keepLiquidation Price & Leverage CalculatorLiquidation price, distance to it, PnL and risk-based position sizeTriangular Arbitrage CalculatorThree rates on one exchange — does a USDT → BTC → ETH → USDT loop pay after feesFunding Rate CalculatorWhat funding pays per day, month and year on a delta-neutral positionCrypto DCA calculatorWhat you would have if you had bought a coin every week or month — on real prices, plus a SIP projection
Games and quizzes
Arbitrage simulatorA real spread between exchanges: enter with $10,000 at the right moment and exit before the spread is goneTrading simulatorA game on real historical charts: entry, leverage, liquidation — and a result card to shareQuiz: What kind of trader are you?8 questions to find your style: scalper, swing trader, arbitrage trader, investor or degenQuiz: Are you ready for arbitrage?10 questions on spreads, fees, funding and liquidation — with an explanation for each answer
All calculators →