OKX Futures Auto-Trading Setup Guide
From OKX API Key/Secret/Passphrase registration to IP whitelist setup and Signal Bot message copying. Guides the core steps to connect OKX Futures to AlertWays and start auto-trading.
1 Register API Key & Passphrase
For security during OKX API setup, Trade Permissionmust be enabled, and withdrawal permissions must remain disabled.
- Required Info: OKX requires the user-set api passphrasealong with the API key and Secret key.
- IP Whitelist:
43.202.226.64Registration Recommended
2 Copy Signal Bot Message
Generated in the AlertWays Dashboard, JSON Messagepaste it exactly into the TradingView Alert window.
{
"exchange": "okx",
"market": "futures",
"mode": "live",
"ticker": "{{ticker}}",
"strategy_position_size": "{{strategy.position_size}}",
"order_action": "{{strategy.order.action}}",
"token": "Unique token copied from Signal Bot"
}
3 Final check in Paper Trading
Before live trading, use OKX Demo Trading environment to verify operation first and minimize risk.
- When an order occurs, Order History Dashboardimmediately check success/failure status at
- If failed, re-check API info (especially API passphrase) and token values in JSON.
"OKX connection is ready. Experience safe and sophisticated auto-trading now."