A Python SDK by LUCIT to use the Binance Websocket API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, com-coin_futures, us, tr, dex/chain+testnet) in a simple, fast, flexible, robust and fully-featured way.
if stream_buffer_name is not False:
# Todo: Does the stream_buffer get reseted after a restart? It looks like that!
self.stream_buffer_locks[stream_buffer_name] = threading.Lock()
self.stream_buffers[stream_buffer_name] = []
https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api/blob/b05d41895e23bd089997ca5fc5f83e16693875cc/unicorn_binance_websocket_api/unicorn_binance_websocket_api_manager.py#L358