Skip to content

python-binance/binance/websockets.py missing Ping/Keep-alive a listenKey every 30m timeout #504

@xiaods

Description

@xiaods

Describe the bug
I found the UserDataStream's keeplive function is missing in current websocket.py.
so after every one hour, binance WebSocket conn is invalid.

To Reproduce
Code snippet to reproduce the behavior:
see binance API docs:
https://github.com/binance-exchange/binance-official-api-docs/blob/master/user-data-stream.md#pingkeep-alive-a-listenkey

Expected behavior
add keepalive logic in websocket.py

Environment (please complete the following information):

  • Python version: 3.6
  • Virtual Env: native
  • OS: Ubuntu 18.04
  • python-binance version: 0.75

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions