# binance/binance-connector-python

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/binance-binance-connector-python).**

2,755 stars · 671 forks · Python · mit

## Links

- GitHub: https://github.com/binance/binance-connector-python
- awesome-repositories: https://awesome-repositories.com/repository/binance-binance-connector-python.md

## Topics

`binance-api` `connector` `crypto` `library` `market-data` `python` `real-time` `trading`

## Description

Binance Connector Python is a client library that provides programmatic access to the Binance cryptocurrency exchange, enabling automated trading and asset management across spot, margin, futures, and options markets. The library wraps the exchange's REST and WebSocket APIs into a Python interface with type-hinted methods, HMAC and RSA authentication, and a unified request-response pipeline for consistent error handling and rate limiting.

The connector supports a broad range of exchange operations beyond core trading, including sub-account management, wallet operations, and algorithmic order types such as TWAP and iceberg orders. It also provides interfaces for earning products like staking and Simple Earn, as well as lending and borrowing through crypto loans and VIP loan facilities. Additional capabilities cover NFT management, cryptocurrency payments, fiat transfers, gift cards, peer-to-peer trading, copy trading, and mining pool operations.

The library is distributed as a standard Python package installable via pip, with documentation covering setup, authentication, and endpoint usage for each supported feature area.

## Tags

### Business & Productivity Software

- [Cryptocurrency Trading Platforms](https://awesome-repositories.com/f/business-productivity-software/cryptocurrency-trading-platforms.md) — Programmatically executes trades, manages orders, and automates portfolio operations across spot, margin, futures, and options markets.
- [Futures Trade Executions](https://awesome-repositories.com/f/business-productivity-software/contract-management-systems/futures-contract-management/futures-trade-executions.md) — Places and manages leveraged positions on both USD-margined and coin-margined futures markets. ([source](https://cdn.jsdelivr.net/gh/binance/binance-connector-python@master/README.md))
- [Margin Trading Managers](https://awesome-repositories.com/f/business-productivity-software/margin-trading-managers.md) — Borrows funds and trades with leverage on margin accounts while monitoring liquidation risk. ([source](https://cdn.jsdelivr.net/gh/binance/binance-connector-python@master/README.md))
- [Multi-Market Trading Clients](https://awesome-repositories.com/f/business-productivity-software/market-trading-integrations/multi-market-trading-clients.md) — Provides a unified Python client for spot, futures, and options trading with leverage features.
- [Cryptocurrency Spot Trading](https://awesome-repositories.com/f/business-productivity-software/trading-strategy-definitions/market-trading-calendars/cryptocurrency-spot-trading.md) — Executes buy and sell orders for assets on the spot exchange using a programmatic interface. ([source](https://cdn.jsdelivr.net/gh/binance/binance-connector-python@master/README.md))
- [Cryptocurrency Options Trading](https://awesome-repositories.com/f/business-productivity-software/options-contract-screeners/cryptocurrency-options-trading.md) — Provides a programmatic interface for buying and selling cryptocurrency options contracts. ([source](https://cdn.jsdelivr.net/gh/binance/binance-connector-python@master/README.md))
- [Automated](https://awesome-repositories.com/f/business-productivity-software/trading-libraries/automated.md) — Provides a library for building automated trading strategies with algorithmic order types.

### Development Tools & Productivity

- [Python API Clients](https://awesome-repositories.com/f/development-tools-productivity/rest-apis/rest-api-clients/python-api-clients.md) — Ships a Python client library for interacting with Binance exchange APIs across all market types.

### Part of an Awesome List

- [Exchange Asset Management SDKs](https://awesome-repositories.com/f/awesome-lists/media/web3-and-crypto/exchange-asset-management-sdks.md) — Provides a comprehensive SDK for managing crypto assets including wallets, staking, and loans.

### Networking & Communication

- [Cryptocurrency Payment Processing](https://awesome-repositories.com/f/networking-communication/global-peer-to-peer-payments/cryptocurrency-payment-processing.md) — Provides programmatic interfaces for processing cryptocurrency payments, fiat transfers, and gift cards.
- [Cryptocurrency Exchange Connectors](https://awesome-repositories.com/f/networking-communication/trading-exchange-connectors/cryptocurrency-exchange-connectors.md) — Provides a programmatic interface for executing trades and accessing market data on a major crypto exchange.

### Security & Cryptography

- [Wallet Management Interfaces](https://awesome-repositories.com/f/security-cryptography/cryptocurrency-wallets/wallet-management-interfaces.md) — Provides a programmatic interface for checking balances, generating deposit addresses, and initiating withdrawals. ([source](https://cdn.jsdelivr.net/gh/binance/binance-connector-python@master/README.md))
- [Cryptocurrency Asset Swaps](https://awesome-repositories.com/f/security-cryptography/integration-detail-retrieval/banking-data/reference-rates/repo-fixing-rates/cryptocurrency-asset-swaps.md) — Enables swapping one cryptocurrency for another at a quoted fixed rate without placing a limit order. ([source](https://cdn.jsdelivr.net/gh/binance/binance-connector-python@master/README.md))

### Data & Databases

- [Collateralized Crypto Loans](https://awesome-repositories.com/f/data-databases/lending-market-protocols/collateralized-crypto-loans.md) — Automates the lifecycle of collateralized loans, including borrowing, lending, and repayment management.
- [WebSocket Stream Managers](https://awesome-repositories.com/f/data-databases/real-time-data-streaming/stream-subscriptions/websocket-stream-managers.md) — Manages real-time data subscriptions and reconnections for market data and user data streams.
- [Exchange Staking Products](https://awesome-repositories.com/f/data-databases/staking-reward-calculations/exchange-staking-products.md) — Ships interfaces for staking, Simple Earn, and dual investment products through exchange APIs.

### DevOps & Infrastructure

- [Cryptocurrency Sub-Accounts](https://awesome-repositories.com/f/devops-infrastructure/multi-account-architectures/multi-asset-sub-accounts/cryptocurrency-sub-accounts.md) — Ships a complete interface for creating and managing multiple sub-accounts under a master trading account. ([source](https://cdn.jsdelivr.net/gh/binance/binance-connector-python@master/README.md))
- [Exchange Sub-Account Management](https://awesome-repositories.com/f/devops-infrastructure/multi-account-architectures/multi-asset-sub-accounts/exchange-sub-account-management.md) — Provides programmatic sub-account creation and control for segregating trading activities.

### Scientific & Mathematical Computing

- [Algorithmic Order Executions](https://awesome-repositories.com/f/scientific-mathematical-computing/order-execution-engines/algorithmic-order-executions.md) — Supports placing algorithmic orders like TWAP and iceberg that execute gradually to minimize market impact. ([source](https://cdn.jsdelivr.net/gh/binance/binance-connector-python@master/README.md))
