pybit
Python3 Bybit HTTP/WebSocket API Connector
Decision gist · record as of 2026-08-14
Yes. pybit is the official Bybit API connector, actively maintained, with low install friction and permissive licensing. It has no known vulnerabilities, supports current Python versions (3.10+), and is designed specifically for traders and developers integrating with Bybit. Install it if you need to programmatically trade or monitor accounts on Bybit.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10 or higher; Bybit API credentials (api_key and api_secret) needed for authenticated requests.
- Low friction: pure-Python wheel with three common runtime dependencies (requests, websocket-client, pycryptodome).
- Actively maintained with a release within the last month; last commit on 2026-07-30 and 666 repository stars indicate ongoing development.
License · maintenance · safety
MIT License (permissive) — MIT License (permissive) — you can use, modify, and distribute pybit freely in commercial and private projects with minimal restrictions.
last release 2026-07-14 (31 days) · last repo commit 2026-07-30 · 666 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 310,602 downloads/mo, #7,744 on PyPI
Alternatives
Verify before relying
pip install pybit
from pybit.unified_trading import HTTP
session = HTTP(testnet=False, api_key="...", api_secret="...")
orderbook = session.get_orderbook(category="linear", symbol="BTCUSDT")- Whether all Bybit API endpoints are currently supported or if there are known gaps in coverage.
- Performance characteristics under high-frequency or bulk-order scenarios beyond the USDC Options example.
- WebSocket reconnection and error-handling behavior during network interruptions.
What it is and what it does
pybit is the official lightweight Python connector for Bybit's HTTP and WebSocket APIs, designed to give traders and developers direct access to Bybit's market data, trading, account management, and P2P endpoints. It wraps Bybit's HTTP and WebSocket interfaces using requests and websocket-client, avoiding the overhead of auto-generated connectors. The module is actively maintained by Bybit employees and supports both testnet and mainnet environments, with a unified session object that handles both HTTP requests and WebSocket subscriptions.
You use it by instantiating an HTTP session with your API credentials, then calling methods like get_orderbook(), place_batch_order(), or get_account_information() to retrieve data or submit orders. It supports multiple trading categories (linear perpetuals, inverse perpetuals, spot, options) and P2P operations, with examples provided for common workflows like bulk order placement and market data retrieval.
Use it for
- Automate order placement and management across Bybit's perpetual, spot, and options markets.
- Stream real-time market data and order updates via WebSocket for algorithmic trading strategies.
- Build a trading bot that monitors the orderbook and executes conditional trades programmatically.
- Retrieve account balances, positions, and trade history for portfolio tracking and reconciliation.
- Execute bulk operations, such as placing multiple options orders in a single batch request.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
pybit is the official Bybit API connector, actively maintained, with low install friction and permissive licensing. It has no known vulnerabilities, supports current Python versions (3.10+), and is designed specifically for traders and developers integrating with Bybit. Install it if you need to programmatically trade or monitor accounts on Bybit.
Install
pybit on PyPI
Before you install
Low friction: pure-Python wheel with three common runtime dependencies (requests, websocket-client, pycryptodome). Actively maintained with a release within the last month; last commit on 2026-07-30 and 666 repository stars indicate ongoing development.
Requires Python 3.10 or higher; Bybit API credentials (api_key and api_secret) needed for authenticated requests.
License in practice
MIT License (permissive) — you can use, modify, and distribute pybit freely in commercial and private projects with minimal restrictions.
Quickstart
pip install pybit
from pybit.unified_trading import HTTP
session = HTTP(testnet=False, api_key="...", api_secret="...")
orderbook = session.get_orderbook(category="linear", symbol="BTCUSDT")
Verify before relying
- Whether all Bybit API endpoints are currently supported or if there are known gaps in coverage.
- Performance characteristics under high-frequency or bulk-order scenarios beyond the USDC Options example.
- WebSocket reconnection and error-handling behavior during network interruptions.
Package facts
| License | MIT License permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 3 packagesrequestswebsocket-clientpycryptodome |
| Maintenance | Actively maintained 31 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 310,602 / month, #7,744 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Topic :: Software Development :: Libraries :: Python Modules |
Evidence: pybit-5.17.0-py2.py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “bybit api connector python”
- pybitpybit is the official Python connector for Bybit's HTTP and WebSocket…
- airbyte-cdkA framework for building Airbyte connectors that extract data from…
- connector-sdk-typesProvides auto-generated Pydantic type definitions for the Lumos…
Give your agent the search over MCP, or paste the wish link into any chat.
More Python Modules packages
Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.
Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.
Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.
PyYAML parses and emits YAML 1.1 data format, enabling serialization and deserialization of configuration files and Python objects to and from human-readable YAML text.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides reusable metadata objects for use with PEP-593 `typing.Annotated` to express common constraints like bounds, collection sizes, and predicates on types.
Install it if you use or build libraries that need to express type constraints in a standardized, inspectable way—or if you want to annotate your own types with…
Provides runtime tools to inspect and introspect Python type annotations, enabling programmatic examination of type hints at execution time.
See also binance-connector · python-binance · coinbase-advanced-py · py-clob-client · python-kraken-sdk · ccxt · alpaca-py · python-okx · kiteconnect · python-amazon-sp-api