Skip to main content

Creating an OKX API Key for Crypto Trading Bots

For Gunbot users trading on OKX, setting up a dedicated API key is crucial for secure and efficient operation. This guide will walk you through the detailed process of creating an OKX API key for your crypto trading bot.

Step-by-Step Guide to Create an OKX API Key

  1. Log into OKX: Begin by logging into your OKX account. Ensure that your account is fully verified to access all the features necessary for API management.

  2. Navigate to API Management: Within your account dashboard, go to your profile and select 'API' from the menu. Click on 'Create V5 API Key' to initiate the creation of a new API key that your crypto trading bot will use to interact with the OKX exchange.

  3. Name Your API Key and Set a Passphrase: Assign a unique name to your API key that will help you easily identify it, especially if you manage multiple keys. Additionally, set a secure passphrase. This passphrase acts as an additional layer of security, functioning like a secondary password required to use your API key with OKX. Make sure to store this passphrase securely, as it will be needed for your bot's operations.

  4. Configure API Key Permissions: Carefully configure the permissions for your API key. To enable full functionality for your trading bot, ensure you enable the necessary permissions such as 'Trade', 'Withdraw', and 'View Account Information'. These permissions allow your bot to execute trades, access account balances, and manage orders. If you do not require withdrawal capabilities, it's safer to leave this option disabled to enhance security.

  5. Secure Your API Key: OKX offers features like IP whitelisting, which restricts the use of your API key to specific IP addresses. It is recommended to use this feature if you operate Gunbot from a fixed IP address, adding an extra layer of security to your trading operations.

  6. Finalize API Key Creation: After reviewing all the settings, click 'Confirm' to finalize the creation of your API key. OKX may prompt you to complete additional security verifications, such as 2FA, before the key is activated. Ensure that all configurations are correct to avoid any disruptions in your bot's trading activities.

OKX API Key Creation

For direct access to the API settings on OKX, visit OKX API Management.

Setting up your API key correctly is critical for secure and efficient trading on OKX with Gunbot. Proper configuration of your API key ensures that your bot can execute trades, manage orders, and securely interact with your OKX account without interruptions.