Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 1.22 KB

README.md

File metadata and controls

40 lines (32 loc) · 1.22 KB

Elastic Liquidity Mining Helper

This is a very simple program that helps monitoring farming positions on kyberswap.com and open/adjust corresponding short positions on Binance for hedging.

Quick Start

Clone code:

git clone https://github.com/hiepnv90/elastic-lm.git
cd elastic-lm

Example config:

debug: false
graphql: "https://api.thegraph.com/subgraphs/name/kybernetwork/kyberswap-elastic-matic" # URL endpoint to thegraph's GraphQL
positions: ["0", "1"] # your farming positions on kyberswap.com
binance:
  api_key: "test_binance_api_key"
  secret_key: "test_secret_key"
amount_threshold_bps: 100 # 1% of max amount0 at min price (lower tick)

Run program:

go run ./cmd/elastic-lm/main.go --config elastic-lm.yaml

Build program:

go build ./cmd/elastic-lm

Limitations

  1. The program don't store Binance's positions on persistent storage, so the information will be reseted when the program restarted.
  2. The program opens Binance's short positions using market orders it not suitable for opening big positions.
  3. This is a very simple program, users need to take some actions for it to work.

New Updates

  • Support for adjusting Binance's positions with an amount threshold in BPS.