hyperliqbot/README.md
2025-07-13 23:35:36 +03:00

105 lines
3.3 KiB
Markdown

# Hyperliquid Trading Bot for Telegram
A next-generation trading bot for the Hyperliquid exchange, fully integrated with Telegram for seamless, secure, and automated crypto trading.
---
## ๐Ÿš€ Features
- **Trade on Hyperliquid via Telegram**: Place, monitor, and manage trades directly from your Telegram app.
- **Secure Agent Wallets**: Never share your private keys. All trading is done via secure agent wallets.
- **Automated Alpha Strategies**: Grid trading, maker rebate mining, HLP staking, arbitrage, and more.
- **Vault System**: Pool funds, earn from multiple strategies, and track your profits.
- **Real-Time Analytics**: Portfolio, P&L, and live market data at your fingertips.
- **Referral & Bonus System**: Earn rewards for inviting friends.
- **Advanced Risk Management**: Built-in controls for leverage, stop-loss, and position sizing.
- **Easy Onboarding**: Step-by-step tutorial and safety guidelines for new users.
---
## ๐Ÿ› ๏ธ Getting Started
### Prerequisites
- Python 3.8+
- Telegram account ([create a bot](https://core.telegram.org/bots#6-botfather))
- Hyperliquid wallet (address & private key)
### Installation
1. **Clone the repository:**
```bash
git clone https://github.com/caelum0x/hyperliqbot
cd hyperliqbot
```
2. **Install dependencies:**
```bash
pip install -r requirements.txt
```
3. **Configure environment variables:**
- Copy `.env.example` to `.env` and fill in your credentials:
```bash
cp .env.example .env
# Edit .env with your details
```
### Configuration
Edit the `.env` file with your:
- Telegram bot token
- Hyperliquid wallet address and private key
- (Optional) Vault and referral details
- Database and API settings
---
## โ–ถ๏ธ Running the Bot
```bash
python run_bot.py
```
---
## ๐Ÿ’ฌ Usage & Commands
Interact with your bot on Telegram using these commands:
- `/start` โ€” Welcome & onboarding
- `/help` โ€” Full command list
- `/portfolio` โ€” View your portfolio & P&L
- `/trade` โ€” Open trading menu
- `/strategies` โ€” List available strategies
- `/start_trading [strategy]` โ€” Start a strategy (e.g. grid, momentum)
- `/stop_trading` โ€” Stop all strategies
- `/deposit` โ€” Add funds to vault
- `/withdraw` โ€” Request withdrawal
- `/status` โ€” Check wallet & trading status
- `/settings` โ€” Adjust preferences
- `/hyperevm` โ€” Explore HyperEVM opportunities
- `/analytics` โ€” View detailed analytics
- `/emergency_stop` โ€” Emergency stop all trading
*See `/help` in the bot for the latest commands and features!*
---
## ๐Ÿ“ Folder Structure
- `hyperliquid/` โ€” Core Hyperliquid API integration
- `strategies/` โ€” Automated trading strategies
- `telegram_bot/` โ€” Telegram bot logic & onboarding
- `examples/` โ€” Example scripts and usage
- `run_bot.py` โ€” Main entry point
---
## ๐Ÿ”’ Security & Best Practices
- **Never share your private keys or secrets.**
- Use a secure environment for running the bot.
- All trades are executed via agent wallets, not your main wallet.
- Start with small amounts and use risk controls.
- Use `/emergency_stop` if you need to halt all trading immediately.
---
## ๐Ÿค Contributing
Pull requests and issues are welcome! Please open an issue to discuss your ideas or report bugs.
---
## ๐Ÿ“œ License
MIT License