Low Latency
Sub-10ms response times with co-located infrastructure.
Secure
HMAC SHA256 authentication with IP whitelisting.
Global CDN
Distributed endpoints across major regions.
Well Documented
Comprehensive guides, examples, and SDKs.
Official SDKs
pyPython
jsJavaScript
goGo
jvJava
c#C#
rsRust
Quick Start (Python)
import requests
import hmac
import hashlib
import time
API_KEY = "your_api_key"
API_SECRET = "your_api_secret"
BASE_URL = "https://api.bybit.com"
def get_ticker(symbol="BTCUSDT"):
endpoint = "/v5/market/tickers"
params = {"category": "spot", "symbol": symbol}
response = requests.get(BASE_URL + endpoint, params=params)
return response.json()
# Get BTC/USDT ticker
ticker = get_ticker()
print(ticker["result"]["list"][0]["lastPrice"])API Endpoints
GET
/v5/market/tickersGet latest market tickers for all symbols
GET
/v5/market/orderbookGet order book depth for a symbol
GET
/v5/market/klineGet kline/candlestick data
POST
/v5/order/createPlace a new orderAuth Required
POST
/v5/order/cancelCancel an active orderAuth Required
GET
/v5/order/realtimeGet real-time active ordersAuth Required
GET
/v5/position/listGet current positionsAuth Required
GET
/v5/account/wallet-balanceGet wallet balanceAuth Required
GET
/v5/asset/transfer/listGet transfer historyAuth Required
WS
wss://stream.bybit.com/v5/publicPublic WebSocket stream (tickers, order book, trades)
WS
wss://stream.bybit.com/v5/privatePrivate WebSocket stream (orders, positions, wallet)Auth Required
Rate Limits
| Tier | REST | WebSocket | Connections |
|---|---|---|---|
| Regular | 10 req/s | 20 sub/conn | 100 |
| VIP 1-2 | 20 req/s | 40 sub/conn | 200 |
| VIP 3+ | 50 req/s | 100 sub/conn | 500 |