Connecting your OKX account to a portfolio management tool like Good Crypto unlocks powerful trading capabilities—real-time balance tracking, automated order execution, and advanced features like trailing stop loss. This guide walks you through configuring your OKX API key securely and linking it to Good Crypto, whether using OAuth or manual API setup.
We’ll cover everything from generating the key to ensuring maximum security, plus answer common questions to help you avoid pitfalls. Whether you're new to crypto APIs or streamlining your trading workflow, this step-by-step tutorial ensures a smooth integration.
Connect Your OKX Account Using "Sign in with OKX" (Recommended)
The fastest and most secure method to connect OKX to Good Crypto is via “Sign in with OKX”, powered by industry-standard OAuth 2.0 protocol.
OAuth eliminates the need to manually handle sensitive API keys while automatically assigning correct permissions and whitelisting trusted IP addresses—specifically Good Crypto’s servers. This means even if your credentials were compromised, unauthorized access from unknown locations would be blocked.
👉 Discover how secure API connections simplify crypto trading—try the easiest setup now.
Steps:
- Open the Good Crypto app (mobile or web).
- Go to Settings > Exchanges > OKX.
- Tap "Sign in with OKX".
- You’ll be redirected to OKX’s official login page.
- Enter your email/phone number and password.
- Complete the puzzle slider verification.
- Provide your 2FA code when prompted.
- On the authorization screen, ensure “Trade” permission is checked, then click Approve.
Once approved, the connection status in Good Crypto will show OK with a green checkbox—your account is live and ready.
Manual Setup: How to Create and Add an OKX API Key
Prefer full control? Follow these steps to generate and configure your OKX API key manually.
Step 1: Generate a V5 API Key on OKX
- Log in to your OKX account.
- Click the Profile icon (top-right) → API keys.
- Select Create V5 API key.
Note: OKX uses a unified API system for both Spot and Futures trading—no separate keys needed.
Step 2: Configure API Key Permissions
Security starts at creation. Configure your key with only the necessary permissions:
Under App Name, select Linking third-party apps > GoodCrypto.
- This auto-whitelists Good Crypto’s server IPs, preventing misuse elsewhere.
- In API Name, enter a label like
GoodCrypto. - Set a strong Passphrase—you’ll need this later.
Grant required permissions:
- ✅ Read: To sync portfolio data (balances, orders, history).
- ✅ Trade: To place trades from Good Crypto.
- ❌ Do NOT enable Withdrawal—it's unnecessary and increases risk.
- Click Confirm.
- Verify via email + 2FA authenticator app.
This combination ensures high security without sacrificing functionality.
Step 3: Securely Copy Your API Keys
After confirmation, OKX displays:
- API Key (public identifier)
- Secret Key (private credential)
- Passphrase
👉 Never expose your secret key—learn best practices for secure crypto account linking.
⚠️ Critical: The Secret Key appears only once. Do not close the window until you’ve saved it securely—or better yet, use QR transfer.
While you can copy-paste, we recommend scanning the QR code directly into the Good Crypto mobile app for zero exposure risk.
Step 4: Add API Keys to Good Crypto
Now link your credentials:
- In the Good Crypto app, go to Settings > Exchanges > OKX > Enter API keys.
Choose:
- Enter API keys manually, or
- Scan QR code (more secure).
Input:
- API Key
- Secret Key
- Passphrase
- Name your account (e.g.,
OKX Main)—keep it short and clear. - Tap Save and Validate.
If successful, you’ll see a green checkmark and status: OK.
Tip: Good Crypto shows partial public key digits (first and last) for quick identification across multiple accounts.
Encountering errors? Double-check:
- All fields are filled correctly.
- “Read” permission is enabled on OKX.
- No typos in passphrase or secret key.
Still stuck? Reach out to support for assistance.
Why Historical Data Sync Matters
Once connected, Good Crypto retrieves your full trading history—from as far back as OKX’s API allows.
Unlike tools that track only from the moment of connection, Good Crypto reconstructs your portfolio evolution over time. Used OKX for two years? You’ll see performance trends, profit/loss summaries, and entry/exit points—all in one dashboard.
This deep historical sync empowers smarter decisions based on real long-term data.
What Is an API Key?
An API key (Application Programming Interface key) enables secure communication between two platforms—in this case, OKX and Good Crypto.
Think of it like a digital ID card:
- The public key (API Key) identifies your account.
- The secret key proves ownership through cryptographic signing—similar to private keys in crypto wallets.
Together, they allow Good Crypto to fetch data and execute trades on your behalf—without ever accessing your funds directly.
Security Best Practices
While Good Crypto encrypts your keys end-to-end, your actions play a crucial role in safety.
How We Protect Your Data:
- Keys are encrypted on-device before transmission.
- Stored in segmented, firewalled databases.
- Communication channels use TLS encryption (no man-in-the-middle attacks).
- Secret and public keys never coexist longer than needed for request signing.
What You Should Do:
- ✅ Use QR code transfer instead of copy-pasting.
- ✅ Never share keys via email, messaging apps, or screenshots.
- ✅ Avoid storing keys in plain text files or notes.
- ✅ Always disable withdrawal permissions on third-party app keys.
Frequently Asked Questions
Q: Can I use the same API key for both Spot and Futures trading?
Yes. OKX’s V5 API supports both Spot and Futures under one key—no separate configuration needed.
Q: Why shouldn’t I enable withdrawal permissions?
Good Crypto does not require withdrawal access. Enabling it increases risk if your key is ever compromised. Keep it off for safety.
Q: What happens if I lose my Secret Key?
You cannot recover it. You must revoke the old key and generate a new one on OKX.
Q: How often do I need to renew my API key?
Keys don’t expire unless revoked or if not tied to an app (like GoodCrypto), which auto-whitelists IPs and avoids 30-day reissues.
Q: Is OAuth safer than manual API setup?
Yes. OAuth reduces human error, avoids key exposure, and enforces IP restrictions automatically—making it the preferred choice.
Q: Can I connect multiple OKX accounts?
Absolutely. Simply create additional API keys with unique names and link them separately in Good Crypto.
👉 Maximize your trading efficiency—securely link your exchange today.
By following this guide, you’ve successfully integrated OKX with Good Crypto using best-in-class security practices. Now you can monitor portfolios, execute trades seamlessly, and leverage advanced tools—all within a single interface.
Whether you used OAuth or manual setup, you're now equipped with deeper insights and greater control over your crypto journey.