API Documentation

Build powerful trading applications with our REST and WebSocket APIs. Low-latency, reliable, and fully documented.

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/tickers
GET/v5/market/orderbook
GET/v5/market/kline
POST/v5/order/create
POST/v5/order/cancel
GET/v5/order/realtime
GET/v5/position/list
GET/v5/account/wallet-balance
GET/v5/asset/transfer/list
WSwss://stream.bybit.com/v5/public
WSwss://stream.bybit.com/v5/private

Rate Limits

TierRESTWebSocketConnections
Regular10 req/s20 sub/conn100
VIP 1-220 req/s40 sub/conn200
VIP 3+50 req/s100 sub/conn500