Connecting ByBit
This guide walks you through connecting your ByBit account to TradeStaq for futures trading.
Prerequisites
Before connecting ByBit:
- A verified ByBit account
- Unified Trading Account (UTA) enabled
- API key with trading permissions
Note: ByBit's Unified Trading Account combines spot, derivatives, and options into one margin pool. If you haven't upgraded, go to ByBit → Account → Upgrade to Unified Account.
Creating API Keys on ByBit
Log into ByBit
Go to bybit.com and log into your account.
Navigate to API Management
- Click your profile icon in the top-right
- Select API
- Click Create New Key
Select API Key Type
Choose System-generated API Keys (recommended for security).
Configure Key Settings
- Name:
TradeStaq Trading Bot - Key Permissions:
- ✅ Read-Write
- API Transaction:
- ✅ Trade
- ✅ Position (Derivatives)
Note: Do not enable Wallet or Withdraw permissions. TradeStaq doesn't need these.
Set IP Restrictions (Recommended)
- Enable Bind IP addresses
- Add TradeStaq server IPs (contact support for list)
- Leave blank for unrestricted access (less secure)
Complete Verification
- Complete 2FA verification
- Enter your email/SMS verification code
- Click Confirm
Save Your Credentials
Copy and store securely:
- API Key
- API Secret
Note: The API Secret is shown only once. Store it securely immediately.
Adding ByBit to TradeStaq
Open Exchange Wizard
- Navigate to Dashboard → Exchanges
- Click Add Exchange
Select ByBit
Choose ByBit from the exchange list.
Select Exchange Type
| Type | Description |
|---|---|
| Futures | Trade USDT perpetual contracts |
| Paper Trading | Simulated trading with virtual funds |
Enter API Credentials
For live trading:
- API Key: Your ByBit API key
- API Secret: Your ByBit secret key
Configure Settings
- Exchange Name: Descriptive name (e.g., "ByBit Main")
- Default Leverage: Your preferred leverage setting
Review and Create
Review settings and click Create Exchange.
ByBit-Specific Configuration
Unified Trading Account (UTA)
ByBit's UTA provides:
- Combined margin across products
- Portfolio margin mode option
- Cross-asset collateral
Note: TradeStaq is optimized for UTA. Legacy accounts may have limited functionality.
Position Mode
ByBit supports two position modes:
| Mode | Description | Recommendation |
|---|---|---|
| One-Way | Single position per symbol | Simple strategies |
| Hedge | Independent long/short | Complex strategies |
To change position mode on ByBit:
- Go to Derivatives trading page
- Click the gear icon → Position Mode
- Select Hedge Mode (recommended)
Margin Mode
| Mode | Description | Risk |
|---|---|---|
| Cross | Shared margin pool | Lower liquidation risk |
| Isolated | Separate margin per position | Controlled risk |
Common Issues
"API Key Invalid"
- Verify the key is correct
- Check the key hasn't expired or been deleted
- Ensure Read-Write permission is enabled
"IP Not Allowed"
- Add TradeStaq IPs to your API whitelist
- Or remove IP restrictions temporarily for testing
"Insufficient Balance"
- Transfer funds to your Unified Account
- Ensure you have USDT for margin
"Permission Denied"
- Check Trade permission is enabled
- Verify Position (Derivatives) is enabled
ByBit Rate Limits
ByBit has API rate limits:
| Endpoint Type | Limit |
|---|---|
| Order placement | 10 req/sec |
| Order query | 50 req/sec |
| Position query | 50 req/sec |
Note: TradeStaq automatically handles rate limiting. If you hit limits, try reducing signal frequency.
Security Best Practices
- Enable 2FA on your ByBit account
- Use IP whitelisting for API keys
- Set API expiration (optional on ByBit)
- Monitor API activity in ByBit's API logs
- Don't share credentials with anyone
Next Steps
Start Trading
Ready to automate your trading on Bybit? Explore available trading pairs and strategies:
- Browse Bybit Trading Bots — see all available trading pairs and deploy a bot
- Explore Strategies — find the right strategy for your goals
- Try Backtesting — test strategies on historical data before going live
Strategies available on Bybit
Deploy any of these 12 automated strategies on Bybit.