Quick Start Endpoints API Tester SDKs Security FAQ Register Now
Get Free API Key
V5 API Live

Build Next-Gen
Crypto Trading Apps

RESTful & WebSocket API, millisecond latency, full market data. Built for developers worldwide.

10ms
Avg Latency
0
Daily Requests
99.99%
SLA Uptime
0
API Endpoints
GitHub Stars12.4K+
NPM Downloads890K+/mo
PyPI Downloads1.2M+/mo
Active Devs45K+
Discord Members28K+
Open Issues47
PRs Merged3,200+
API V5Stable
GitHub Stars12.4K+
NPM Downloads890K+/mo
PyPI Downloads1.2M+/mo
Active Devs45K+
Discord Members28K+
Open Issues47
PRs Merged3,200+
API V5Stable

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)
1

Register Bybit Account

Complete registration in 30 seconds, verify email

2

Create API Key

Go to API management page, create key, set permissions

3

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

🐍
pybit
v5.0.1
💡
bybit-api
v3.2.0
🐘
bybit-go
v1.0.5
bybit-java
v2.1.0

API Endpoints

Comprehensive RESTful API covering all trading operations

GET/v5/market/tickersGet latest market data
GET/v5/market/klineK-line/candlestick data
GET/v5/market/orderbookOrder book depth
POST/v5/order/createCreate new order
POST/v5/order/cancelCancel existing order
GET/v5/account/wallet-balanceAccount wallet balance
GET/v5/position/listPosition list
POST/v5/order/replaceModify order params

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.

📱 Built-in API playground
Real-time response preview
🔒 Secure key management
📊 Request history tracking
9:41🔋 92%

API Playground

Bybit V5 API

GET /v5/market/tickers
?category=linear
&symbol=BTCUSDT
200 OK
{"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

200 OKResponse time: 12ms
{"retCode":0,"retMsg":"OK","result":{"category":"linear","symbol":"BTCUSDT","lastPrice":"67842.50","bid1Price":"67842.00","ask1Price":"67843.00","volume24h":"23847.56","highPrice24h":"68520.00","lowPrice24h":"67100.00"}}

Request Quotas

Generous rate limits for production applications

REST API

0
Requests/min

WebSocket

0
Messages/sec

Order Placement

0
Orders/10sec

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."
A
Alex Chen
Full-Stack Dev / Crypto Startup
★★★★★
"The Python SDK is excellent. Documentation is clear, rate limits are generous, and the testnet is a huge plus for development."
M
Maria S.
Quant Developer / Hedge Fund
★★★★★
"Built our entire trading bot infrastructure on Bybit API. 99.99% uptime is not marketing, it is real. Zero downtime in 6 months."
K
Kenji T.
CTO / Trading Platform

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
Free to use Full docs Community support

© 2024 Bybit. All rights reserved. | Developer Portal Landing Page