How to Reconnect WS? #233
Unanswered
marvin-hansen
asked this question in
Q&A
Replies: 1 comment
-
use timer to trigger event to stop new trades after 20th hour. Once that event exists, and no open trades are there, disconnect, clear the event and reconnect. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Binance API states that the web socket connection must re-connect every 24 hours otherwise the server
will force disconnect.
I just started out with the example code, as shown below, to connect to multiple markets.
How do I add a re-connect every 23h to ensure the connection remains open permanently?
Beta Was this translation helpful? Give feedback.
All reactions