Bybit
tradectl supports Bybit Linear perpetuals (USDT-settled), Inverse perpetuals (coin-margined), and Spot via the Bybit V5 API.
Supported features
- Real-time ticker and public trade WebSocket streams
- L2 depth subscriptions
- Market and limit orders
- TP (limit) and SL (stop-market) exits
- Leverage configuration; isolated and cross margin
- User-data WebSocket for fills
API key setup
- Log in to Bybit
- API → Create New Key → System-generated API Keys
- Permissions: Contract – Trade (and Spot – Trade if running spot)
- IP restriction — strongly recommended
- Do not enable withdrawals
Configuration
json
{
"api": { "provider": "Bybit", "key": "...", "secret": "..." },
"strats": [{
"name": "btc-linear",
"type": "shot",
"marketType": "LINEAR",
"isEmulator": false,
"pairs": ["BTCUSDT", "ETHUSDT"],
"leverage": 10
}]
}marketType: LINEAR, INVERSE, or SPOT.
Testnet
Bybit provides a full testnet. Mark credentials as Testnet in the dashboard or CLI when adding them.
