Bybit API Setup Guide
This guide will walk you through creating and configuring Bybit API keys to enable Portfolio Tracking in MyCryptoPilot.
Why Connect Bybit?
Connecting your Bybit account allows MyCryptoPilot to:
- Sync your trading history automatically
- Calculate real performance metrics (Win rate, Profit Factor, Sharpe Ratio)
- Display verified trading stats to potential followers
- Earn the Verified Badge when your stats meet criteria
Security First π
Important security notes:
- β API keys are read-only (no withdrawal or trading permissions)
- β Keys are encrypted using AES-256-GCM before storage
- β Encryption key is stored securely in environment variables
- β Keys never appear in logs or browser console
- β You can revoke API keys anytime from Bybit settings
We NEVER:
- β Request withdrawal permissions
- β Request trading permissions
- β Store your password
- β Have access to your funds
Step 1: Create Bybit API Key
1.1 Log in to Bybit
- Go to bybit.com
- Log in to your account
- Complete 2FA verification if prompted
1.2 Navigate to API Management
- Click on your profile icon (top right)
- Select API from the dropdown menu
- Click on Create New Key
- You may be asked to verify your identity (2FA code)
Note: If you don't see "API", ensure your account has completed identity verification (KYC).
1.3 Create New API Key
- Select "API Transaction" as the key type
- Enter a note:
MyCryptoPilot - Portfolio Tracking - Complete 2FA verification (Google Authenticator or Email)
1.4 Configure Permissions β οΈ CRITICAL
ONLY enable these permissions:
- β Read-Only (or "Query Only")
- β Positions - Read
- β Trade - Read (for spot trading history)
- β Derivatives - Read (for futures trading history)
- β DISABLE Trade - Write
- β DISABLE Withdraw
- β DISABLE Transfer
Important: Ensure that all "Write" permissions are disabled. Only "Read" permissions should be enabled.
1.5 IP Whitelist (Optional but Recommended)
For maximum security, you can restrict API key usage to specific IPs:
Option 1: No IP Restriction (Not Recommended)
- Leave IP whitelist empty
- Less secure but easier for users with dynamic IPs
Option 2: IP Whitelist (Recommended)
- Add MyCryptoPilot server IPs:
[IP addresses will be provided based on deployment] - Click Add IP Address for each IP
1.6 Save Your Keys
After creation, Bybit will display:
- API Key (public) - Example:
xzY3k8mN... - Secret Key (private) - Example:
7hB9qW2v...
β οΈ CRITICAL: Copy both keys immediately. The Secret Key is shown only once and cannot be recovered.
Store them temporarily in a secure location (password manager, encrypted note).
Step 2: Connect to MyCryptoPilot
2.1 Navigate to Portfolio Tracking
- Go to your MyCryptoPilot account
- Click on Portfolio Tracking in the sidebar
- Click "Connect Exchange" button
2.2 Select Bybit
- Choose Bybit from the exchange selector
- The form will update with Bybit-specific instructions
2.3 Enter API Credentials
- API Key: Paste your Bybit API Key
- Secret Key: Paste your Bybit Secret Key
- Click "Connect Exchange"
2.4 Validation
MyCryptoPilot will:
- Validate your API keys
- Check that keys are read-only
- Start syncing your trading history
- Calculate your performance metrics
Success! π You'll see a success message and your first sync will begin.
Step 3: Verify Your Connection
3.1 Check Connection Status
After connecting, you'll see:
- β Connection status: Active
- π Last synced: Timestamp of last sync
- π Next sync: Scheduled time for next sync
- π Total trades: Number of trades imported
3.2 Review Your Stats
Navigate to your Trader Dashboard to see:
- Win rate (percentage of profitable trades)
- Total P&L (profit and loss)
- Profit Factor (ratio of wins to losses)
- Sharpe Ratio (risk-adjusted returns)
Troubleshooting
Error: "Invalid API keys"
Cause: API key or secret key is incorrect
Solutions:
- Check you copied the full key (no spaces or line breaks)
- Ensure API key is enabled in Bybit settings
- Try generating a new API key
Error: "API keys must be read-only"
Cause: API key has trading or withdrawal permissions enabled
Solutions:
- Go back to Bybit API Management
- Edit your API key
- Disable all Write permissions (Trade, Withdraw, Transfer)
- Only keep Read permissions enabled
- Try connecting again
Error: "IP address not whitelisted"
Cause: Your API key has IP restrictions and MyCryptoPilot's IP is not whitelisted
Solutions:
- Remove IP whitelist restrictions (Option 1)
- Or add MyCryptoPilot server IPs to whitelist (Option 2)
Sync Not Working
Cause: Various (API rate limits, Bybit downtime, etc.)
Solutions:
- Wait 5-10 minutes and check again
- Click "Manual Sync" button
- Check Last Sync Error message if any
- Contact support if issue persists
FAQ
How often does MyCryptoPilot sync my trades?
Pro Plan: Every 5 minutes Ultra Plan: Every 1 minute
Can I connect multiple Bybit accounts?
Pro Plan: 1 exchange connection (Binance OR Bybit) Ultra Plan: Up to 3 exchange connections (Binance + Bybit + more)
What happens if I disconnect Bybit?
- Your historical trades remain in MyCryptoPilot
- Automatic syncing stops
- Your performance metrics are preserved
- You can reconnect anytime with same or different API keys
Can I use the same API key on multiple platforms?
Yes, but it's not recommended for security reasons. Create separate API keys for each platform.
How do I revoke API access?
- Go to Bybit API Management
- Find the API key you created for MyCryptoPilot
- Click Delete
- API key is immediately revoked
- Disconnect from MyCryptoPilot to clean up
Support
Need help? We're here for you!
- π§ Email: support@mycryptopilot.app
- π¬ Discord: Join our community
- π Docs: Full documentation
Last updated: October 2025