Closed rondha03 closed 1 year ago
The log msg you posted is usually logged when the manager gets initialized.
I think the problem is within your code.. can you please post code to reproduce the issue?
Hello Oliver!
Thank you very much for the great tool and for getting back to me.
it seems like self.client.ping every 25 mn solves the issue.
interesting! thank you, i will test this timeout issue, we can do an automatic ping within the manager class
Thank you! Looking forward to it.
Hello!
Something just hit me. In the previous post I said that I added self.client.ping. It's a mistake. I actually added self.client.futures_ping
So the issue is not just the timeout when idle for more than 20-25 minutes, but also that after resetting/reinitialization, it seems to point to spot https://api.binance.com:443 instead of future https://fapi.binance.com:443. I double checked and I've always used exchange="binance.com-futures"
hi! can you give me please a demo script to easily reconstruct the error? thank you
I moved the older versions in to the archive, I'll share it this weekend.
Version of this library.
unicorn_fy: not found unicorn_binance_local_depth_cache: not found unicorn_binance_rest_api: 1.4.3 unicorn_binance_websocket_api: not found
Solution to Issue cannot be found in the documentation or other Issues and also occurs in the latest version of this library.
Hardware?
Local server/workstation
Operating System?
Windows
Python version?
Python3.10
Installed packages
Logging output
Used endpoint?
binance.com-futures
Issue
Hello!
Randomly, I won't be able to open or close any position when orders are sent.
The debug goes from printing only fapi.binance.com:443 to api.binance.com:443 followed by api.github.com:443 then it will just stop. No freeze or error message.
I added this line my codes:
t = datetime.now() print(t)
I noticed that if after 30mn no time info has been printed, those three lines are in the debugging file and the script is no longer working. At first I tought that it may be due to been idle for too long, but there has been time when it stopped 10 minutes after opening a position.