Introduction
Connecting your OKX exchange account to 3Commas unlocks advanced trading automation. This guide covers two methods: Fast Connect (instant setup) and manual API key creation (custom permissions). We'll also address common issues like Futures trading activation and balance discrepancies.
Method 1: Fast Connect Setup
Step-by-Step Guide
Navigate to My Portfolio
- Visit the 3Commas My Portfolio page.
- Click Connect a new account or Connect exchange if this is your first connection.
Select OKX
- From the exchanges list, choose OKX and click Connect OKX.
Log In to OKX
- You'll be redirected to OKX’s login page. Sign in or create a new account.
Approve Connection
- After logging in, authorize the API link between OKX and 3Commas.
Confirmation
- Both OKX Spot and Futures accounts will now appear in 3Commas (if Futures are enabled).
👉 Need help enabling Futures trading?
Method 2: Update Connection via Fast Connect
Steps to Refresh API Keys
Delete Old Keys
- Go to OKX’s API Management page and remove outdated keys.
Initiate Update
- On 3Commas, click Update API Key on your OKX exchange card.
Reconnect
- Select Fast Connect > Reconnect and repeat the login/approval process.
Important Notes:
- Changing OKX security settings (2FA, password) invalidates API links. Wait 24 hours before reconnecting.
- Avoid IP whitelisting for seamless updates.
Method 3: Manual API Key Creation
Detailed Instructions
Access API Settings
- Hover over your OKX profile icon and click API.
Enable 2FA
- If prompted, set up two-factor authentication (required for API access).
Create a New Key
- Click Create APIs, name the key (e.g., "3Commas Bot"), and select Linking third-party apps > 3Commas.
Set Permissions
- Choose Trade permissions and enter a secure passphrase (save this—it’s required for 3Commas).
Finalize
- Submit, confirm with 2FA, and note the generated API Key and Secret.
How to Enable Futures Trading on OKX
Quick Steps
- Visit OKX’s Contracts & Margin Trading page.
- Click Upgrade for trading and select Single-currency margin mode (only mode supported by 3Commas).
- Confirm to activate Futures.
FAQs
Why can’t I close my OKX position?
Copy Trading Lead accounts restrict closing orders to market price only. Bots may not function correctly with these accounts.
What does "Balance limit reached" mean?
Your trade size exceeds OKX’s leverage limits. Reduce the position size or adjust leverage.
Why is my OKX balance incorrect on 3Commas?
Funds must be in the Trading Account. Transfer assets from Funding/Margin accounts via OKX’s Assets > Transfer.
How do I transfer funds to my Trading Account?
Go to Assets > Transfer, move funds from Funding to Trading Account. Only Trading Account balances are accessible for Spot trades.
Final Notes
- Use Fast Connect for speed or manual API keys for granular control.
- Keep passphrases secure and avoid IP whitelisting.
- For persistent issues, wait 24 hours after security changes before reconnecting.
Need more help? Explore our comprehensive exchange integration guide!