Open deaton1337 opened 3 years ago
I think this does not properly close the socket. Maybe implement the socket closure as detailed in https://algotrading101.com/learn/binance-python-api-guide/ which will yield a MWE as follows:
bsm = BinanceSocketManager(client) conn_key = bsm.start_symbol_ticker_socket('BTCUSDT', btc_trade_history) bsm.start()
bsm.stop_socket(conn_key)
reactor.stop()
Hello,
I have no issues buying and selling via the API, but when I use the socket as detailed in the demo script, everything works fine until I change the symbol. Then sometimes it works, sometimes it continues with the old symbol.
To Reproduce
Expected behavior I'd expect the above to start return details about Eth, but sometimes it keeps the old coin.
Environment (please complete the following information):
Logs or Additional context I'm not sure bsm.close() is actually doing anything.