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.
You can use one ubwa instance for 3 different accounts (makes life easier)
replace is "create a new stream", then "wait till first record is received", then "stop old stream" - on a user data stream with no action this can take a while :/
one stream is using 3 threads i think. if you restart 3 streams then you maybe get 6 threads more then you expected? but they should get closed as soon the old streams get closed...
I have 3 binance accounts. For each account, I create instance of
BinanceWebSocketApiManager
and astream
for each.After a certain time, I want to replace streams. But, I observe that the number of threads is constantly increasing by 6.
I use
unicorn-binance-websocket-api==1.34.2