Institutional-grade API, real-time WebSocket feeds, and full SDK support. 100,000 TPS matching engine with sub-millisecond latency.
Connect to Bybit API with your preferred language. Full documentation and examples included.
from pybit.unified_trading import HTTP session = HTTP(testnet=False) response = session.get_kline( category="linear", symbol="BTCUSDT", interval="1m" ) print(response["result"])
const { RestClient } = require("bybit-api"); const client = new RestClient({ testnet: false, key: "YOUR_API_KEY", secret: "YOUR_SECRET" }); const result = await client.getKline({ category: "linear", symbol: "BTCUSDT" });
import websockets async def ws_ticker(): async with websockets.connect( "wss://stream.bybit.com/v5/public/linear" ) as ws: await ws.send('{"op":"subscribe", "args":["tickers.BTCUSDT"]}') while True: data = await ws.recv() print(data)
curl "https://api.bybit.com" \ "-H" "X-BAPI-API-KEY: YOUR_KEY" \ "-H" "X-BAPI-SIGN: YOUR_SIGN" \ "-H" "X-BAPI-TIMESTAMP: TIMESTAMP" \ "-d" "category=linear&symbol=BTCUSDT" \ "-G"
Comprehensive REST API covering market data, account management, and order execution.
Production-ready SDKs maintained by Bybit engineering. Install and start coding immediately.
Ultra-low latency data streaming for professional trading systems.
Market data delivered in under 1 millisecond via optimized WebSocket connections.
Full depth orderbook updates pushed in real-time as market changes occur.
Streaming candlestick data for all timeframes and trading pairs.
Authenticated connections for order updates, position changes, and PnL tracking.
Built-in reconnection logic with message buffering for seamless operation.
Support up to 20 concurrent WebSocket connections per account.
Yes. The REST and WebSocket API is completely free. VIP traders get higher rate limits.
Standard accounts: 20 requests/second. VIP 1-3: up to 100 req/s. Contact for enterprise limits.
Yes. Full testnet environment with virtual funds for safe strategy development and testing.
Official SDKs for Python, Node.js, Java, Go, Rust, and C#. Community libraries for more.
HMAC-SHA256 signature authentication with timestamp validation. IP whitelist and API key permissions.
Full API access available on mobile. Download the Bybit app.
amp; Updates