Discover and explore top open-source AI tools and projects—updated daily.
oliver-zehentleitnerPython SDK for real-time Binance WebSocket data and trading
Top 47.0% on SourcePulse
Summary This Python SDK provides a robust, high-performance interface to Binance's WebSocket APIs, enabling real-time data streaming and account management. It simplifies direct WebSocket integration with automatic reconnection and asynchronous handling. Ideal for traders, analysts, and developers needing reliable, low-latency access across Binance spot, margin, futures, and testnet environments.
How It Works
The library utilizes Python's asyncio for concurrent stream processing, with each stream managed in a separate thread. It offers flexible data consumption via buffer polling, callbacks, or asyncio queues. Key performance gains are achieved through Cython and PyPy wheels, compiled C extensions. The system ensures fully managed WebSocket connections with 100% auto-reconnect and resilience against Binance maintenance windows.
Quick Start & Requirements
pip install unicorn-binance-websocket-apiHighlighted Details
Maintenance & Community
This open-source project welcomes contributions. Community discussions are available via Telegram (https://t.me/unicorndevs). Update notifications can be received through GitHub actions or the is_update_available() function.
Licensing & Compatibility
The specific license is not explicitly stated, though it is an open-source project. The library is tested and compatible across Linux, macOS, and Windows on various architectures (x86, arm32, arm64), with no memory leaks reported for Python 3.9-3.14.
Limitations & Caveats
Conda support is noted as pending migration to conda-forge. The README warns against using the library to circumvent Binance's geographical restrictions. Development versions are explicitly marked as unstable.
6 days ago
Inactive
bytewax
anthropics
risingwavelabs