python-binance
python-binance copied to clipboard
Binance is upgrading futures websocket
Binance just announced that they are upgrading futures websocket: https://binance-docs.github.io/apidocs/futures/en/#change-log
Binance Future is doing Websocket Service upgrade and the upgrade impacts the following:
Before upgrade:
The websocket server will send a ping frame every 3 minutes. If the websocket server does not receive a pong frame back from the connection within a 10 minute period, the connection will be disconnected. Unsolicited pong frames are allowed.
After upgrade:
Websocket server will send a ping frame every 3 minutes. If the websocket server does not receive a pong frame back from the connection within a 10 minute period, the connection will be disconnected. When you receive a ping, you must send a pong with a copy of ping's payload as soon as possible. Unsolicited pong frames are allowed, but will not prevent disconnection. It is recommended that the payload for these pong frames are empty.
Will this affect the current version (1.0.19)?
Reviewed some codes of this repo, didn't find anything about ping/pong handling, started panic, then searched online and turns out python websocket automatically handles that. So it should be just fine. Just to make sure I didn't misunderstand anything, can some also confirm for me? Much appreciated!
So nobody actually cares