Exchange Connections · Help Center

Connect OKX to AstraBit

Connect your OKX account to AstraBit for automated trading. This guide covers account requirements, required trading settings, API key creation, and where everything goes in AstraBit — three parts, eight steps.

~15 minutes API keys — never custody USDT & inverse perpetuals

Technical setup guide only; not trading advice.

Before You Begin

What to Check First

Confirm your OKX trading settings before creating your API. Incorrect margin or position settings may prevent trades from executing properly in AstraBit.

Derivatives, Not Spot

You’ll be trading USDT Perpetuals or Inverse Perpetual Contracts from an OKX derivatives account.

Fund Before You Connect

Keep a minimum balance of $50–$100+ USDT in your OKX trading wallet (or equivalent value in supported assets such as BTC, ETH, XRP).

Settings Must Match

AstraBit requires Single-currency margin account mode and One-way position mode. Incorrect configuration may result in failed or inconsistent trade execution.

Least-Privilege API

Your API key only needs Read and Trade access. Withdrawal and transfer permissions stay disabled — AstraBit never needs them.

Step-by-Step Setup

Three Parts,
Eight Steps

Configure your OKX account settings, create your API key, and connect it in AstraBit.

Required OKX Configuration

  • Account Mode: Single-currency margin
  • Position Mode: One-way mode
  • Derivatives account with USDT or inverse perpetuals
  • Minimum balance: $50–$100+ USDT (or equivalent)

Set these in OKX before creating your API key — wrong settings can block trade execution.

Part 1 · Configure OKX Account Settings

1

Access Trading Settings

  1. Log in to your OKX account.
  2. Navigate to your Trading Dashboard.
  3. Open Settings.
OKX trading dashboard.
The OKX trading dashboard
OKX trading settings menu.
Open Settings from the dashboard
2

Set Account Mode

  1. Locate Account Mode.
  2. Select Single-currency margin.
  3. Confirm the OKX agreement to change the account mode.
OKX Account Mode setting.
Find Account Mode in settings
OKX Single-currency margin selection.
Select Single-currency margin
OKX agreement confirmation for account mode change.
Confirm the agreement
3

Set Position Mode

  1. Locate Position Mode.
  2. Select One-way mode.
Your OKX account is configured for AstraBit compatibility.

These settings must match AstraBit requirements. Incorrect configuration may result in failed or inconsistent trade execution.

OKX Position Mode set to One-way mode.
Select One-way mode

Part 2 · Create OKX API Keys

4

Open API Management

  1. Log in to your OKX account and view the Dashboard.
  2. Navigate to Profile → API Management.
OKX Profile menu with API Management option.
API Management under Profile
5

Create New API Key

  1. Click Create API Key.
  2. Name the API (example: AstraBit Trading).
OKX Create API Key form.
Create and name your API key
6

Configure API Permissions

Enable only the permissions required for AstraBit — it never needs withdrawal access.

✓ Enable
  • Read Access
  • Trade Access
✕ Disable
  • Withdraw Access
  • Account Transfer Permissions
OKX API permissions configuration.
Enable Read and Trade only
7

Set Security Controls

  1. Set a strong Passphrase.
  2. Configure an IP whitelist (recommended for added security).
  3. Complete verification (2FA, email, etc.).
You have an API key, secret key, and passphrase — stored safely.

Store your API key, secret key, and passphrase securely. If lost or compromised, generate a new API key immediately.

OKX API passphrase setup.
Set your passphrase
OKX IP whitelist configuration.
Optional: whitelist IPs
OKX API verification step.
Complete 2FA verification

Part 3 · Connect OKX to AstraBit

8

Connect in AstraBit

  1. Log in to your AstraBit Nexus Dashboard.
  2. Navigate to Exchanges → Connect Exchange → OKX.
  3. Enter your API Name, API Key, Secret Key, and Passphrase.
  4. Click Connect.
OKX is connected and ready to power your trading bot.
AstraBit Connect Exchange screen with OKX selected.
Connect Exchange → OKX in Nexus
AstraBit OKX API connection form.
Enter your API credentials

Final Check

API Configuration Checklist

Before you create a bot, make sure your OKX API has:

1Trading permissions enabled.
2Read permissions enabled.
3Withdrawal permissions disabled.

Need a Hand?

If you experience any problems, contact support by email or submit a ticket through Discord.

Security Reminder

Your Keys, Your Funds

API permissions strictly limit what AstraBit can do with your OKX account.

Cannot Withdraw

AstraBit cannot withdraw funds from your account. Ever.

Cannot Move Assets

AstraBit cannot move or transfer assets between accounts or wallets.

Trades Only

AstraBit can only trade using the permissions you approve.

Important Risk Notice: AstraBit provides tools for automated trade execution. AstraBit does not provide investment, legal, or tax advice and does not guarantee performance. Trading digital assets involves substantial risk, including the possible loss of capital.

Connected? Put it to work.

Your OKX API is live in the Nexus dashboard. The next step is creating a trading bot and linking it to a strategy.

Create Your Trading Bot →

This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.