The Bybit trading bot built for derivatives traders.
Bybit is one of the deepest perpetuals venues in crypto. WatchDog Bot handles the Bybit API via CCXT, runs your strategy in an isolated environment, and provides real-time monitoring + AI debugging. Spot, perps, and dated futures supported. Free trial.
Why Bybit?
Bybit launched in 2018 specifically as a derivatives venue, and built a reputation for high-leverage perpetuals trading. Today it's one of the top three derivatives venues by volume, with deep liquidity on BTC and ETH perps, competitive funding rates, and a modern API that supports websocket + REST in both unified and inverse contract modes.
For automated traders, Bybit's main draws are: high leverage (up to 100x on BTC perps), responsive order matching, and a rebate program for high-volume makers.
What you get
Bybit API ready
Add API key + secret in Settings. Your bot accesses via wd.connection("Bybit"). Encrypted, never in source.
Unified + inverse contracts
ccxt.bybit covers spot, USDT-margined perps, USDC perps, and inverse contracts. Same SDK pattern across all.
Auto-installs dependencies
Forget to install pandas? The runtime catches it, installs it, retries. No more midnight pip emergencies.
Real-time cloud logs
See every bot decision live. Filter by level, search by symbol or order ID, debug from your phone.
One-click debugging
Bybit error codes (10001, 110028, 130021…) are cryptic. Claude reads them, decodes them, suggests the fix.
Spot + perps in one platform
Run a spot DCA and a perp grid simultaneously, each in their own isolated venv with separate state.
Strategies that work on Bybit
Funding-rate arbitrage
When Bybit's perp funding rate gets extreme (positive or negative), there's edge in delta-neutral long-spot/short-perp or short-spot/long-perp positions. Bybit's funding mechanic is well-documented and computable in your bot.
Grid trading on perps
Place a grid of long and short orders around a center price. Profit from realized vol. Perps make this capital-efficient via leverage (carefully — see risk section below).
Cross-exchange perp basis
Compare Bybit's perp price to Binance's perp price on the same asset. When the basis widens, execute the spread. Best run with low-latency infrastructure.
Liquidation-cluster trading
Liquidations on Bybit create sharp wicks that often mean-revert. A bot watching the liquidation API + orderbook can trade these reliably.
A simple Bybit perp bot in 20 lines
Funding-rate monitor — buys BTC spot and shorts BTC perp when funding is positive enough to make the carry trade profitable after fees.
import time
import wd
import ccxt
conn = wd.connection("Bybit")
ex = ccxt.bybit({"apiKey": conn.api_key, "secret": conn.api_secret, "enableRateLimit": True})
SYMBOL = "BTC/USDT:USDT" # CCXT unified perp symbol
ENTRY_FUNDING_BPS = 5 # enter if funding > 0.05% per 8h period
SIZE_USDT = 100
while True:
try:
market = ex.fetch_funding_rate(SYMBOL)
rate = float(market["fundingRate"]) * 10000 # convert to bps
wd.log.info("BTC perp funding: %.2f bps (entry > %d)", rate, ENTRY_FUNDING_BPS)
if rate > ENTRY_FUNDING_BPS:
wd.log.info("BUY spot + SHORT perp — capturing funding")
if not wd.is_demo():
# Buy spot
spot_qty = SIZE_USDT / float(ex.fetch_ticker("BTC/USDT")["last"])
ex.create_market_buy_order("BTC/USDT", spot_qty)
# Short perp
ex.create_market_sell_order(SYMBOL, spot_qty)
time.sleep(60 * 60) # check hourly
except Exception as e:
wd.log.error("funding loop failed: %s", e); time.sleep(300)
Bybit bot FAQ
Is Bybit available in my country?
Bybit serves most countries but excludes the US, UK, mainland China, and some others. Check Bybit's terms before relying on it. WatchDog Bot doesn't change Bybit's KYC or geo rules.
Spot, perps, futures, options — what's supported?
All of them via CCXT. Use the right symbol format: BTC/USDT for spot, BTC/USDT:USDT for USDT-M perps, BTC/USD:BTC for inverse contracts. Options have weaker CCXT support — you may need direct REST calls for those.
What about leverage?
Bybit supports up to 100x on BTC perps. Set leverage via ex.set_leverage(N, symbol) before placing orders. Use leverage sparingly — a 10x position only needs a 10% adverse move to wipe out your margin.
How does the rebate program work?
Bybit pays maker fees (typically 1–2 bps) to liquidity providers above a daily volume threshold. Aggressive market-making strategies can earn rebates rather than pay fees. Combine with market making strategy patterns.
What about Bybit's testnet?
Bybit has a separate testnet (testnet.bybit.com) with its own API keys and free play money. Add it as a second WatchDog Bot connection (e.g., name it "BybitTestnet") and point your bot at it via wd.connection("BybitTestnet") during development.
Rate limits?
Bybit allows ~100 requests/second on public endpoints, lower on private. CCXT's rate limiter handles defaults; for high-frequency strategies, websocket streams are mandatory.
Run your Bybit bot today
Free trial, no credit card. Perp strategy live in 10 minutes.
Start Free Trial →
WatchDog Bot