How to Configure OKX API for AIJieBots Office Excel Quant Trading Robot

·

Step-by-Step OKX API Configuration Guide

  1. Accessing Your OKX API

    • Log in to your OKX account via OKX website
    • Navigate to: Account > API Management
  2. Creating a Trading API

    • Select "Create V5 Trading API"
    • Set a secure password (8-32 characters with uppercase, lowercase, and symbols)
    • Critical Security Notes:

      • Only enable "Trade" permissions
      • Never enable "Withdraw" to prevent fund loss
      • Recommended: Bind specific IP addresses for enhanced security
  3. Verification Process

    • Complete email and SMS verification
    • Confirm creation to activate your API
  4. Connecting to AIJieBots Software

    • Open your quant trading robot interface
    • Locate "API Settings" section
    • Enter:

      • API Key (copy from OKX)
      • Secret Key (paste into apiSecret field)
      • Your previously set password (in Passphrase field)
    • Select server: "OKEX Mainnet" or "OKEX Testnet"
    • Click "Save API Settings"
  5. Testing Your Connection

    • Use "API Check" to verify connectivity
    • Troubleshooting:

      • If errors occur, run "IP Check"
      • Ensure your IP matches whitelisted addresses on OKX

👉 Get started with advanced trading strategies

Security Best Practices

FAQ Section

Q: Why can't I see my API in OKX after creation?
A: Refresh the page or check your email for confirmation. Some browsers may cache the page.

Q: What permissions should I enable for trading bots?
A: Only "Trade" permissions are necessary. Additional permissions increase security risks.

Q: How often should I update my API keys?
A: We recommend changing keys every 30-60 days for optimal security.

Q: Can I use the same API for multiple trading bots?
A: Technically yes, but this may trigger rate limits. Create separate APIs for each bot.

Q: What if my IP address changes frequently?
A: Consider using a VPN with static IP or disable IP binding (less secure option).

👉 Explore OKX API documentation for developers

Troubleshooting Common Issues

Error MessageSolution
Invalid API KeyVerify correct copying of both key and secret
IP Not AllowedCheck OKX IP whitelist settings
2FA RequiredEnable 2FA in OKX account security settings
Rate Limit ExceededReduce request frequency or upgrade API tier

Remember: Always test new API configurations with small trades before committing significant capital.