Binance Python Connectors
June 26, 2026 ยท View on GitHub
Collection of auto-generated Python SDK for Binance APIs.
Prerequisites
Before using the SDK, ensure you have:
- Python (version 3.10 or later)
- pip (Python package manager)
- poetry (Python package manager)
Available SDK
- binance-sdk-algo - Algo Trading connector (Pypi package:
binance-sdk-algo) - binance-sdk-alpha - Alpha connector (Pypi package:
binance-sdk-alpha) - binance-sdk-c2c - C2C connector (Pypi package:
binance-sdk-c2c) - binance-sdk-convert - Convert connector (Pypi package:
binance-sdk-convert) - binance-sdk-copy-trading - Copy Trading connector (Pypi package:
binance-sdk-copy-trading) - binance-sdk-crypto-loan - Crypto Loan connector (Pypi package:
binance-sdk-crypto-loan) - binance-sdk-derivatives-trading-coin-futures - Coin Futures Trading connector (Pypi package:
binance-sdk-derivatives-trading-coin-futures) - binance-sdk-derivatives-trading-options - Options Trading connector (Pypi package:
binance-sdk-derivatives-trading-options) - binance-sdk-derivatives-trading-portfolio-margin - Portfolio Margin Futures Trading connector (Pypi package:
binance-sdk-derivatives-trading-portfolio-margin) - binance-sdk-derivatives-trading-portfolio-margin-pro - Portfolio Margin Pro Trading connector (Pypi package:
binance-sdk-derivatives-trading-portfolio-margin-pro) - binance-sdk-derivatives-trading-usds-futures - USDs Futures Trading connector (Pypi package:
binance-sdk-derivatives-trading-usds-futures) - binance-sdk-dual-investment - Dual Investment connector (Pypi package:
binance-sdk-dual-investment) - binance-sdk-fiat - Fiat connector (Pypi package:
binance-sdk-fiat) - binance-sdk-gift-card - Gift Card connector (Pypi package:
binance-sdk-gift-card) - binance-sdk-margin-trading - Margin Trading connector (Pypi package:
binance-sdk-margin-trading) - binance-sdk-mining - Mining connector (Pypi package:
binance-sdk-mining) - binance-sdk-nft - NFT connector (Pypi package:
binance-sdk-nft) - binance-sdk-pay - Pay connector (Pypi package:
binance-sdk-pay) - binance-sdk-rebate - Rebate connector (Pypi package:
binance-sdk-rebate) - binance-sdk-simple-earn - Simple Earn connector (Pypi package:
binance-sdk-simple-earn) - binance-sdk-spot - Spot Trading connector (Pypi package:
binance-sdk-spot) - binance-sdk-staking - Staking connector (Pypi package:
binance-sdk-staking) - binance-sdk-sub-account - Sub Account connector (Pypi package:
binance-sdk-sub-account) - binance-sdk-vip-loan - VIP Loan connector (Pypi package:
binance-sdk-vip-loan) - binance-sdk-wallet - Wallet connector (Pypi package:
binance-sdk-wallet) - binance-sdk-w3w-prediction - W3W Prediction connector (Pypi package:
binance-sdk-w3w-prediction)
Documentation
For detailed information, refer to the Binance API Documentation.
Installation
Each connector is published as a separate Python package. You can install them via pip or poetry. For example:
pip install binance-sdk-spot
poetry add binance-sdk-spot
Or to install multiple connectors:
pip install binance-sdk-spot binance-sdk-margin-trading binance-sdk-staking
poetry add binance-sdk-spot binance-sdk-margin-trading binance-sdk-staking
Contributing
Since this repository contains auto-generated code using OpenAPI Generator, we encourage you to:
- Open a GitHub issue to discuss your ideas or report bugs
- Allow maintainers to implement necessary changes through the code generation process
Code Style
This repository follows PEP 8 standards and enforces Black for formatting. Before submitting a pull request, format your code:
black .
Run type checks:
mypy .
Migration Guide
If you're upgrading from the previous unified connector, refer to our Migration Guide for detailed steps on transitioning to the new modular structure.
License
This project is licensed under the MIT License - see the LICENSE file for details.