knowm / XChange

XChange is a Java library providing a streamlined API for interacting with 60+ Bitcoin and Altcoin exchanges providing a consistent interface for trading and accessing market data.
http://knowm.org/open-source/xchange/
MIT License
3.81k stars 1.93k forks source link

Frequency of websocket disconnects #3641

Closed earce closed 3 years ago

earce commented 3 years ago

For anyone who connects to CoinbasePro and Kraken via websockets for authenticated trade data as well as public trades data, how often do you see the xchange client disconnect and reconnect to the exchanges?

@badgerwithagun @mdvx

mdvx commented 3 years ago

rarely, on both, however I normally use FIX for CoinbasePro user trades

earce commented 3 years ago

how often is rarely? I usually see either exchange get disconnected once every few hours, some times 2hrs+ sometimes 1-2 days etc. But I don't see it go say 3-5 days without a disconnect.

I'm trying to see if there is anything I can do to improve the reliability of websocket connections or if there is something else that may be causing this.

Has FIX been more reliable in your experience?

badgerwithagun commented 3 years ago

I'm not an active user at the moment. Avoiding active crypto trading for a while, so I've got no feel for how often this happens.

earce commented 3 years ago

Closing as has been answered