# python-binance - [python-binance](/docs): Python wrapper for the Binance exchange API - **AI** - [LLM Integration](/docs/llm): Use python-binance docs with AI assistants — copy or link to machine-readable versions of the documentation - **Getting Started** - Getting Started: undefined - [Installation](/docs/getting-started/installation): How to install python-binance and set up your API credentials - [Configuration](/docs/getting-started/configuration): Initialise the client, configure requests settings, proxies, and logging - [Testnet](/docs/getting-started/testnet): Using the Binance Spot, Futures, and Vanilla Options testnets - **Guides** - Guides: undefined - [General Endpoints](/docs/guides/general): Ping, server time, system status, exchange info, and other general API endpoints - [Market Data](/docs/guides/market-data): Order book, trades, klines/candlesticks, tickers, and price data endpoints - [Account Endpoints](/docs/guides/account): Orders, account info, balances, trades, fees, and dust management - [Margin Trading](/docs/guides/margin): Cross-margin, isolated margin trading, loans, and margin account management - [WebSockets](/docs/guides/websockets): Real-time streaming data via ThreadedWebsocketManager and BinanceSocketManager - [Depth Cache](/docs/guides/depth-cache): Real-time order book depth caching with ThreadedDepthCacheManager and DepthCacheManager - [Sub Accounts](/docs/guides/sub-accounts): Sub account management, transfers, and asset queries - [Withdrawals](/docs/guides/withdrawals): Withdrawing funds, deposit/withdraw history, and deposit addresses - [Constants](/docs/guides/constants): Order types, sides, time in force, kline intervals, and other Binance constants - [Exceptions](/docs/guides/exceptions): BinanceRequestException and BinanceAPIException error handling - [Helper Functions](/docs/guides/helpers): Utility functions for date conversion, interval parsing, and step size rounding - **API Reference** - binance: undefined - [binance](/docs/api) - async_client: undefined - [async_client](/docs/api/async_client) - [AsyncClient](/docs/api/async_client/AsyncClient) - base_client: undefined - [base_client](/docs/api/base_client) - [BaseClient](/docs/api/base_client/BaseClient) - client: undefined - [client](/docs/api/client) - [Client](/docs/api/client/Client) - enums: undefined - [enums](/docs/api/enums) - [ContractType](/docs/api/enums/ContractType) - [FuturesType](/docs/api/enums/FuturesType) - [HistoricalKlinesType](/docs/api/enums/HistoricalKlinesType) - exceptions: undefined - [exceptions](/docs/api/exceptions) - [BinanceAPIException](/docs/api/exceptions/BinanceAPIException) - [BinanceOrderException](/docs/api/exceptions/BinanceOrderException) - [BinanceOrderInactiveSymbolException](/docs/api/exceptions/BinanceOrderInactiveSymbolException) - [BinanceOrderMinAmountException](/docs/api/exceptions/BinanceOrderMinAmountException) - [BinanceOrderMinPriceException](/docs/api/exceptions/BinanceOrderMinPriceException) - [BinanceOrderMinTotalException](/docs/api/exceptions/BinanceOrderMinTotalException) - [BinanceOrderUnknownSymbolException](/docs/api/exceptions/BinanceOrderUnknownSymbolException) - [BinanceRegionException](/docs/api/exceptions/BinanceRegionException) - [BinanceRequestException](/docs/api/exceptions/BinanceRequestException) - [BinanceWebsocketClosed](/docs/api/exceptions/BinanceWebsocketClosed) - [BinanceWebsocketQueueOverflow](/docs/api/exceptions/BinanceWebsocketQueueOverflow) - [BinanceWebsocketUnableToConnect](/docs/api/exceptions/BinanceWebsocketUnableToConnect) - [NotImplementedException](/docs/api/exceptions/NotImplementedException) - [ReadLoopClosed](/docs/api/exceptions/ReadLoopClosed) - [UnknownDateFormat](/docs/api/exceptions/UnknownDateFormat) - helpers: undefined - [helpers](/docs/api/helpers) - ws: undefined - [ws](/docs/api/ws) - constants: undefined - [constants](/docs/api/ws/constants) - [WSListenerState](/docs/api/ws/constants/WSListenerState) - depthcache: undefined - [depthcache](/docs/api/ws/depthcache) - [BaseDepthCacheManager](/docs/api/ws/depthcache/BaseDepthCacheManager) - [DepthCache](/docs/api/ws/depthcache/DepthCache) - [DepthCacheManager](/docs/api/ws/depthcache/DepthCacheManager) - [FuturesDepthCacheManager](/docs/api/ws/depthcache/FuturesDepthCacheManager) - [OptionsDepthCacheManager](/docs/api/ws/depthcache/OptionsDepthCacheManager) - [ThreadedDepthCacheManager](/docs/api/ws/depthcache/ThreadedDepthCacheManager) - keepalive_websocket: undefined - [keepalive_websocket](/docs/api/ws/keepalive_websocket) - [KeepAliveWebsocket](/docs/api/ws/keepalive_websocket/KeepAliveWebsocket) - reconnecting_websocket: undefined - [reconnecting_websocket](/docs/api/ws/reconnecting_websocket) - [ReconnectingWebsocket](/docs/api/ws/reconnecting_websocket/ReconnectingWebsocket) - streams: undefined - [streams](/docs/api/ws/streams) - [BinanceSocketManager](/docs/api/ws/streams/BinanceSocketManager) - [BinanceSocketType](/docs/api/ws/streams/BinanceSocketType) - [ThreadedWebsocketManager](/docs/api/ws/streams/ThreadedWebsocketManager) - threaded_stream: undefined - [threaded_stream](/docs/api/ws/threaded_stream) - [ThreadedApiManager](/docs/api/ws/threaded_stream/ThreadedApiManager) - websocket_api: undefined - [websocket_api](/docs/api/ws/websocket_api) - [WebsocketAPI](/docs/api/ws/websocket_api/WebsocketAPI) - **Reference** - [API Endpoints Reference](/docs/endpoints): Complete list of all python-binance client methods mapped to Binance API endpoints - [FAQ](/docs/faq): Frequently asked questions about python-binance - [Changelog](/docs/changelog): Version history and release notes for python-binance