API Endpoints SDK WebSocket FAQ Register Now
Pro Trading Terminal

Build Trading Algorithms

Institutional-grade API, real-time WebSocket feeds, and full SDK support. 100,000 TPS matching engine with sub-millisecond latency.

0
Matching Engine
0
API Calls/Day
0
Uptime SLA
0
SDK Languages

Start Building in Minutes

Connect to Bybit API with your preferred language. Full documentation and examples included.

Python
from pybit.unified_trading import HTTP
session = HTTP(testnet=False)
response = session.get_kline(
    category="linear",
    symbol="BTCUSDT",
    interval="1m"
)
print(response["result"])
Node.js
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"
});
WebSocket
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
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"
Get Your Free API Key →

Free API Access for All Traders

No monthly fees. Unlimited rate limits for VIP traders. Start building today.

Create Free Account →

RESTful API Endpoints

Comprehensive REST API covering market data, account management, and order execution.

GET /v5/market/kline Candlestick data
GET /v5/market/tickers Real-time tickers
POST /v5/order/create Place order
POST /v5/order/cancel Cancel order
GET /v5/account/wallet-balance Wallet balance
GET /v5/position/list Open positions
POST /v5/order/amend Amend order
GET /v5/market/orderbook Order book depth
Explore Full API Docs →

Official SDK Support

Production-ready SDKs maintained by Bybit engineering. Install and start coding immediately.

Python
Node.js
Java
Go
Rust
C#
# pip install pybit from pybit.unified_trading import HTTP, WebSocket # REST Client session = HTTP(testnet=False, api_key="KEY", api_secret="SECRET") result = session.place_order(category="linear", symbol="BTCUSDT", side="Buy", qty="0.001") # WebSocket ws = WebSocket(testnet=False, channel_type="linear") ws.order_stream(callback=lambda msg: print(msg))
// npm install bybit-api import { RestClient, WebSocketClient } from "bybit-api"; // REST Client const client = new RestClient({ key: "API_KEY", secret: "API_SECRET" }); await client.submitOrder({ category: "linear", symbol: "BTCUSDT", side: "Buy", qty: "0.001" }); // WebSocket const ws = new WebSocketClient({ key: "KEY", secret: "SECRET" }); ws.subscribe(["order", "position"]);
// Maven: com.bybit:bybit-api import com.bybit.api.client.BybitClientFactory; import com.bybit.api.client.BybitApiClient; // Initialize client BybitApiClient client = BybitClientFactory.create("KEY", "SECRET"); // Get kline data var kline = client.getKline(Category.LINEAR, "BTCUSDT", Interval.DAILY); // Place order var order = client.placeOrder(OrderRequest.builder() .category(Category.LINEAR) .symbol("BTCUSDT").side(Side.BUY).qty("0.001").build());
// go get github.com/bybit-exchange/bybit-go-sdk import ("github.com/bybit-exchange/bybit-go-sdk") client := bybit.NewClient(bybit.WithAuth("KEY", "SECRET")) // Get ticker ticker, _ := client.Market().GetTickers("linear", "BTCUSDT") // Place order order, _ := client.Trade().CreateOrder("linear", "BTCUSDT", "Buy", "0.001")
// Cargo: bybit-rs use bybit::{Bybit, Client}; let client = Bybit::new("KEY", "SECRET"); // Get kline let klines = client.get_kline( "linear", "BTCUSDT", "1" ).await?; // Place order let order = client.place_order(OrderParams { category: "linear", symbol: "BTCUSDT", side: Side::Buy, qty: "0.001" }).await?;
// NuGet: Bybit.Net using Bybit.Net; var client = new BybitClient("KEY", "SECRET"); // Get ticker var ticker = await client.GetTickerAsync("linear", "BTCUSDT"); // Place order var order = await client.PlaceOrderAsync(new OrderRequest { Category = "linear", Symbol = "BTCUSDT", Side = Side.Buy, Qty = "0.001" });

Ready to Build?

Get your free API key and start building trading bots in minutes.

Start Building Free →

Real-Time WebSocket Feeds

Ultra-low latency data streaming for professional trading systems.

Sub-ms Latency

Market data delivered in under 1 millisecond via optimized WebSocket connections.

📈

Orderbook Stream

Full depth orderbook updates pushed in real-time as market changes occur.

📊

K-Line Updates

Streaming candlestick data for all timeframes and trading pairs.

🔒

Private Channels

Authenticated connections for order updates, position changes, and PnL tracking.

🚀

Auto-Reconnect

Built-in reconnection logic with message buffering for seamless operation.

🌐

Multi-Connection

Support up to 20 concurrent WebSocket connections per account.

Frequently Asked Questions

Is the Bybit API free to use?

Yes. The REST and WebSocket API is completely free. VIP traders get higher rate limits.

What rate limits apply?

Standard accounts: 20 requests/second. VIP 1-3: up to 100 req/s. Contact for enterprise limits.

Does Bybit support testnet?

Yes. Full testnet environment with virtual funds for safe strategy development and testing.

Which SDK languages are supported?

Official SDKs for Python, Node.js, Java, Go, Rust, and C#. Community libraries for more.

How secure is the API authentication?

HMAC-SHA256 signature authentication with timestamp validation. IP whitelist and API key permissions.

Trade on the Go

Full API access available on mobile. Download the Bybit app.

QR Code

Get Your Free API Key

Sign up and start building trading algorithms with Bybit institutional-grade API.

Create Free Account →

Latest News

Independent Site & Risk Disclosure: This is an independent informational website, not the official website of Bybit and not operated by Bybit. It may contain affiliate links and may receive a commission at no additional cost to you. We never request seed phrases, private keys, account passwords, remote-access installation, or direct transfers of funds. Verify every destination URL before continuing. Digital-asset trading is volatile and may result in total loss. Nothing on this site is investment, legal, or financial advice.

独立站点、风险与反钓鱼声明:本站为独立信息网站,并非 Bybit 官方网站,也不由 Bybit 运营。本站可能包含推广或联盟链接,并可能在不增加用户成本的情况下获得佣金。本站绝不会索取助记词、私钥、账户密码,不会要求安装远程控制软件或直接向个人地址转账。继续访问前请核对目标网址。数字资产交易波动较大,可能造成全部损失;本站内容不构成投资、法律或财务建议。

amp; Updates