sammchardy / python-binance

Binance Exchange API python implementation for automated trading
https://python-binance.readthedocs.io/en/latest/
MIT License
6.01k stars 2.2k forks source link

Fixed event loop creation issue in threaded_stream.py file #1404

Closed alkhachatryan closed 1 month ago

alkhachatryan commented 6 months ago

Fixed event loop creation issue in threaded_stream.py file by simple checking if the loop is already created or not. If is not created - create a new one, otherwise get current one

alkhachatryan commented 6 months ago

@sammchardy this is very simple fix to a very critical bug which stopped a lof of projects and blocked them. At least one we have here: https://github.com/conor19w/Binance-Futures-Trading-Bot/issues/61

Merge it as soon as possible. Thanks.

sammchardy commented 1 month ago

Thanks @alkhachatryan

alkhachatryan commented 1 month ago

you 2