Skip to content

CryptoGnome/aster_lick_hunter

Repository files navigation

⚠️ DEPRECATED - This project is no longer actively developed

For the latest version, please visit: https://github.com/CryptoGnome/aster_lick_hunter_node


Aster Logo

Liquidation Hunter Bot

πŸš€ Advanced Cryptocurrency Trading Bot for Aster DEX

Python Version License Status Dashboard Discord

πŸ’ Support Development - This Bot is 100% FREE!

This bot is completely free and open-source! If you find it useful and want to support ongoing development, please consider creating your Aster DEX account using our referral link:

By using this referral link for your new account, you help fund continued improvements and new features while getting the exact same trading conditions. Thank you for your support!


🎯 What is This Bot?

The Aster Liquidation Hunter Bot is an automated trading system that:

  • πŸ” Monitors cryptocurrency liquidations in real-time
  • πŸ“Š Analyzes market conditions automatically
  • πŸ’° Executes profitable counter-trades
  • πŸ›‘οΈ Manages risk with automated stop-loss and take-profit

Think of it as your automated trading assistant that watches the market 24/7 and trades when big liquidations happen!

πŸ“Ή Video Tutorial - Click to Play

Watch Demo Video

⚑ Quick Start (5 Minutes!)

For Complete Beginners

If you're new to programming or trading bots, we have a special guide just for you: πŸ‘‰ CLICK HERE FOR BEGINNER'S GUIDE πŸ‘ˆ

For Experienced Users

# 1. Clone the repository
git clone https://github.com/CryptoGnome/aster_lick_hunter.git
cd aster_lick_hunter

# 2. Install Python dependencies
pip install -r requirements.txt

# 3. Set up your API keys
cp .env.example .env
# Edit .env with your API credentials

# 4. Run the bot
python launcher.py

# 5. Open dashboard
# Navigate to http://localhost:5000

πŸ“Š Dashboard Preview

Dashboard Screenshot

🌟 Key Features

πŸ€– Automated Trading

  • Real-time Liquidation Monitoring - Connects directly to Aster DEX liquidation stream
  • Smart Trade Execution - Analyzes order books for optimal entry prices
  • Volume-Based Triggers - Only trades when liquidations exceed your thresholds
  • Opposite Trading - Takes the opposite side of liquidations (contrarian strategy)

πŸ›‘οΈ Risk Management

  • Automated Stop-Loss & Take-Profit - Every trade is protected automatically
  • Position Size Limits - Never risk more than you configure
  • Maximum Exposure Control - Limits total capital at risk
  • Hedge Mode Support - Manage LONG and SHORT positions separately

πŸ“ˆ Advanced Features

πŸ†• Position Monitor System

  • Unified TP/SL Management - Centralized control of all protective orders
  • Real-time Price Monitoring - WebSocket-based instant price tracking
  • Instant Profit Capture - Closes positions immediately when profit targets are exceeded
  • Thread-Safe Operations - Re-entrant lock protection for reliability

πŸ†• Intelligent Tranche System

  • Dynamic Position Scaling - Automatically splits positions into tranches
  • Loss-Based Triggers - Creates new tranches at configurable loss thresholds
  • Profit Optimization - Merges profitable tranches to maximize capital efficiency
  • Risk Limiting - Maximum tranches per symbol/side for controlled exposure

πŸ†• Order Batching & Buffering

  • Batch Order Submission - Combines multiple orders for efficiency
  • Liquidation Buffering - Collects liquidations before processing
  • API Rate Optimization - Reduces API calls by up to 70%
  • Configurable Windows - Adjust batch timing to your needs

πŸ“Š Web Dashboard

  • Real-time Updates - Live position and P&L tracking
  • Trade History - Complete record of all trades
  • Performance Analytics - Charts and statistics
  • Easy Configuration - Change settings without editing files
  • Mobile Responsive - Monitor from any device

πŸ”§ Configuration Guide

Essential Settings

{
  "globals": {
    "simulate_only": true,              // START IN SIMULATION MODE!
    "volume_window_sec": 60,            // Time window for volume calculation
    "max_total_exposure_usdt": 1000,    // Maximum total risk
    "use_position_monitor": true,       // Enable advanced position management
    "instant_tp_enabled": true          // Enable instant profit capture
  },
  "symbols": {
    "BTCUSDT": {
      "volume_threshold_long": 100000,  // Min liquidation volume to trade
      "leverage": 10,                   // Trading leverage
      "trade_value_usdt": 100,         // Position size
      "take_profit_pct": 2.0,          // Take profit at 2%
      "stop_loss_pct": 1.0             // Stop loss at 1%
    }
  }
}

Important Configuration Tips

  • ⚠️ ALWAYS start with simulate_only: true
  • πŸ’‘ Start with small trade_value_usdt (like $10-20)
  • πŸ“Š Monitor for a few days before going live
  • 🎯 Adjust volume_threshold based on market activity

