python-binance
Binance REST API python implementation
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It covers the full Binance API surface with both sync and async support, making it the standard choice for Python-based Binance automation. Install it if you need to programmatically trade or fetch data from Binance.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires a Binance account and API key with appropriate permissions; testnet mode available via testnet=True parameter.
- Low install friction with a pure-Python wheel distribution.
- Active maintenance with a recent release (67 days ago) and 7197 GitHub stars.
License · maintenance · safety
MIT (permissive) — MIT license is permissive, allowing commercial and private use with minimal restrictions—suitable for most projects.
last release 2026-06-08 (67 days) · last repo commit 2026-06-08 · 7,197 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 629,222 downloads/mo, #5,668 on PyPI
Alternatives
Verify before relying
pip install python-binance
from binance import Client
client = Client(api_key='your_key', api_secret='your_secret')
depth = client.get_order_book(symbol='BNBBTC')
prices = client.get_all_tickers()- Whether the package maintains backward compatibility across Python 3.5–3.12 or if older versions are no longer tested.
- Current status of Vanilla Options endpoints (described as deprecated in the excerpt).
- Performance characteristics of orjson support and when it is automatically used.
What it is and what it does
python-binance is an unofficial client library that wraps Binance's REST API v3, letting you automate trading, fetch market data, and manage account operations programmatically. It supports both synchronous and asynchronous workflows, with built-in handling for authentication (including RSA and EDDSA keys), timestamp generation, and response exceptions. The library covers spot trading, futures, margin trading, and portfolio margin, plus websocket streams for real-time price and order updates with automatic reconnection and multiplexing.
The package includes convenience features like historical kline fetching, deposit/withdrawal management, depth cache management, and proxy support. It provides threaded managers for websocket connections and depth caching, reducing boilerplate for common patterns. Version 1.0.20 or higher is recommended due to endpoint deprecations in earlier releases.
Use it for
- Automate spot or futures trading strategies by placing orders, checking balances, and monitoring fills programmatically.
- Fetch historical candlestick (kline) data for backtesting or technical analysis across any date range.
- Subscribe to real-time market depth and price streams via websockets for live trading dashboards or alerts.
- Manage deposits and withdrawals, query transaction history, and handle account operations without the web UI.
- Build trading bots using async/await for concurrent order management and low-latency websocket CRUD operations.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, low install friction, and a permissive MIT license. It covers the full Binance API surface with both sync and async support, making it the standard choice for Python-based Binance automation. Install it if you need to programmatically trade or fetch data from Binance.
Install
python-binance on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a recent release (67 days ago) and 7197 GitHub stars. Depends on six common libraries (requests, aiohttp, websockets, pycryptodome, dateparser) with no compiled dependencies.
Requires a Binance account and API key with appropriate permissions; testnet mode available via testnet=True parameter.
License in practice
MIT license is permissive, allowing commercial and private use with minimal restrictions—suitable for most projects.
Quickstart
pip install python-binance
from binance import Client
client = Client(api_key='your_key', api_secret='your_secret')
depth = client.get_order_book(symbol='BNBBTC')
prices = client.get_all_tickers()
Verify before relying
- Whether the package maintains backward compatibility across Python 3.5–3.12 or if older versions are no longer tested.
- Current status of Vanilla Options endpoints (described as deprecated in the excerpt).
- Performance characteristics of orjson support and when it is automatically used.
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 6 packagesrequestssixdateparseraiohttpwebsocketspycryptodome |
| Maintenance | Actively maintained 67 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 629,222 / month, #5,668 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Intended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python Modules |
Evidence: python_binance-1.0.37-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 › “binance spot futures trading”
- python-binanceUnofficial Python wrapper for the Binance exchange REST API v3,…
- binance-connectorConnects Python applications to Binance's public REST and WebSocket…
- python-kraken-sdkProvides REST and WebSocket clients for trading on Kraken's Spot and…
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 · fyers-apiv3 · python-okx · shioaji · python-kraken-sdk · tastytrade · schwab-py · alpaca-py · freqtrade · pybit