OKX Exchange Setup
Connect your OKX account to SignalBee in minutes. This guide walks you through creating and configuring API keys with the exact permissions needed for automated trading.
Important: OKX requires three values for API authentication: API Key, Secret Key, AND Passphrase. You must save all three when creating your key.
Prerequisites
Before you begin, make sure you have:
- Verified OKX account - Identity verification (KYC) completed
- 2FA enabled on OKX - Required for API key creation
- SignalBee account - Ready to connect an exchange
- Password manager - For storing your API credentials securely (you need to save THREE values)
Security Note: OKX requires 2FA (two-factor authentication) to create API keys. If you haven't enabled 2FA yet, go to Profile → Security in your OKX account.
Understanding OKX Account Modes
OKX offers different account modes for various trading styles. All modes support spot trading with SignalBee:
| Mode | Description | SignalBee Compatibility |
|---|---|---|
| Simple | Spot trading only, beginner-friendly | ✅ Recommended for beginners |
| Single-currency Margin | Margin trading with one currency | ✅ Supported |
| Multi-currency Margin | Cross-margin with multiple currencies | ✅ Supported |
| Portfolio Margin | Advanced combined margin | ✅ Supported |
Tip: For basic spot trading with SignalBee, the Simple mode is recommended. You can change your account mode in OKX under Trade → Account Mode.
Understanding OKX Account Structure
OKX separates funds into different accounts. Funds must be in the Trading account for spot trades:
| Account | Purpose | For SignalBee? |
|---|---|---|
| Funding | Deposits, withdrawals | ❌ Cannot trade from here |
| Trading | Spot, margin, derivatives | ✅ Funds needed here |
How to Transfer Funds to Trading Account
If your funds are in the Funding account:
- Log in to OKX
- Go to Assets → Funding Account
- Click Transfer next to the asset you want to move
- Select Funding Account → Trading Account
- Enter the amount and confirm
Tip: This internal transfer is free and instant.
Creating Your API Key
Follow these steps to create an API key on OKX.
Step 1: Log In to OKX
- Go to www.okx.com
- Log in with your email/phone and password
- Complete 2FA verification
Step 2: Navigate to API Management
- Click your profile icon in the top-right corner
- Select API from the dropdown menu
- You'll see a list of your existing API keys (if any)
Step 3: Create a New API Key
- Click the Create API key button
- Select API trading (for third-party applications like SignalBee)
Step 4: Select API Version
- Select API V5 (the latest version)
- V5 provides the most comprehensive and up-to-date functionality
Step 5: Configure Your API Key
- API Key Name - Enter a descriptive label:
SignalBee Trading - Passphrase - Create a secure passphrase (like a password for your API)
Warning: Save your Passphrase immediately! This is NOT shown again and cannot be recovered. If forgotten, you must delete the API key and create a new one.
Step 6: Set Permissions
Configure the permissions for your API key (see Configuring Permissions section for details):
- ✅ Enable Read - View account info
- ✅ Enable Trade - Place orders
- ❌ Do NOT enable Withdraw - Never needed
Step 7: Complete Security Verification
- Email Verification - Enter the code sent to your email
- Authenticator Code - Enter the 6-digit 2FA code
- Wait for verification to complete
Step 8: Save ALL THREE Values IMMEDIATELY
After verification, OKX displays your API credentials. You MUST save all three:
| Value | Can View Later? | Action Required |
|---|---|---|
| API Key | ✅ Yes | Copy and save |
| Secret Key | ❌ NO - Never shown again | Copy immediately! |
| Passphrase | ❌ NO - You created this | Already saved it, right? |
Warning: If you lose your Secret Key or forget your Passphrase, you'll need to delete this API key and create a new one. There is no way to recover these values.
Save all three values in your password manager now before proceeding.
Configuring Permissions
Configure the correct permissions to balance functionality and security.
Required Permissions
| Permission | Enable? | Why |
|---|---|---|
| Read | ✅ Yes | Allows SignalBee to check your balances, positions, and order history |
| Trade | ✅ Yes | Allows SignalBee to place and cancel spot orders |
Never Enable These Permissions
| Permission | Enable? | Why |
|---|---|---|
| Withdraw | ❌ NEVER | SignalBee never needs withdrawal access. Enabling this is a serious security risk. |
| Internal Transfer | ❌ No | Not needed for SignalBee trading operations |
Security Note: Even if your API key is somehow compromised, funds cannot be withdrawn without withdrawal permissions enabled. This is your most important security protection.
How to Edit Permissions
- In API Management, find your SignalBee API key
- Click the Edit button next to the key
- Modify the permission checkboxes as needed
- Click Confirm
- Complete 2FA verification
IP Whitelist Configuration
IP whitelisting restricts your API key to only work from specific IP addresses. This is optional but adds a strong security layer.
Why Use IP Whitelisting?
| Scenario | Without Whitelist | With Whitelist |
|---|---|---|
| SignalBee places trade | ✅ Works | ✅ Works |
| Attacker tries stolen key | ⚠️ Could work | ❌ Blocked |
Even if your API key is somehow exposed, it won't work from unauthorized IP addresses.
SignalBee Server IP Addresses
Note: Contact support@signalbee.trade to request SignalBee's current production IP addresses for whitelisting. We maintain static IPs specifically for exchange API calls and will notify you before any infrastructure changes.
How to Configure IP Whitelisting
- When creating or editing your API key, find the IP addresses section
- Enter each SignalBee IP address (one per line or comma-separated)
- Click Confirm
- Complete verification
If You Skip IP Whitelisting
If you choose not to use IP whitelisting:
- Leave the IP whitelist empty or select unrestricted access
- Understand this is less secure but still safe if withdrawals are disabled
- Your other security measures (no withdrawal permission) still protect your funds
Adding to SignalBee
Now connect your OKX API key to SignalBee.
Step 1: Go to Exchanges Page
- Log in to your SignalBee account
- Navigate to Exchanges in the main menu
Step 2: Add New Exchange
- Click the Add Exchange button
- Select OKX from the exchange list
Step 3: Enter Your Credentials
OKX requires three fields - this is unique compared to exchanges like Binance:
- API Key - Paste your OKX API key
- Secret Key - Paste your OKX Secret key
- Passphrase - Enter the passphrase you created when making the API key
Warning: The Passphrase is the value you created during API key setup. It is NOT your OKX login password or any other account password.
Step 4: Test the Connection
- Click Save and Test Connection
- Wait for SignalBee to verify your credentials
- Look for the ✅ success message
Step 5: Verify Your Setup
After successful connection:
- Your OKX balances should appear in SignalBee
- Check that your expected assets are listed
- Balances confirm the Read permission is working
Tip: If balances don't appear, verify that funds are in your Trading account (not Funding). See Understanding OKX Account Structure above.
OKX-Specific Considerations
Ticker Format
OKX uses a dash separator in trading pair symbols:
| SignalBee Format | OKX Format | ⚠️ Not This |
|---|---|---|
| BTC/USDT | BTC-USDT | |
| ETH/USDT | ETH-USDT | |
| SOL/USDT | SOL-USDT |
When configuring webhooks or signals, use the OKX format with dashes: BTC-USDT, ETH-USDT, etc.
Note: SignalBee automatically normalizes ticker formats when possible, but using the correct OKX format ensures the best compatibility.
Minimum Order Sizes
OKX enforces minimum order values:
| Typical Minimum | Notes |
|---|---|
| ~$5 USD equivalent | Varies by trading pair |
| Check specific pair | Use OKX trading interface |
Tip: Check OKX's trading rules for current minimum order sizes for specific pairs.
Trading Fees
OKX offers competitive trading fees:
| Fee Type | Standard Rate | VIP Discounts |
|---|---|---|
| Maker | 0.08% | Lower with volume |
| Taker | 0.10% | Lower with volume |
Tip: OKX offers some of the lowest trading fees in the industry. VIP tiers are based on 30-day trading volume and can reduce fees further.
API Rate Limits
- OKX imposes rate limits on API requests (varies by endpoint)
- SignalBee handles rate limiting automatically
- If you see rate limit errors, reduce your signal frequency or check for duplicate webhooks
Troubleshooting
Common OKX-specific errors and solutions:
| Error | Likely Cause | Solution |
|---|---|---|
| "Invalid API Key" | Typo when copying, or key was deleted | Re-copy the API key carefully. Check for extra spaces. Verify key exists in OKX. |
| "Invalid Signature" | Incorrect Secret Key | Re-copy the Secret Key exactly. If lost, delete the API key and create a new one. |
| "Invalid Passphrase" | Wrong passphrase entered | Use the exact passphrase you created when making the API key. If forgotten, create a new API key. |
| "Permission Denied" | Missing required permissions | Enable Read and Trade permissions in OKX API settings. |
| "IP not whitelisted" | API key restricted to different IPs | Add SignalBee's IPs to your whitelist, or remove IP restrictions. |
| "Insufficient Balance" | Funds not in Trading account | Transfer funds from Funding → Trading account (see Account Structure). |
| "Invalid Instrument" | Wrong ticker format | Use dash format: BTC-USDT, not BTCUSDT or BTC/USDT. |
| "Order amount too small" | Order below minimum | Increase order quantity to meet OKX minimums (~$5). |
| "Rate Limit Exceeded" | Too many API requests | Wait and retry. Reduce signal frequency if persistent. |
Connection Test Fails?
If your connection test fails in SignalBee:
- Verify all THREE values - API Key, Secret Key, AND Passphrase must all be correct
- Check the Passphrase - Most common error. This is NOT your OKX login password.
- Wait a few minutes - New API keys may take 1-2 minutes to activate
- Verify permissions - Ensure Read permission is enabled
- Check IP whitelist - Remove IP restrictions temporarily to test
For persistent issues, see our Error Codes Reference or contact support@signalbee.trade.
Security Best Practices
Follow this checklist to keep your OKX account secure:
OKX Account Security
- Enable 2FA with an authenticator app (Google Authenticator, Authy) - more secure than SMS
- Use a unique, strong password for OKX (not reused from other sites)
- Enable anti-phishing code in OKX settings - helps identify legitimate emails
- Enable withdrawal whitelist on OKX - restricts withdrawals to pre-approved addresses only
API Key Security
- Create a dedicated API key just for SignalBee - don't reuse keys across services
- Never enable withdrawal permission - SignalBee never needs it
- Consider IP whitelisting for maximum security
- Never share your Secret Key via email, chat, or screenshots
- Never share your Passphrase - treat it like a password
- Store all THREE credentials in a password manager (1Password, Bitwarden, etc.)
Ongoing Security
- Review your API keys periodically in OKX - delete any you don't recognize
- Rotate API keys every 90 days as a security habit
- Monitor trade history on OKX for any unauthorized activity
- Keep your email secure - it's used for OKX account recovery
Security Note: Even with all these precautions, the most important protection is never enabling withdrawal permissions. Without this permission, your funds cannot be moved off the exchange even if everything else is compromised.
Related Resources
- API Key Best Practices - General API key security guidance
- Security Overview - How SignalBee protects your data
- Error Codes Reference - Common error messages explained
- KuCoin Setup - Similar three-value authentication system