danpaquin / coinbasepro-python

The unofficial Python client for the Coinbase Pro API
MIT License
1.82k stars 740 forks source link

WSS subscription class self closing within a few hours without any error reported #409

Open sundarkast opened 3 years ago

sundarkast commented 3 years ago

Seeing this when letting it run in nohup mode in background -- the WSS subscription class self closes within a few hours; using implementation as indicated in usage example:

def on_close(self): logging.info(f"-- Goodbye! -- {self.message_count}")

[INFO ] -- Goodbye!

How to avoid this? The code is v useful but this is a show stopper as the price ticker is central to any action that can be taken.

cpollio83 commented 2 years ago

Same Issue - does the keepalive function need to be modified?