How to Connect OKX to AstraBit
Connect your OKX account to AstraBit for automated trading. This guide explains account requirements, required trading settings, API key creation, and connection steps.
Before you Begin
Important Account Configuration
PRIOR to creating your API, confirm your OKX trading settings are configured correctly. Incorrect margin or position settings may prevent trades from executing properly in AstraBit.
Required Settings:
PRIOR to creating your API, confirm your OKX trading settings are configured correctly. Incorrect margin or position settings may prevent trades from executing properly in AstraBit.
Required Settings:
- You are trading with USDT Perpetuals or Inverse Perpetual Contracts from an OKX derivatives account
- You have a minimum balance of at least $50–$100+ USDT in your OKX trading wallet (or equivalent value in supported assets such as BTC, ETH, XRP)
- Account Mode: Single-currency margin
- Position Mode: One-way mode
Part 1: Configure OKX Account Settings
Step 1: Access Trading Settings
- Log in to your OKX account
- Navigate to your Trading Dashboard
- Open Settings


Step 2: Set Account Mode
- Locate Account Mode
- Select Single-currency margin
- Confirm OKX agreement to change the Account Mode



Step 3: Set Position Mode
- Locate Position Mode
- Select One-way mode
⚠️ These settings must match AstraBit requirements. Incorrect configuration may result in failed or inconsistent trade execution.

Part 2: Create OKX API Keys
Step 4: Open API Management
- Log in to OKX account and view the Dashboard
- Navigate to Profile → API Management

Step 5: Create New API Key
- Click Create API Key
- Name the API (example: AstraBit Trading)

Step 6: Configure API Permissions
Enable only the permissions required for AstraBit.
Recommended Permissions
- Read Access
- Trade Access
Disable
- Withdraw Access
- Account Transfer Permissions
⚠️ AstraBit does not require withdrawal permissions.

Step 7: Set Security Controls
- Set a strong Passphrase
- Configure IP whitelist (recommended for added security)
- Complete verification (2FA, email, etc.)
⚠️ Store your API key, secret key, and passphrase securely. If lost or compromised, generate a new API key immediately.



Part 3: Connect OKX API to AstraBit
Step 8: Connect in AstraBit
- Log in to your AstraBit Nexus Dashboard
- Navigate to Exchanges → Connect Exchange → OKX
Enter:
- API Name
- API Key
- Secret Key
- Passphrase
Then click Connect


API Configuration Checklist
Ensure your OKX API has:
- Trading permissions enabled
- Read permissions enabled
- Withdrawal permissions disabled
⚠️ Security Reminder:
AstraBit
- Cannot withdraw funds
- Cannot move assets
- 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.
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.
If you experience any problems,
contact support by email
or submit a ticket through
Discord
.