Giter VIP home page Giter VIP logo

Comments (3)

sonvister avatar sonvister commented on June 14, 2024

@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.

dharders avatar dharders commented on June 14, 2024

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.

sonvister avatar sonvister commented on June 14, 2024

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)

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.