When OKX makes sense
Symbol coverage Bybit and Binance don't have
Deep liquidity on majors
BTC-USDT and ETH-USDT order books are deep and tight. Comparable to Bybit on majors.Alternative second venue
Multi-venue diversification
OKX’s unique setup requirement: the passphrase
The passphrase is not your account password. It’s a per-API-key extra credential — a kind of second secret. Conceptually similar to a “salt” you add to the key. It exists to add a security layer: a leaked key + secret without the passphrase still cannot authenticate.Account creation
Sign up at OKX
Verify email and phone
Complete KYC
Enable 2FA
API key creation
Navigate to API settings
Click 'Create API Key'
Set a passphrase
Configure permissions
- ✅ Trade — select.
- ❌ Withdraw — do not select. NEVER enable this.
- ❌ Read-only — actually you do want read access, but in OKX’s UI it’s typically bundled with Trade. Verify the key can read account data.
Set IP allowlist
curl -s https://api.ipify.org from the VPS.Wait 30–60 seconds for propagation after saving.Save the key, secret, AND passphrase
Connecting unCoded to OKX
Open the unCoded Dashboard
Add OKX as an exchange
Paste all three credentials
Save and test
Watch the logs
OKX-specific quirks
Symbol naming uses dashes
Symbol naming uses dashes
BTC-USDT, ETH-USDT, SOL-USDT. Different from Binance/Bybit’s unhyphenated BTCUSDT.The unCoded exchange profile handles this transparently — you specify pairs in the Dashboard and the bot uses the correct format in API calls. No operator action needed.But: if you’re cross-referencing against Binance’s symbols mentally, remember the format difference. BTCUSDT on Binance = BTC-USDT on OKX.The passphrase requirement
The passphrase requirement
Signing scheme
Signing scheme
Rate limits
Rate limits
60 requests per 2 seconds across many endpoint categories. unCoded’s exchange profile reserves headroom and operates well below.If you see rate-limit errors, the bot’s cooldown-and-retry logic handles them automatically. Persistent rate-limit hits indicate a configuration too aggressive for the venue.Sub-account support
Sub-account support
Account modes — Cash, Single-currency margin, Multi-currency margin, Portfolio
Account modes — Cash, Single-currency margin, Multi-currency margin, Portfolio
- Cash mode is the right choice. Pure spot trading.
- The other modes enable margin or futures features the bot doesn’t use.
Troubleshooting OKX-specific
Authentication fails with valid-looking credentials
Authentication fails with valid-looking credentials
- Re-copy the passphrase from your password manager (not from a chat or email).
- Paste carefully — watch for trailing whitespace.
- Save and retest.
Connection works but no orders fire
Connection works but no orders fire
- Kill switch off?
- Pair in active set with the correct OKX symbol format (
BTC-USDT, notBTCUSDT)? - Mode active for the pair?
- Buy conditions actually triggering?
- Min-notional rejections in logs?
- Insufficient balance?
Symbol not found errors
Symbol not found errors
BTCUSDT) when adding the pair, OKX doesn’t recognize it.Fix: in the Dashboard, edit the pair and use OKX’s dash-separated format: BTC-USDT. The bot will then use the correct symbol in API calls.I lost the passphrase
I lost the passphrase
- At OKX, revoke the API key.
- Create a new API key with a new passphrase.
- Save all three credentials (key, secret, new passphrase) immediately.
- Update unCoded Dashboard with the new credentials.
- Restart the TradingBot if needed.
Account is in margin mode but I want spot only
Account is in margin mode but I want spot only