Giter Site home page Giter Site logo

Reconnection issue about cryptoexchange.net HOT 3 CLOSED

jkorf avatar jkorf commented on August 13, 2024
Reconnection issue

from cryptoexchange.net.

Comments (3)

ridicoulous avatar ridicoulous commented on August 13, 2024

Hello @miqteam

As I can see in logs, you setted SocketNoDataTimeout parameter of socket client to 20 seconds. It means that socket considers brocked if it does not catch any message in this time period and going to reconnect.

So, for example, if you listen to trades endpoint at low liquidity market with one trade in minute with SocketNoDataTimeout=TimeSpan.FromSeconds(10), at logs you will see 5-6 reconnects each minute

from cryptoexchange.net.

miqteam avatar miqteam commented on August 13, 2024

Hi,
I get these logs with market data. I use this socket connection to get market depth and tick data. So there souldn't be a scenerio about not cathcing any data.

from cryptoexchange.net.

JKorf avatar JKorf commented on August 13, 2024

The socket only sends data if anything in the data it represents changes. For market data you can't really guarantee that anything changes at least every 20 seconds. A lot of markets with high liquidity will, but some with lower liquidity will not.

The SocketNoDataTimeout which you set to 20 seconds is mainly used for exchanges where there is a ping/pong mechanism. For example, all Bitfinex socket connections will send a ping message every 15 seconds. So if nothing is received for +- 20 seconds you know something is wrong and try to reconnect. For Binance, where there is no such mechanism, this isn't really usable.

from cryptoexchange.net.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.