mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2025-12-06 13:54:41 +08:00
- Mark Bybit, OKX as supported in CEX section - Mark Lighter as supported in Perp-DEX section - Add Bybit API setup guide - Add OKX API setup guide - Add Lighter agent wallet setup guide - Update all READMEs (EN, ZH-CN, JA, KO)
1.7 KiB
1.7 KiB
Bybit API Setup Guide
This guide explains how to create and configure Bybit API keys for use with NOFX.
Create API Key
- Log in to your Bybit account
- Go to Account & Security → API Management
- Click Create New Key
- Select System-generated API Keys
- Complete 2FA verification
- Name your API key (e.g., "NOFX Trading")
Configure API Permissions
Enable the following permissions:
- ✅ Read-Write - Required for trading
- ✅ Contract - Required for futures/perpetual trading
- ❌ Withdrawals - Keep disabled for security
IP Whitelist (Recommended)
For enhanced security:
- Click Edit on your API key
- Add your server's IP address to the whitelist
- Save changes
Save Your Keys
After creation, you'll see:
- API Key:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - API Secret:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
⚠️ Important: Save the API Secret immediately - it's only shown once!
Configure in NOFX
Add your API credentials through the NOFX web interface:
- Open NOFX dashboard (http://localhost:3000)
- Go to Exchange Configuration
- Enable Bybit
- Enter your API Key and API Secret
- Save configuration
Troubleshooting
| Error | Solution |
|---|---|
Invalid API key |
Check if API key is correct |
Signature error |
Check if API Secret is correct |
IP not allowed |
Add your IP to whitelist |
Permission denied |
Enable Contract trading permission |
Security Best Practices
- Never share your API keys
- Use IP whitelisting
- Don't enable withdrawal permissions
- Create separate API keys for different applications
- Regularly rotate your API keys