LUCIT-Systems-and-Development / unicorn-binance-websocket-api

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.
https://unicorn-binance-websocket-api.docs.lucit.tech/
Other
683 stars 164 forks source link

Option to use a distinct `stream_buffer` for a specific stream #59

Closed oliver-zehentleitner closed 4 years ago

oliver-zehentleitner commented 4 years ago

Is your feature request related to a problem? Please describe. If someone wants to use two different !userData streams, then its much easier if they use their own stream_buffer.

Describe the solution you'd like A switch to enable the use of an own stream buffer when creating a new stream like: manager.create_stream("trade", "btcusdt", use_distinct_stream_buffer=True)

Receives are written to self.stream_buffers[stream_id] and can get accessed via pop_stream_data_from_stream_buffer(stream_id).

Describe alternatives you've considered

Additional context

oliver-zehentleitner commented 4 years ago

use shared stream_buffer