Skip to main content

Creating a Kraken API Key for Your Crypto Trading Bot

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

Info

Kraken is a US-based cryptocurrency exchange that allows users to trade a variety of digital assets. API keys are necessary for trading bots to interact with your Kraken account programmatically.

Step-by-Step Guide to API Key Creation​

  1. Log into Kraken: Access your Kraken account and verify that two-factor authentication (2FA) is properly configured for your account's security.

  2. Access API Settings: Navigate to the API management section:

    • Click on your profile name in the top-right corner.
    • Select 'Security'.
    • Choose the 'API' tab. This is where you will manage all API connections.
  3. Initiate API Key Creation: Select 'Add key' or 'New API Key' to begin generating your bot's secure access credentials (API Key and Private Key).

  4. Configure Your API Key: Set up these essential components:

    • Key Description: Create a clear, descriptive label (e.g., "Gunbot_Kraken_Trader").
    • Permissions: Enable these key functions by checking the corresponding boxes:
      *   Query Funds (allows checking balances)
      * Query Open Orders & Trades
      * Query Closed Orders & Trades
      * Modify Orders (allows placing and canceling orders)
      * **Do NOT enable withdrawal permissions** unless absolutely essential for a trusted, specific purpose and you understand the risks.
      Keep permissions minimal for optimal security.
  5. Set Custom Nonce Window: This is an important configuration for Kraken API keys:

    • Find the 'Nonce Window' field.
    • Set this to a large value (e.g., 888888888).
    • This helps prevent nonce-related API issues, which can occur if requests are processed out of strict sequence.
    • This step is crucial for reliable API communication with Kraken.
  6. IP Address Whitelisting (Optional but Recommended):

    • If your bot has a static IP address, consider adding it to the 'IP address restriction' field for enhanced security.
  7. Finalize API Key Setup: Complete these steps:

    • Review all selected permissions, the nonce window setting, and any IP restrictions.
    • Click 'Generate Key' or 'Save'.
    • You may need to confirm with your 2FA.
    • Securely store your API Key and Private Key. The Private Key is shown only once. Double-check all settings before saving and using the key.

Kraken API key creation page with permission settings and security options

You can usually access your API settings directly through a link similar to Kraken API Management. (Note: The exact link might be /new for creating, but the general management is often without /new).

A properly configured API key ensures reliable automated trading operations. Regular reviews of your API settings help maintain account security. Remember to never share your API credentials (especially the Private Key) and always use secure channels when setting up your trading bot.

Ready to Start Automated Trading on Kraken?​

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