This bot provides complete manual control of your Hyperliquid account via Telegram, with professional-grade statistics tracking including P&L, win rates, Sharpe ratio, Sortino ratio, and all the metrics you'd expect from a trading platform.
|
5 일 전 | |
---|---|---|
config | 6 일 전 | |
src | 6 일 전 | |
utils | 5 일 전 | |
.gitignore | 6 일 전 | |
DEPLOYMENT_GUIDE.md | 6 일 전 | |
PROJECT_STRUCTURE.md | 6 일 전 | |
QUICK_START.md | 6 일 전 | |
README.md | 6 일 전 | |
SETUP_GUIDE.md | 6 일 전 | |
demo_stats.py | 6 일 전 | |
requirements.txt | 6 일 전 | |
telegram_bot.py | 6 일 전 | |
trading_bot.py | 6 일 전 |
Control your Hyperliquid account from your phone with comprehensive trading statistics
This bot provides complete manual control of your Hyperliquid account via Telegram, with professional-grade statistics tracking including P&L, win rates, Sharpe ratio, Sortino ratio, and all the metrics you'd expect from a trading platform.
# Clone or download this repository
cd trader_hyperliquid
# Create virtual environment
python3 -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
Create a bot: Message @BotFather on Telegram
/newbot
Get your Chat ID: Run the helper script
python get_telegram_chat_id.py
# Copy example configuration
cp env.example .env
# Edit .env with your details
nano .env # or use any text editor
Required settings in .env
:
# Hyperliquid API
HYPERLIQUID_PRIVATE_KEY=your_private_key_here
HYPERLIQUID_TESTNET=true
# Telegram Bot
TELEGRAM_ENABLED=true
TELEGRAM_BOT_TOKEN=your_bot_token_here
TELEGRAM_CHAT_ID=your_chat_id_here
# Trading Settings
DEFAULT_TRADING_SYMBOL=BTC/USDC:USDC
DEFAULT_TRADE_AMOUNT=0.001
python manual_trading_bot.py
Open Telegram → Find your bot → Send /start
You'll see quick action buttons for:
Place Orders:
/buy 0.001 50000 # Buy 0.001 BTC at $50,000
/sell 0.001 55000 # Sell 0.001 BTC at $55,000
Monitor Account:
/balance # Account balance + P&L summary
/positions # Open positions
/orders # Pending orders
/trades # Recent trade history
View Statistics:
/stats # Complete trading statistics
📊 Trading Statistics
💰 Balance Overview
• Initial: $1,000.00
• Current: $1,150.00
• Total P&L: $150.00
• Total Return: 15.00%
📈 Trading Activity
• Total Trades: 25
• Buy Orders: 13
• Sell Orders: 12
• Days Active: 30
🏆 Performance Metrics
• Win Rate: 68.0%
• Profit Factor: 2.15
• Avg Win: $45.50
• Avg Loss: $28.75
• Expectancy: $6.25
📊 Risk Metrics
• Sharpe Ratio: 1.85
• Sortino Ratio: 2.41
• Max Drawdown: 8.5%
• Volatility: 12.3%
• VaR (95%): 3.2%
🎯 Best/Worst
• Largest Win: $125.00
• Largest Loss: $75.00
• Max Consecutive Wins: 5
• Max Consecutive Losses: 2
📅 Since: 2024-01-15
File | Purpose |
---|---|
manual_trading_bot.py |
Main launcher - Start this for manual trading |
telegram_bot.py |
Telegram interface with trading commands |
trading_stats.py |
Comprehensive statistics tracking |
hyperliquid_client.py |
Hyperliquid API wrapper |
config.py |
Configuration management |
get_telegram_chat_id.py |
Helper to find your Chat ID |
trading_stats.json |
Your trading statistics (auto-created) |
DEFAULT_TRADING_SYMBOL=ETH/USDC:USDC
DEFAULT_TRADE_AMOUNT=0.01
LOG_LEVEL=INFO # DEBUG, INFO, WARNING, ERROR
# Check configuration
python -c "from config import Config; Config.validate()"
# Check Telegram setup
python get_telegram_chat_id.py
This bot is designed for manual trading control via phone. All features are focused on giving you complete control over your Hyperliquid account with professional-grade statistics tracking.
For technical issues:
Happy trading! 🚀📱