An open API service indexing awesome lists of open source software.

https://github.com/yilmazgun/automated-liquidity-management-for-dexes

An automated bot for managing token liquidity on DEX. Supports Uniswap, PancakeSwap, price control, protection from manipulation, multichain.
https://github.com/yilmazgun/automated-liquidity-management-for-dexes

amm automated-trading-strategies bsc crypto-bot decentralized-exchange defi dex-trading ethereum layer2 liquidity-management liquidity-pool liquidity-pools market-making multichain real-time-monitoring solana tradingbot twap uniswap vwap

Last synced: 3 months ago
JSON representation

An automated bot for managing token liquidity on DEX. Supports Uniswap, PancakeSwap, price control, protection from manipulation, multichain.

Awesome Lists containing this project

README

        

# Liquidity Management Bot for DeFi Tokens | Uniswap, PancakeSwap, DEX
Liquidity Management Bot is a powerful multi-chain solution for automatically balancing liquidity pools on platforms such as Uniswap, PancakeSwap, and other decentralized exchanges (DEXes). Liquidity Management Bot maintain token prices within a specified range (±1–10%), safeguards against MEV attacks (including sandwich attacks and frontrunning), and utilizes adaptive trading strategies (TWAP, VWAP, and threshold triggers) to optimize yields.
The bot maintains price stability, minimizes volatility and protects against manipulation (MEV attacks, sandwich bots).

**Automated bot for token liquidity management on DEX.**
Maintains price stability, minimizes volatility and protects against manipulation.
Integrations: Uniswap v3/v4, PancakeSwap, Chainlink, Ethereum/BSC/Solana.

## To get access to GUI version DM me on Telegram
### **[@ZeronodeX](https://t.me/ZeronodeX)**

[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](LICENSE)
[![Python 3.10+](https://img.shields.io/badge/Python-3.10+-blue.svg)](https://www.python.org/)

## 📌 Features
**Automated Pool Balancing**
- the bot performs auto-balancing of liquidity across pools on Uniswap, PancakeSwap, and other DEXes, ensuring stable and efficient trading.

**Price Control within a Specified Range**
- A built-in price control mechanism maintains the token’s value within a predefined range (±1% to ±10%), minimizing volatility.

**Protection Against MEV Attacks** (sandwich bots, frontrunning).
- Advanced algorithms protect your funds against MEV attacks such as sandwich attacks and frontrunning, reducing the risk of market manipulation.

**Adaptive Strategies**: TWAP, VWAP, threshold triggers.
- Implementing strategies like TWAP (Time-Weighted Average Price), VWAP (Volume-Weighted Average Price), and threshold triggers, the bot dynamically adjusts to changing market conditions.

**Multi-Chain Support**:
- The solution supports Ethereum, Binance Smart Chain (BSC), Solana, and Layer 2 solutions, offering flexibility and scalability for users worldwide.

**Real-Time Monitoring Dashboard:** for real-time monitoring.
- An integrated dashboard provides real-time monitoring of pool status, liquidity metrics, and trading activity, simplifying decision-making.

### Requirements
- Python 3.10+
- Node.js (to work with web3.js)
- Blockchain node (Infura/Alchemy for Ethereum, QuickNode for Solana) or public RPC.

## ⚙️ Parameter setting

'general:

token: "YOURTOKEN"

base_currency: "USDT"

blockchain: "ethereum"

dex: "uniswap_v3"

liquidity:

min_liquidity: 10000 # USD

max_liquidity: 500000 # USD

rebalance_threshold: 5% # Unbalance for rebalancing

price_control:

target_range: [0.97, 1.03]

volatility_threshold: 3% # Max. deviation in 1 hour

strategy: "twap" # Or "vwap."

security:

max_order_size: 5% # From liquidity

new_address_filter: 24h # Blocking of new wallets

multisig: true # Require 2/3 of the signatures'

## 🛡️ Security

Recommendations
1. Never use the private key of the main wallet.
Use a hardware wallet (Ledger/Trezor) or multisig (Gnosis Safe).

2. Transaction limits:
Set the daily limit in config.yaml.

3. Backup:
Save configuration files and cid-phrases on a regular basis.

4. Auditing
Code and smart contracts should be audited by independent auditors before use in mainnet.

## Why Choose Liquidity Manager Bot?
**1. Optimized Yields:**
Automatic liquidity rebalancing maximizes yields by precisely controlling prices and minimizing impermanent loss.

**2. Enhanced Security:**
Robust protection against MEV attacks ensures that your funds remain secure in a highly competitive DeFi landscape.

**3. Scalability and Flexibility:**
With support for multiple blockchains, our bot is suitable for managing liquidity across major platforms and niche projects alike.

**4. Transparency and Control:**
A real-time dashboard offers full visibility into operations, crucial for maintaining trust in the DeFi market.

## 🌐 Example scenarios
- Scenario 1: Token launch

price_control:

target_range: [0.90, 1.10]

strategy: "twap"

twap_interval: 30m # Stretching orders for 30 minutes

- Scenario 2: Panic protection

security:

max_order_size: 2%

new_address_filter: 48h

alert_threshold: 10% # Notification when liquidity drops by 10%