123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- # ========================================
- # Hyperliquid API Configuration (CCXT Style)
- # ========================================
- # Your Hyperliquid private key (required)
- HYPERLIQUID_PRIVATE_KEY=your_private_key_here
- # Your Hyperliquid secret key (may be optional depending on implementation)
- # Some CCXT exchanges require both apiKey and secret, others only one
- HYPERLIQUID_SECRET_KEY=your_secret_key_here
- # Network selection: true for testnet (safe), false for mainnet (real money!)
- HYPERLIQUID_TESTNET=true
- # ========================================
- # Trading Bot Configuration
- # ========================================
- # Default symbol to trade (Hyperliquid format)
- DEFAULT_TRADING_SYMBOL=BTC/USDC:USDC
- # Default trade amount (in base currency)
- DEFAULT_TRADE_AMOUNT=0.001
- # Risk management settings
- RISK_MANAGEMENT_ENABLED=true
- MAX_POSITION_SIZE=100
- STOP_LOSS_PERCENTAGE=2.0
- TAKE_PROFIT_PERCENTAGE=5.0
- # ========================================
- # Telegram Bot Configuration
- # ========================================
- # Get these from @BotFather in Telegram
- TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here
- # Get this by running: python utils/get_telegram_chat_id.py
- TELEGRAM_CHAT_ID=your_chat_id_here
- # Enable/disable Telegram integration
- TELEGRAM_ENABLED=true
- # ========================================
- # Bot Monitoring Configuration
- # ========================================
- # Heartbeat interval for monitoring orders, positions, and price alarms (in seconds)
- # Default: 30 seconds - good balance between responsiveness and API usage
- # Minimum recommended: 10 seconds (to avoid rate limiting)
- # Maximum recommended: 300 seconds (5 minutes)
- BOT_HEARTBEAT_SECONDS=30
- # ========================================
- # Logging
- # ========================================
- # Options: DEBUG, INFO, WARNING, ERROR
- LOG_LEVEL=INFO
- # Enable/disable logging to file (true/false)
- LOG_TO_FILE=true
- # Log file path (relative to project root)
- LOG_FILE_PATH=logs/trading_bot.log
- # Log rotation type: 'size' (rotate when file gets too big) or 'time' (rotate daily/hourly)
- LOG_ROTATION_TYPE=size
- # For size-based rotation: max file size in MB before rotation
- LOG_MAX_SIZE_MB=10
- # For time-based rotation: when to rotate ('midnight', 'H' for hourly, 'D' for daily)
- LOG_ROTATION_INTERVAL=midnight
- # Number of backup log files to keep (older files are automatically deleted)
- LOG_BACKUP_COUNT=5
|