python-binance
Python wrapper for the Binance exchange API
Welcome to the python-binance documentation.
This is the unofficial Python wrapper for the Binance exchange REST API v3. It supports:
- Spot, Margin, and Futures trading
- Synchronous and Asynchronous clients
- WebSocket streaming with automatic reconnection
- Depth cache management
- Testnet support
Quick Start
pip install python-binancefrom binance.client import Client
client = Client(api_key, api_secret)
# Get market data
tickers = client.get_all_tickers()
# Place an order
order = client.order_market_buy(symbol='BNBBTC', quantity=100)