Comments (3)
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.
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.
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)
- Implement library for ig.com HOT 3
- Different parameters order of the final request URL and Uri provided for the authentification HOT 1
- Error converting IEnumerable<T> in Result.Error
- Info - CalculateAverageFillPrice by asset quote HOT 1
- Adding a new symbol to a existing subscribtion HOT 3
- unsafe access to subscriptions collection on SocketConnection.ProcessReconnectAsync HOT 2
- request for new common features - withdraw HOT 1
- CallResult Error code is null on request timed out HOT 1
- Proposal: Ability for all Error derived classes to have Code and Data HOT 1
- Remove the ArrayConverter and Cache the New Expressions instead of using Activator.CreateInstance
- It is not possible to change ratelimiters after instantiating the REST client. HOT 2
- Exception "Value cannot be null" in RestApiClient.ParseRateLimitResponse HOT 1
- Hi i'm seeing an exception even though i haven't changed anything HOT 2
- How can i set BaseAddress, BaseAddressUsdtFutures for test url's HOT 2
- Mexc wrapper? HOT 3
- Custom KeepAliveInterval to SocketOptions
- CryptoExchange.Net work with Coinbase Pro's API in the Future???
- Improvement: Add "ExchangeName" to "IRestApiClient" HOT 1
- Common interface for SocketClients
- Miss (Parameter 'accountId')) on common PlaceOrderAsync for Huobi
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cryptoexchange.net.