oliver-zehentleitner / unicorn-binance-websocket-api

A Python SDK 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.

Home Page:https://oliver-zehentleitner.github.io/unicorn-binance-websocket-api

Repository from Github https://github.comoliver-zehentleitner/unicorn-binance-websocket-apiRepository from Github https://github.comoliver-zehentleitner/unicorn-binance-websocket-api

Always return a dict from get_active_stream_list

Rizhiy opened this issue · comments

Is your feature request related to a problem? Please describe.

Currently, I have to add extra logic to deal with None value instead of just checking for membership.

Describe the solution you'd like.

Remove https://github.com/LUCIT-Systems-and-Development/unicorn-binance-websocket-api/blob/7a5edf44d0a2d599d9d574f0b193880b652422c3/unicorn_binance_websocket_api/manager.py#L1621 just return streams even if empty.

Describe alternatives you've considered

No response

Additional context

No response

It turned out that working directly with buffers is much easier, so this is no longer required.

Closing for now.