Giter Club home page Giter Club logo

futures-keepers's People

Contributors

0xjocke avatar artdgn avatar liamzebedee avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

futures-keepers's Issues

Observability

Looking into increasing the observability of the keeper in production:

  • alerts for keeper wallet balances (sUSD, ETH)

  • list of kept markets

  • list of open positions

  • list of positions at risk of liquidation

  • alerts for keeper crashes/restarts

  • graph of keeper ETH/sUSD balance over time

  • graphs of # orders liquidated over time for each market

  • Setup devops infra with AWS cloudwatch. (see https://github.com/Synthetixio/snapshot-keeper).

  • Setup alerts for keeper wallet balances.

  • Add mechanism to withdraw liquidation rewards from accounts.

Use standard logging formats

Convert

        console.log(
          "FuturesMarket",
          this.baseAsset,
          blue("PositionModified"),
          `[id=${id} account=${account}]`
        );

Observability iteration #2

Failures:

  • ETH RPC node disconnects.
  • Unexpected error (eg. nonce error).

Metrics

  • eth node connection drops
  • new blocks on ovm testnet
  • keeper restarts
Latency 
    How long it takes to liquidate a position.
Traffic
    How many new blocks are coming through?
    How many new positions are being opened/closed?
Errors
    ETH RPC node Failures
    Keeper wallet out of ETH
    Application crash due to code error
Saturation

Store and collect logs.

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.