OKX: How to Create API Keys (for Spot and Futures Trading)

·

Step-by-Step Guide to Enable Futures Trading on OKX

Before creating API keys, you'll need to activate Futures trading on your OKX account. Follow these steps:

  1. Log in to OKX
    Visit the official OKX website and sign in to your account.
  2. Upgrade Your Trading Level
    Confirm your trading experience and click the "Upgrade" button to enable Futures trading permissions.
  3. Access Account Settings
    Click the gear icon (⚙️) in the top-right corner to open settings.
  4. Select Futures Trading Level
    Choose a risk level based on your experience and confirm your selection.

👉 Ready to trade Futures? Get started now!


How to Create API Keys for OKX

Navigate to the API Section

  1. Hover over your profile icon (top-right) and select "API".
  2. Complete 2FA authentication if prompted.

Generate a New API Key

  1. Click "Create V5 API Key".
  2. Assign a descriptive name (e.g., "3Commas_Spot_Futures").
  3. Set a secure password (note: required for 3Commas integration).
  4. Leave IP addresses blank unless whitelisting is necessary.

Configure Permissions

Finalize Creation

  1. Enter your 2FA code.
  2. Click "Confirm" to generate the keys.
  3. Copy and securely store the API credentials.

Success! Your API keys are now ready to connect OKX Spot/Futures accounts to 3Commas.


FAQs

Why can’t I create API keys without 2FA?

OKX mandates two-factor authentication (2FA) to enhance account security. Set up 2FA via Google Authenticator or SMS.

Should I whitelist IP addresses for API keys?

For general use, leave this field blank. Whitelisting is optional for advanced security.

Can I reuse the same API key across platforms?

No—generate unique keys per platform (e.g., 3Commas, trading bots) to isolate permissions.

👉 Secure your trading with OKX API keys