Skip to main content

Creating a KuCoin API Key for Your Crypto Trading Bot

This guide walks you through creating an API key on KuCoin for automated trading. Follow these steps to ensure secure and efficient bot operation on your account.

Step-by-Step Guide for KuCoin API Management​

  1. Log into KuCoin: Access your KuCoin account and verify that two-factor authentication (2FA) is properly configured.

  2. Navigate to API Management: Find 'API Management' in your KuCoin account settings (usually accessible via your profile icon, then 'API Management'). This section manages all your API connections.

  3. Create New API Key: Select 'Create API'. Give your API key a memorable name/label (e.g., "Gunbot_Spot"). Your new key will serve as your bot's secure access point to KuCoin.

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: KuCoin requires an API Passphrase. Create a strong, unique passphrase. This should be different from your account login password and your trading password. Store this passphrase securely alongside your API Key and Secret Key, as it will be needed by your trading bot.

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

    • General: Allows reading account information. (Usually enabled by default and required)
    • Trade: Allows placing and canceling orders for spot and margin trading.
    • Futures: Only enable if your bot will trade futures contracts. Critically, ensure that permissions for 'Transfer' (asset withdrawal) are NOT enabled.
  3. Secure Your API Key: Implement these security measures:

    • IP Whitelisting (IP Restriction): Select 'Yes' for IP Restriction. Add your bot's static IP address(es) to the whitelist. You can add multiple IPs separated by commas.
    • Review any options for trading limits if applicable.
    • Double-check that 'Transfer' (withdrawal) permissions are disabled. These steps help prevent unauthorized access.
  4. Complete API Key Creation: Review all permissions and security settings (like IP Restriction). You will likely need to enter your Trading Password, an email verification code, and your 2FA code to confirm the API key creation. Once created, carefully copy and save your API Key, Secret Key, and the API Passphrase you set earlier. Store these in a secure location like a password manager.

KuCoin API key creation page with permission and security settings

Access your API settings directly through KuCoin API Management.

A properly configured API key ensures reliable automated trading operations. Regularly reviewing your API settings helps maintain account security. Remember to never share your API credentials (Key, Secret, Passphrase) and always use secure channels when setting up your trading bot.

Ready to Start KuCoin Automated Trading?​

Transform your trading approach with automated strategies designed for KuCoin. Explore our KuCoin Trading Bot features for optimal performance.