-
Notifications
You must be signed in to change notification settings - Fork 619
How to deal with WebSocket stream.binance.com session duration limit (24h) #112
Comments
Does this answer your question? -> #81 |
This has since been fixed in #133. |
As far as I understand, #133 refers to the keeping session alive when idle. My question was related to this:
Quoted from Binance official API doc Can you reopen this issue, please? |
lol how come nobody understood the question? |
Did anyone find the answer to this query? Binance web socket connection is only valid for 24 hours. Is there any way to reconnect after 24 hours? |
Can this issue be reopened? It seems like there still isn't a solution after 4 years. |
I solved this issue by setting a counter that counted the time of opening the socket. I close the socket at the 23rd hour and restart it. It is working perfectly fine. |
@Alihasnat10 Could you pls share code reference for :How to deal with WebSocket stream.binance.com session duration limit (24h) |
I have lost the code. Follow these steps:
|
@Alihasnat10 thanks ! |
In official Binance API documentation, there is a following limitation:
Please note, that this question is not related to handling idle timeout and keeping session alive. The question is about handling maximum session duration.
The text was updated successfully, but these errors were encountered: