Skip to content

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

  1. Log in to Bybit
  2. APICreate New KeySystem-generated API Keys
  3. Permissions: Contract – Trade (and Spot – Trade if running spot)
  4. IP restriction — strongly recommended
  5. 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.

tradectl — Automate Crypto Trading