--- id: binance-connector version: "3.13.0" license: MIT license_treatment: permissive maintenance: active --- # binance-connector — This is a deprecated lightweight library that works as a connector to Binance public API. License: permissive · Maintenance: active · Downloads: 175.0K/mo ## 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 above — 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 pip install binance-connector uv add binance-connector poetry add binance-connector ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 175.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags binance api client python, cryptocurrency trading connector, binance spot market data, binance websocket streams, binance rest api wrapper, trading-api, cryptocurrency, websocket [View on SkillFed](https://skillfed.io/packages/binance-connector) · [View on PyPI](https://pypi.org/project/binance-connector/)