Code Monkey home page Code Monkey logo

basic-lp-liquidation-notifier's Introduction

Basic BSC LP Liquidation monitor

This script simply checks an LP initial price vs a simple token pair (pair of 2 tokens in 50/50 weight). If the threshold between the LP prices is surpassed we get notified through telegram immediately to close the position on our own / deleverage / do something fast.

The script can be further enhanced to allow more robust token pairs or other chains (super easy to do but not a necessary requirement for me as of now) or other stuff I simply don't need now.. You are free to fork and make pull requests if you want to enhance it

Usage

Copy the testlocal.json as local.json and customize as you wish.

  • threshold of a token is a percentage (0.1 -> 10%)
  • pairName is for logging purposes only
  • addrA/addrB are the tokens forming the LP

For usage simply create a crontab (crontab -e, set the time interval you would like to be called and make it execute the cron.sh script), that's it.

basic-lp-liquidation-notifier's People

Contributors

saantiaguilera avatar

Stargazers

Surfacing8671 avatar

Watchers

James Cloos avatar  avatar

Forkers

gab0071

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.