π Overview
The Hyperliquid Whale Tracker is an advanced feature that monitors whale wallet activities on the Hyperliquid exchange and enables automated copy trading. When a tracked whale opens a new position, the system can automatically broadcast signals to Discord/Telegram and/or place mirrored trades on your account.
π Real-Time Detection
Monitors whale positions every 5 minutes and detects new positions instantly.
π’ Multi-Platform Alerts
Broadcasts signals to Discord, Telegram, and WhatsApp with rich formatting.
π€ Auto Copy Trading
Automatically mirrors whale positions with your custom settings and risk parameters.
π― Smart Close Tracking
Automatically closes your position when the whale closes theirs.
βοΈ Configuration
Basic Settings
Located in your configuration file under HyperLiquidWhaleTracker:
Messaging Platform Configuration
Trade Settings
π§ How It Works
Detection Process
1Initial Scan
On first run, the system registers all existing whale positions without broadcasting (prevents spam).
2Continuous Monitoring
Every 5 minutes, the system:
- Fetches current positions for each tracked whale
- Compares with previously seen positions
- Detects NEW positions that weren't there before
3Position Identification
A position is considered NEW when:
- The coin wasn't in the whale's portfolio during the last check
- The system hasn't broadcast this position before
4Action Execution
For each new position:
- Broadcasts signal to configured platforms (if enabled)
- Places copy trade order (if enabled)
- Adds position to monitoring for auto-close tracking
Whale Position Data Tracked
| Data Point | Description |
|---|---|
| Coin | Trading pair (e.g., BTC, ETH, SOL) |
| Side | Long or Short position |
| Size | Position size in contracts |
| Entry Price | Whale's entry price |
| Leverage | Position leverage |
| Unrealized PnL | Current profit/loss |
| Liquidation Price | Risk threshold |
π’ Broadcasting Signals
Enabling Broadcasts
Set broadcast_signals: true in your configuration to receive notifications when whales open positions.
Discord Notifications
Rich Embed Format
- Color-coded (Green for LONG, Red for SHORT)
- Organized fields with all position details
- Clickable link to whale's portfolio
- Timestamp for tracking
Telegram Notifications
Markdown Format
- Clean, readable text format
- Monospace code blocks for data
- Direct tracking link
- Mobile-friendly layout
Platform Selection
The system broadcasts to all configured platforms with valid credentials. Platforms without credentials are automatically skipped:
- Discord: Requires
discord_webhook_url - Telegram: Requires both
telegram_bot_tokenandtelegram_chat_id - WhatsApp: Requires
whatsapp_tokenandwhatsapp_phone_id
π€ Automatic Copy Trading
Enabling Auto-Trading
Set place_order: true to automatically mirror whale positions.
How Copy Trading Works
- Position Detection: System detects new whale position
- Symbol Matching: Finds corresponding trading pair on your exchange
- Order Validation: Checks whale order limits and bot availability
- Order Placement: Places market order with your configured settings
- Monitoring: Adds position to close-monitoring system
β οΈ Important: Your Settings, Not Whale's
Your copy trades use YOUR settings, not the whale's:
- Your position size (not whale's)
- Your leverage (not whale's)
- Your TP/SL percentages
- Your risk management rules
Example: Whale opens 100 BTC LONG at 20x leverage β Your copy trade: $100 BTC LONG at 10x leverage (your settings)
Exchange Compatibility
The system automatically adapts symbols for your exchange:
| Exchange | Whale Symbol | Your Symbol |
|---|---|---|
| Binance | BTC | BTCUSDT |
| OKX | BTC | BTC-USDT-SWAP |
| Bybit | BTC | BTCUSDT |
| Bitget | BTC | BTCUSDT |
| HyperLiquid | BTC | BTC (no change) |
Order Placement Logic
ποΈ Position Monitoring & Auto-Close
Automatic Close Tracking
When you copy a whale trade, the system monitors the whale's position continuously. If the whale closes their position, your copy trade automatically closes too.
How It Works
- Position Registration: After placing copy trade, position is added to monitoring
- Continuous Checking: Every 5 minutes, system checks whale's current positions
- Close Detection: Identifies when whale position size decreases or disappears
- Auto-Close Execution: Immediately closes your corresponding position
Close Scenarios
Full Close (100%)
Whale: Closes entire position
Your Trade: Automatically closes 100% of position
Result: Trade moved to completed, running_orders cleared
Partial Close
Whale: Reduces position size (e.g., 50% close)
Your Trade: Closes matching percentage
Result: Trade updated with new quantities
State Management
π‘οΈ Safety Features
Order Limits
Per-Whale Limit (max_orders_per_whale)
- Default: 2 concurrent orders per whale
- Configurable: Set any number (1-10 recommended)
- Purpose: Prevents overexposure to single whale
Example: Whale #1 has 2 active positions β New position detected β System checks: 2/2 limit reached β Order skipped: "Whale order limit reached"
Demo Mode
Test the system without risking real capital:
In Demo Mode:
- β Detects whale positions
- β Broadcasts signals
- β Logs order details
- β No real orders placed
- β No exchange API calls
Bot Conflict Prevention
Before placing copy trade:
- Checks if target bot has running orders
- Skips order if bot is already trading
- Prevents multiple simultaneous positions on same symbol
Position Validation
Every order is validated for:
- Valid Symbol: Must exist on your exchange
- Current Price: Must be retrievable (> 0)
- Quantity Calculation: Must meet exchange minimums
- Leverage Limits: Within exchange-allowed range
π§ Troubleshooting
Common Issues
β "No whale addresses configured"
Problem: tracking_addresses list is empty
Solution: