binance-connector
This is a deprecated lightweight library that works as a connector to Binance public API.
What it is and what it does
This is a lightweight HTTP and WebSocket client for Binance's public APIs, enabling Python developers to fetch market data, manage orders, and stream real-time price and trade updates. It wraps Binance's REST endpoints and WebSocket streams, handling authentication (HMAC, RSA, ED25519), request signing, and response parsing. The library supports customizable base URLs, timeouts, proxies, and optional response metadata display.
The package is marked as deprecated; Binance recommends migrating to their newer auto-generated SDKs for Spot, Futures, Options, and other APIs. However, it remains actively maintained and suitable for applications already using it or for simple spot-trading integrations. It depends on requests for HTTP, websocket-client for streaming, and pycryptodome for cryptographic operations.
Use it for:
- Fetch real-time market data like klines, ticker prices, and order book snapshots from Binance.
- Place, cancel, and manage spot trading orders programmatically with API key authentication.
- Stream live trade and price updates via WebSocket for algorithmic trading or monitoring dashboards.
- Test trading logic against Binance's testnet before deploying to production.
- Monitor account balances and order history with authenticated API calls.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Connects Python applications to Binance's public REST and WebSocket APIs for spot trading, market data retrieval, and real-time streams.
Yes, with conditions. The package is actively maintained and has low install friction, but it is explicitly deprecated in favor of Binance's newer Python Connectors. Install it if you are already using it or building a simple spot-trading integration; avoid it for new projects unless you have a specific reason to prefer this over the recommended alternative. No known security vulnerabilities as of the latest check.
Install
binance-connector on PyPI
pip
pip install binance-connectoruv
uv add binance-connectorpoetry
poetry add binance-connectorInstalling binance-connector
Before you install
Low install friction with three common runtime dependencies. Actively maintained as of the latest release, though marked as deprecated in favor of newer Binance Python Connectors.
License in practice
MIT license permits commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install binance-connector
from binance.spot import Spot
client = Spot()
print(client.time())
print(client.klines("BTCUSDT", "1m"))
Requires Python 3.8 or later; API key and secret needed for authenticated user data endpoints.
Verify before relying
- Whether the package will continue receiving security updates despite deprecation notice.
- Performance characteristics and rate-limit handling compared to the recommended newer Binance Python Connectors.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — requests, websocket-client, pycryptodome |
| Maintenance | actively maintained — 106 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 174,986/month — #10,274 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: binance_connector-3.13.0-py3-none-any.whl
Keywords: Binance, Public API
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
pybitpybit is the official Python connector for…
permissive · top 15,000 on PyPI
python-binanceUnofficial Python wrapper for the Binance…
permissive · top 15,000 on PyPI
python-okxUnofficial Python wrapper for the OKX exchange…
permissive · top 15,000 on PyPI
python-kraken-sdkProvides REST and WebSocket clients for trading…
permissive · top 15,000 on PyPI
coinbase-advanced-pyOfficial Python SDK for the Coinbase Advanced…
permissive · top 15,000 on PyPI
metatrader5Connects Python to MetaTrader 5 Terminal to…
permissive · top 15,000 on PyPI
massiveOfficial Python client for Massive's REST and…
permissive · top 15,000 on PyPI
websocket-clientwebsocket-client provides a Python WebSocket…
permissive · top 1,000 on PyPI
TikTokLiveConnect to TikTok livestreams and receive…
permissive · top 15,000 on PyPI
polygon-api-clientProvides REST and WebSocket client libraries…
permissive · top 15,000 on PyPI