Build Next-Gen
Crypto Trading Apps
RESTful & WebSocket API, millisecond latency, full market data. Built for developers worldwide.
3 Minutes to Connect
Register, get your key, send your first request
1import pybit 2from pybit.unified_trading import Account 3 4# Initialize session 5session = Account( 6 testnet=False, 7 api_key="YOUR_API_KEY", 8 api_secret="YOUR_SECRET" 9) 10 11# Get account balance 12balance = session.get_wallet_balance( 13 accountType="UNIFIED" 14) 15print(balance)
Register Bybit Account
Complete registration in 30 seconds, verify email
Create API Key
Go to API management page, create key, set permissions
Send First Request
Use SDK or REST API to get market data, start building
Why Bybit API
Production-grade infrastructure trusted by 45K+ developers
Ultra-Low Latency
WebSocket real-time push, REST API avg response 10ms
HMAC Signature Auth
Industrial-grade security, fine-grained API Key permissions
Full Market Data
K-line, depth, trades, funding rate, all covered
Multi-Language SDKs
Python, Node.js, Go, Java official support
Smart Order Types
Limit, market, conditional, iceberg orders all supported
WebSocket Streams
Subscribe to order, position, account changes in real-time
Official SDKs
Choose your language, quick integration
API Endpoints
Comprehensive RESTful API covering all trading operations
Build on Mobile with Bybit API
Test your API calls on the go. Bybit mobile app includes a built-in API playground for quick testing and debugging.
API Playground
Bybit V5 API
?category=linear
&symbol=BTCUSDT
{"lastPrice":"67842.50",
"volume24h":"23847.56",
"highPrice24h":"68520.00"}
Interactive API Tester
Test API endpoints directly in the page
API Playground
Select endpoint, click send, view real-time response
Request Quotas
Generous rate limits for production applications
REST API
WebSocket
Order Placement
Enterprise-Grade Security
Your API keys and data are protected by the same infrastructure that safeguards billions in assets
HMAC-SHA256
Industry standard signature algorithm
IP Whitelist
Restrict API access to trusted IPs
Key Rotation
Auto-expire and rotate API keys
Permission Scopes
Read-only, trade-only, withdrawal isolation
Developers Love Bybit API
"Migrated from Binance API to Bybit. The V5 unified API is so much cleaner. WebSocket reconnection handles network issues seamlessly."
"The Python SDK is excellent. Documentation is clear, rate limits are generous, and the testnet is a huge plus for development."
"Built our entire trading bot infrastructure on Bybit API. 99.99% uptime is not marketing, it is real. Zero downtime in 6 months."
Frequently Asked Questions
Yes, the Bybit API is completely free. There are no usage fees or subscription costs. You only pay standard trading fees when executing orders.
Bybit uses HMAC-SHA256 signature authentication. Each request is signed with your API secret. You can also set IP whitelists for additional security.
Yes, Bybit provides a full testnet environment with the same API endpoints. You can test your code without risking real funds.
Official SDKs are available for Python (pybit), JavaScript/Node.js (bybit-api), Go (bybit-go), and Java (bybit-java). Community SDKs exist for Rust, C#, and more.
The Bybit WebSocket API supports automatic ping/pong heartbeat. When a disconnection is detected, implement exponential backoff reconnection logic. The official SDKs handle this automatically.
Download Bybit App
Test API on mobile, anytime anywhere
Ready to Start Building?
Get free API Key and unlock all trading features
Get Free API Key