πŸ“š Documentation

For Users

For Developers

Advanced Topics

🚦 System Requirements

Minimum Requirements

  • OS: Windows 10/11, macOS 10.14+, Ubuntu 20.04+
  • Python: 3.8 or higher
  • RAM: 2GB minimum, 4GB recommended
  • Storage: 500MB free space
  • Internet: Stable broadband connection

Recommended Setup

  • VPS/Cloud: AWS, DigitalOcean, or similar for 24/7 operation
  • Python: 3.10 or 3.11 for best performance
  • RAM: 4GB or more
  • CPU: 2+ cores

πŸ—οΈ Architecture Overview

graph TD
    A[Aster DEX WebSocket] --> B[Liquidation Stream]
    B --> C[Volume Analyzer]
    C --> D{Threshold Met?}
    D -->|Yes| E[Order Placement]
    D -->|No| F[Continue Monitoring]
    E --> G[Position Monitor]
    G --> H[TP/SL Management]
    H --> I[Dashboard Updates]

    J[User Data Stream] --> G
    K[Database Layer] --> L[Trade History]
    K --> M[Performance Metrics]
    L --> I
    M --> I
Loading

πŸ“ˆ How It Works

The Trading Logic

  1. πŸ” Monitor - Bot watches for liquidation events 24/7
  2. πŸ“Š Analyze - Calculates total liquidation volume in time window
  3. βœ… Trigger - When volume exceeds threshold, prepare to trade
  4. 🎯 Execute - Place opposite trade (SHORT if longs liquidated)
  5. πŸ›‘οΈ Protect - Automatically set stop-loss and take-profit
  6. πŸ“ˆ Manage - Monitor position and adjust as needed
  7. πŸ’° Profit - Close at profit target or manage risk

Example Trade

πŸ”΄ Large Liquidation Detected:
β”œβ”€β”€ Symbol: BTCUSDT
β”œβ”€β”€ Type: LONG positions liquidated
β”œβ”€β”€ Volume: $150,000
└── Action: Preparing SHORT trade

πŸ“Š Volume Analysis:
β”œβ”€β”€ 60-second window: $250,000
β”œβ”€β”€ Threshold: $100,000
└── Decision: βœ… EXECUTE TRADE

πŸ’Ό Trade Execution:
β”œβ”€β”€ Side: SHORT (opposite of liquidation)
β”œβ”€β”€ Entry: $65,432 (0.1% below market)
β”œβ”€β”€ Size: $1,000 (100 USDT Γ— 10 leverage)
β”œβ”€β”€ Take Profit: $64,123 (2% profit)
β”œβ”€β”€ Stop Loss: $66,086 (1% loss)
└── Status: βœ… Orders Placed

⚠️ Risk Warning

IMPORTANT: Cryptocurrency trading carries significant risk!

  • πŸ“‰ You can lose all your invested capital
  • 🎰 Past performance doesn't guarantee future results
  • πŸ“š Understand the strategy before using real money
  • πŸ’΅ Never invest more than you can afford to lose
  • πŸ§ͺ ALWAYS test in simulation mode first
  • πŸ‘€ Monitor the bot regularly, don't "set and forget"

🀝 Community & Support

Get Help

Contributing

We welcome contributions! See our Contributing Guide for details.

πŸ“Š Performance Metrics

System Performance

  • Response Time: < 100ms order placement
  • WebSocket Latency: < 50ms processing
  • Memory Usage: ~150-200MB typical
  • CPU Usage: < 5% on modern systems

Trading Performance

  • Results vary based on market conditions and settings
  • Past performance does not guarantee future results
  • Always monitor and adjust your strategy

πŸ”’ Security

Built-in Protections

  • πŸ” API credentials stored in .env file (never in code)
  • πŸ›‘οΈ HMAC SHA256 signature authentication
  • ⚑ Rate limit protection with smart buffering
  • πŸ” Pre-trade validation checks
  • πŸ’Ύ Database backups and recovery

Best Practices

  • Use API keys with trading permissions only
  • Enable IP whitelist on Aster DEX
  • Regularly update the bot
  • Monitor for unusual activity
  • Keep your system secure and updated

πŸ“ Changelog

See CHANGELOG.md for version history and updates.

πŸ“„ License

This project is licensed under the MIT License - see LICENSE for details.

πŸ™ Acknowledgments

  • Aster DEX - For providing the trading platform and API
  • Community Contributors - For testing and improvements
  • Open Source Libraries - Making this project possible

πŸš€ Quick Links


⚑ Start in Simulation Mode | πŸ“š Read the Docs | πŸ’¬ Join Discord | πŸš€ Trade Safely!

Made with ❀️ by the Aster Liquidation Hunter Team

Stars Forks

About

Early Beta for a new version of a perpetual DEX by Binance: https://www.asterdex.com/en/referral/3TixB2

Topics

Resources

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •