Skip to main content

Creating a KuCoin API Key for Your Crypto Trading Bot

This guide walks you through creating a KuCoin API key for automated trading and securing it for bot access.

Step-by-Step Guide for KuCoin API Management

  1. Log into KuCoin: Access your KuCoin account and confirm two-factor authentication (2FA) is enabled.

  2. Navigate to API Management: Open 'API Management' from your profile menu in KuCoin account settings.

  3. Create New API Key: Select 'Create API' and give the key a clear label (e.g., "Gunbot_Spot").

Info

The KuCoin API Passphrase is a separate password specifically for your API key, distinct from your login or trading passwords. It's required for every API interaction and adds a significant security layer.

  1. Set API Passphrase: Create a strong, unique passphrase that is different from your login and trading passwords. Store it with the API Key and Secret Key for your bot.

  2. Configure API Key Permissions: Enable only the permissions your bot needs:

    • General: Read account information (usually required).
    • Trade: Place and cancel spot/margin orders.
    • Futures: Enable only if your bot trades futures. Ensure 'Transfer' (asset withdrawal) is NOT enabled.
  3. Secure Your API Key:

    • IP Whitelisting (IP Restriction): Select 'Yes' and add your bot's static IP address(es). Separate multiple IPs with commas.
    • Review any trading limits if available.
    • Double-check that 'Transfer' (withdrawal) permissions are disabled.
  4. Complete API Key Creation: Review permissions and security settings. Confirm with your Trading Password, email code, and 2FA if prompted. Copy and store your API Key, Secret Key, and API Passphrase in a secure location.

KuCoin API key creation page with permission and security settings

Access your API settings directly through KuCoin API Management.

A properly configured API key supports reliable automated trading. Review your API settings regularly, and never share your API credentials (Key, Secret, Passphrase).

Ready to Start KuCoin Automated Trading?

Explore our KuCoin Trading Bot features for automated strategies.