Skip to content

KuCoin – API Import Guide

This guide explains how to create and bind a KuCoin API Key to your trading platform.
By connecting your KuCoin account via API, you can enable automated trading, strategy execution, and real‑time account synchronization securely.


⚠️ Important Notes Before You Start

Before creating a KuCoin API Key, please note:

  • KuCoin’s API Key system requires Key, Secret, and Passphrase — all three must be saved securely, as the Secret cannot be recovered once lost.
  • API keys with trading permissions but no IP whitelist may be automatically disabled or deleted after 30 days of inactivity.
  • To enable APIs effectively for trading/bots, you need to enable permissions and optionally use IP Whitelisting.
  • Ensure Two‑Factor Authentication (2FA) is enabled on your account for API creation.

Step 1: Log in to KuCoin

  1. Visit the official KuCoin website
    👉 https://www.kucoin.com
  2. Log in with your credentials (email/phone + password)
  3. Ensure 2FA (Google Authenticator / SMS) is enabled

📸 Screenshot Example
KuCoin Login Page


Step 2: Navigate to API Management

  1. Click your profile avatar (top‑right corner)
  2. Select API Management from the dropdown

📸 Screenshot Example
KuCoin API Management Entry


Step 3: Create a New API Key

  1. Click the Create API button
  2. In the popup, enter:
    • API Name (e.g., UFOX‑KuCoin‑API)
    • API Passphrase — this is separate from your login password and will be used when connecting the API
  3. Complete the prompt and proceed

📸 Screenshot Example
KuCoin Create API

💡 The API passphrase is crucial — you will need it when binding the API on your platform.


Step 4: Configure API Permissions

On the API creation page, choose appropriate permissions based on your trading needs:

  • ☑️ General – allows querying market and account info (read only)
  • ☑️ Trade – allows placing and canceling orders (spot, futures)
  • (Optional) ☑️ Margin Trade – enables margin trading
  • (Optional & ⚠️) ☑️ Transfer – enables asset transfer and withdrawal (use with caution)

📸 Screenshot Example
KuCoin API Permissions

⚠️ Withdrawal/Transfer permissions should only be enabled if absolutely necessary and with strict IP whitelisting.


  1. Toggle IP Restriction to Yes
  2. Add the trusted IP addresses provided by your trading platform
  3. Click Add or Save

📸 Screenshot Example
KuCoin API IP Whitelist

API keys with trading permissions and no whitelisted IPs may automatically lose trading access or be deleted after 30 days of inactivity.


Step 6: Security Verification

After setting permissions:

  1. Enter your Trading Password
  2. Enter Email Verification Code
  3. Enter 2FA Code
  4. Confirm the API creation

Once completed, KuCoin will display:

  • API Key
  • Secret Key
  • Passphrase (the one you entered earlier)

📸 Screenshot Example
KuCoin API Created

⚠️ Save the Secret Key and Passphrase in a secure location; they will not be shown again.


Step 7: Bind API Key on Your Trading Platform

  1. Go to Account → API Management on your platform
  2. Select KuCoin as the exchange
  3. Enter:
    • API Key
    • Secret Key
    • Passphrase
  4. Choose desired scopes:
    • Spot / Futures / Margin
  5. Click Bind / Connect

📸 Screenshot Example
Bind KuCoin API on Platform


Step 8: Verify API Connection Status

Once binding is complete, you should see:

  • API Status: Connected
  • 📊 Account balancing and sync
  • 🤖 Trading strategies available

📸 Screenshot Example
KuCoin API Connected Status


Common Errors & How to Fix

❌ Invalid API or Secret

  • Ensure you copied the API Key, Secret, and Passphrase correctly
  • Remove any spaces when pasting
  • Recreate the API key if the Secret is lost

❌ Permission Denied

  • Verify required permissions are enabled (e.g., Trade)
  • Futures strategies require Futures/Derivatives permissions

❌ Whitelist Error

  • Ensure the correct platform IPs are in the whitelist
  • For testing, you can temporarily disable IP restriction

Security Best Practices

  • 🔐 Use IP Whitelisting to limit access
  • 🔄 Rotate API keys frequently
  • 🚫 Disable unnecessary permissions (especially withdrawals)
  • 🛑 Delete unused or compromised API keys immediately

FAQ

What is the API passphrase?

It’s a user‑defined password required along with the key and secret when authenticating KuCoin API requests.

Can I modify API permissions later?

Yes — permissions and whitelisted IPs can be updated at any time via the API Management page.

Will API expire?

API keys with trading enabled but without whitelisted IPs may be disabled after inactivity. Whitelisted keys generally remain active.


🎯 Finished

Your KuCoin API is now successfully created and connected.
You can now start automated trading and real‑time data sync securely.

For more API import guides, please check other exchange documentation.

Released under the MIT License.