Introduction to OKX API Integration
Connecting your OKX exchange account to Good Crypto unlocks powerful trading tools and portfolio management features. This comprehensive guide walks you through two secure methods: OAuth authentication and manual API key setup.
👉 Discover advanced trading strategies with OKX integration
Method 1: OAuth Connection (Recommended)
Why Choose OAuth?
- Enhanced security: Automatically whitelists Good Crypto's server IPs
- Time-saving: No manual permission configuration needed
- Automatic updates: Maintains connection without periodic key renewal
Step-by-Step OAuth Setup
- Navigate to Settings > Exchanges > OKX in Good Crypto
- Select Sign in with OKX
Complete OKX login with:
- Email/phone credentials
- 2FA verification
- Grant Trade permissions when prompted
- Confirm authorization
The connection status will display OK with a green checkmark upon successful linking.
Method 2: Manual API Key Configuration
Step 1: Generate Your OKX API Key
- Log into your OKX account
- Access API Management under profile settings
- Click Create V5 API Key
Step 2: Configure Key Permissions
| Setting | Recommended Value |
|---|---|
| App Name | Select GoodCrypto |
| API Name | Descriptive label (e.g., "GoodCrypto_Trading") |
| Passphrase | Create strong unique phrase |
| Permissions | Enable Read and Trade |
| IP Whitelisting | Automatically applied when selecting GoodCrypto |
Step 3: Secure Your Credentials
- Copy both API Key and Secret Key immediately
- Store credentials in password manager (never in plaintext files)
- Critical: Secret Key displays only once during creation
Step 4: Integrate with Good Crypto
- In Good Crypto, go to Settings > Exchanges > OKX
Choose input method:
- Manual entry of API Key/Secret
- QR code scanning
- Enter your passphrase
- Name your exchange connection
- Validate credentials
Security Best Practices
Essential Protection Measures
- Enable 2FA on both OKX and Good Crypto accounts
- Never share API credentials via unsecured channels
- Regularly audit connected applications
- Disable withdrawal permissions for trading API keys
API Key Management
- Rotate keys quarterly (OKX keys expire after 180 days)
- Monitor for unauthorized activity
- Revoke compromised keys immediately
👉 Maximize your trading security with these pro tips
Frequently Asked Questions
Why can't I see my secret key after creation?
OKX only displays secret keys once during generation for security. If lost, you must create a new key pair.
How often do OKX API keys expire?
Standard API keys remain valid for 180 days. Keys created via OAuth auto-renew when used through Good Crypto.
What permissions are absolutely necessary?
- Read: Portfolio tracking
- Trade: Order execution
Avoid enabling withdrawal permissions unless specifically required.
Can I use one key for multiple applications?
We strongly recommend against this. Create dedicated keys for each service to maintain proper access control.
What should I do if my API key is compromised?
Immediately revoke the key in your OKX account settings and generate a replacement. Contact Good Crypto support if suspicious activity occurs.
Advanced Features with OKX Integration
Portfolio Analytics
Good Crypto provides:
- Historical trade performance visualization
- Cross-exchange balance aggregation
- Customizable reporting tools
Smart Order Types
- Trailing stop orders
- OCO (One Cancels Other) orders
- TWAP (Time Weighted Average Price) execution
Risk Management Tools
- Realized/unrealized P/L tracking
- Exposure alerts
- Customizable stop-loss triggers
Troubleshooting Common Issues
Connection Errors
- Verify correct API permissions
- Check for IP restrictions
- Ensure system clock synchronization
Data Sync Delays
- Large transaction histories may require extended sync time
- Refresh account data manually if needed
- Contact support if delays persist beyond 24 hours
Final Recommendations
- Start with OAuth for simplest setup
- For manual keys, follow our security guidelines strictly
- Regularly review connected applications
- Monitor API usage statistics
- Keep your Good Crypto app updated
By properly configuring your OKX API connection, you unlock powerful trading capabilities while maintaining robust security. This integration provides the perfect balance of convenience and control for both active traders and long-term investors.