Hello. I am currently using the python-binance library to engage in Binance Futures trading. However, I have encountered a somewhat inconvenient aspect and would like to ask a question.
Currently, I have set up a bot to trade on multiple accounts, not just my own. In this case, I understand that the python-binance client connection method uses a session to make it reusable.
While this method may be convenient for trading with a single account, I’m concerned that it might pose a problem when dealing with multiple accounts like mine.
In fact, initially, I wrote the code in the following manner, but encountered issues. So, I forced the code to execute by attempting to reconnect multiple times using try-except.
self.client = Client(key1, key2)
# Perform trade
self.client = Client(key1, key2)
# Perform trade
self.client = Client(key1, key2)
# Perform trade
...
My question is whether the problem could become more significant as the number of users increases and if you could recommend alternative solutions.
Thank you.