I don’t see anywhere that the subscribed items (ie the trades, quotes, and/or bars) are stored. Therefore, I don’t think when a connection is restored that the subscriptions are automatically restored. One would need to re-subscribe. That may be the issue? I could be way off here. Perhaps someone from the community could verify that.
Hi @FIRMCEO, I have the same problem but I’m looking for a proper solution (rather than constant reconnections) From digging a little I found this:
Unfortunately the Stream class doesn’t extend it’s websocket [_ws] field publicly, so there’s no option to add a ping_interval unless changing the API. From DataStream/TradingStream class: