Authorization Steps
- Log in to OKX Official Website
Visit OKX official website and sign in with your account. If you don't have an account, register first. Navigate to API Section
- Click the profile icon in the top-right corner.
- Select "API" from the dropdown menu.
- Click "Apply for V5 API" on the left sidebar.
Create API Key
Recommended method: Bind Third-Party Application- Select "Bind Third-Party Application"
- Choose application name "AICOIN"
- Enter a remark name and password (Note: Keep this password secure)
- Check "Trading" permissions
- Click "Confirm"
- Complete two-factor authentication via email/SMS
Save API Credentials
Copy and securely store your:- API Key
- Secret Key
- Password
- Enter Credentials in AiCoin
Paste these details into the corresponding fields in AiCoin's authorization interface.
👉 Get started with OKX API integration
Detailed Walkthrough
Section 1: Accessing OKX API Portal
- Ensure you're logged into your OKX unified account
- The V5 API supports cross-margin trading and portfolio management
Section 2: API Configuration Best Practices
- Always restrict API keys to "Trade" permissions unless additional access is required
- Set IP whitelisting for enhanced security
- Regularly rotate your API keys (every 30-90 days recommended)
Section 3: Authorization in AiCoin
- Open AiCoin PC client
- Navigate to: Settings > Exchange Connections
- Select "OKX (V5 API)" from supported exchanges
Input all required credentials:
- Account nickname (for your reference)
- API Key
- Secret Key
- API Password
FAQ Section
Q: Why choose V5 API over previous versions?
A: V5 API offers unified account management across spot, futures, and margin trading with improved rate limits.
Q: What should I do if my API stops working?
A: First verify:
- API keys haven't expired
- Required permissions are still enabled
- Your IP address matches the whitelist (if configured)
Q: How secure is this integration?
A: When properly configured:
- AiCoin never stores your API password
- Trading permissions can be revoked anytime via OKX
- No withdrawal permissions are granted by default
👉 Troubleshoot common API issues
Pro Tips for Advanced Users
- Use separate API keys for different trading strategies
- Monitor API usage through OKX's dashboard
- Consider using sub-accounts for better risk management
Disclaimer: This guide represents informational content only. Cryptocurrency trading involves risk. Neither the author nor platform providers guarantee investment outcomes.