Comments (3)
@pingu2k4, at the moment, no data is your event notification. You can use a watchdog timer that is reset when any data is received that, when expires, will abort streaming by cancelling the controller and then you can begin streaming again.
I am looking into adding the watchdog timer feature internally that would abort the web socket receive after a configurable time and throw an exception.
from binance.
If this was related to the recent Binance outage (the timing fits), they just added a new API endpoint to check if the API is down for "maintenance".
Link to Official Docs
GET /wapi/v3/systemStatus.html
Response:
{
"status": 0, // 0: normal,1:system maintenance
"msg": "normal" // normal or system maintenance
}
This together with a watchdog timer would be perfect
from binance.
The WatchdogTimer
utility is available to execute an action if not kicked for a configurable time interval. It is incorporated into the newer managers and will abort the stream if no data has been received [to that manager]. The BinanceWebSocketStreamController
also adds a system status check during the connection retry pausing to wait indefinitely during maintenance. There are IRetryTaskController
events for pausing and resuming that are raised during connection retry (the delay associated with pausing will be longer during maintenance).
from binance.
Related Issues (20)
- Orderupdate vs Tradeupdate HOT 4
- Get24HourStatisticsAsync exception HOT 3
- Please add additional ExchangeInfo filters for market orders to work HOT 1
- [newbie_Question] what to put for cancellation token? HOT 3
- New Binance MinimumNotional and GetLowerValue return incorrect values
- Error code 1131
- Binance changes will affect this api... HOT 2
- order.Fills comes null :( HOT 1
- Margin orders HOT 1
- unable to parse result when using GetOrderBookTopsAsync HOT 1
- Binance Future Support HOT 1
- GetKlinesAsync returns nothing
- PlaceAsync (limitorder) places multiple orders on one call
- problem in connecting to binance HOT 1
- OCO ORDER HELP!!!!
- How to initialize BinanceHttpClient?
- Is it possible to create new Symbols? HOT 1
- Api.GetOpenOrdersAsync Problem HOT 1
- How to provide BinanceApiOptions when initializing BinanceApi
- how set sl and tp after open position
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 binance.