HLGOBOT - Hyperliquid Wallet Monitor & Anaylzer

A Go-based tool for the Hyperliquid DEX. Features real-time wallet tracking via Telegram and a 'Leaderboard Finder' to discover top traders by performance metrics.

golangmonitoringdefihyperliquidtelegram-botanalytics

HLGOBOT

Go bot for Hyperliquid:

  • Wallet monitoring with real-time Telegram notifications
  • Leaderboard Finder: find the traders closest to target criteria

๐Ÿš€ Installation

  1. Clone the repo
    git clone https://github.com/youruser/HLGOBOT.git
    cd HLGOBOT
    
  2. Install dependencies
    go mod tidy
    

โš™๏ธ Configuration

Create a config.json file at the root:

{
  "bot_token": "YOUR_BOT_TOKEN",
  "chat_id": "YOUR_CHAT_ID"
}
  • Get a token via @BotFather on Telegram
  • Retrieve your chat_id via the Telegram API

๐Ÿ•ต๏ธโ€โ™‚๏ธ Monitor a Hyperliquid wallet (watch)

Run the watcher to receive a Telegram notification for every new order:

# From the project root
# Replace <wallet_address> with the address you want to monitor

go run cmd/watch/main.go <wallet_address>

๐Ÿ† Use the Leaderboard Finder

Find the N traders closest to your target criteria (equity, pnl, volume, etc.):

# Example usage with custom flags

go run cmd/leaderboardfinder/main.go \
  -equity=138526.48 \
  -pnl=173310.97 \
  -volume=11801800.46 \
  -period=alltime \
  -top=2

๐Ÿ—‚๏ธ Project Structure

HLGOBOT/
โ”‚
โ”œโ”€โ”€ cmd/
โ”‚   โ”œโ”€โ”€ watch/                # CLI for the Telegram watcher
โ”‚   โ”‚   โ””โ”€โ”€ main.go
โ”‚   โ””โ”€โ”€ leaderboardfinder/    # CLI for the leaderboard finder
โ”‚       โ””โ”€โ”€ main.go
โ”‚
โ”œโ”€โ”€ internal/
โ”‚   โ”œโ”€โ”€ watcher/              # Watcher business logic
โ”‚   โ”‚   โ””โ”€โ”€ watch.go
โ”‚   โ””โ”€โ”€ leaderboard/          # Leaderboard finder business logic
โ”‚       โ””โ”€โ”€ finder.go
โ”‚
โ”œโ”€โ”€ config.json               # Telegram configuration
โ”œโ”€โ”€ go.mod / go.sum           # Go dependencies
โ””โ”€โ”€ .gitignore

๐Ÿ‘ฉโ€๐Ÿ’ป Contributing

  • Fork the repo, create a branch, submit a PR!
  • Add new CLI modules in cmd/ for other use cases (stats, export, etc.)
  • Add unit tests in internal/
  • Suggest improvements (multi-wallet, multi-chat, other channels...)

๐Ÿ“š Resources


๐Ÿ“ License

MIT