skillfed

binance-connector

This is a deprecated lightweight library that works as a connector to Binance public API.

binance-connector v3.13.0 175.0K downloads/30d#10,274 on PyPI2,908
Permissive license MIT Active released

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-connector

uv

uv add binance-connector

poetry

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 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

Intended Audience :: DevelopersIntended Audience :: Financial and Insurance IndustryLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

binance api client pythoncryptocurrency trading connectorbinance spot market databinance websocket streamsbinance rest api wrapper
trading-apicryptocurrencywebsocket

More WWW/HTTP packages