Introduction
API keys are essential for connecting third-party applications like trading bots to your OKX account securely. This step-by-step guide walks you through generating API keys on OKX while optimizing security and functionality.
Step 1: Access Sub-Accounts
Navigate to your OKX profile and select Sub-Accounts.
👉 Learn more about OKX sub-accounts
Best Practice:
- Use a dedicated sub-account for third-party tools to isolate trading activities from your main account.
Step 2: Create a Sub-Account
Click Create Sub-Account and configure:
- Name: Assign a clear label (e.g., "Robuxio_Trading").
- Type: Select Standard Sub-account.
Trading Settings:
- Account Mode: Enable Spot and Futures.
- Position Mode: Set to One-way.
Step 3: Generate API Keys
- Under Actions, choose Manage API > Create API.
Configure API settings:
- Name: e.g., "Robuxio_Integration".
- Linked Sub-Account: Select the one created earlier.
- Purpose: Pick Linking third-party app.
- Permissions: Grant trade access.
- Passphrase: Create a secure phrase (store it privately).
Step 4: Retrieve and Secure Keys
- Copy the API Key, Secret, and Passphrase.
- Security Tip: Never share these credentials publicly.
Step 5: Connect to Robuxio
- Log in to Robuxio’s platform.
- Navigate to Profile > Add Exchange.
- Select OKX, input the API credentials, and validate.
Step 6: Validation and Funding
- Robuxio will verify the connection.
- Deposit USDT into your futures sub-account to start trading.
FAQs
Why use a sub-account for API keys?
Sub-accounts limit risk by isolating third-party tool activities from your main account’s funds.
What permissions are needed for trading bots?
Enable trade access but restrict withdrawals for security.
How often should I rotate API keys?
Refresh keys every 3–6 months or if compromised.
Conclusion
Follow these steps to securely integrate OKX with Robuxio or similar platforms. For advanced strategies:
👉 Explore OKX API documentation