Exchange setup guide

BTC DCA & OKX: How to set up an API key

Create a restricted OKX API key and connect it to BTC DCA for automated Bitcoin purchases, sales, and withdrawals.

Before you start, create an OKX account if you do not already have one. Sign in to OKX before continuing.

Open API keys

Open your account menu and select API Keys.

OKX API keys menu
Open the API Keys section in OKX.

Set up a new API key

  1. Select Create V5 API Key and give the key a recognizable label.
  2. Create and safely retain a unique passphrase. BTC DCA needs this passphrase to connect to OKX.
  3. Add the BTC DCA server IP address to the IP allowlist: 217.11.249.141.
  4. Enable only the required permissions: Read, Trade, and Withdraw when you plan to automate withdrawals.
  5. Submit the API key request.
Create an OKX API key
Choose the permissions and add the IP allowlist.

Authenticate

Complete the requested verification with the code sent to your e-mail address, SMS, and authenticator app where applicable.

OKX API key verification
Complete the OKX security verification.

After submission, copy the API key and secret key. Do not store them in an insecure location or share them with anyone.

OKX API key details
Copy the API key and secret key securely.

Secure withdrawals

Enable the OKX withdrawal allowlist and add only addresses you control. This is a separate protection from the API IP restriction.

Connect BTC DCA and OKX

Log in to BTC DCA, open Setup, select OKX, and enter the secret key, API key, and passphrase. Save the connection, then use Test connection. A green success message confirms the integration.

BTC DCA OKX setup
Enter the OKX credentials in BTC DCA Setup and test the connection.

Never share your API secret or passphrase. Keep IP restriction and withdrawal address allowlisting active.