env.example 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. # ========================================
  2. # Hyperliquid API Configuration (CCXT Style)
  3. # ========================================
  4. # Your Hyperliquid private key (required)
  5. HYPERLIQUID_PRIVATE_KEY=your_private_key_here
  6. # Your Hyperliquid secret key (may be optional depending on implementation)
  7. # Some CCXT exchanges require both apiKey and secret, others only one
  8. HYPERLIQUID_SECRET_KEY=your_secret_key_here
  9. # Network selection: true for testnet (safe), false for mainnet (real money!)
  10. HYPERLIQUID_TESTNET=true
  11. # ========================================
  12. # Trading Bot Configuration
  13. # ========================================
  14. # Default token for market/price commands (when no token specified)
  15. DEFAULT_TRADING_TOKEN=BTC
  16. # Risk management settings
  17. RISK_MANAGEMENT_ENABLED=true
  18. STOP_LOSS_PERCENTAGE=10.0
  19. # ========================================
  20. # Telegram Bot Configuration
  21. # ========================================
  22. # Get these from @BotFather in Telegram
  23. TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here
  24. # Get this by running: python utils/get_telegram_chat_id.py
  25. TELEGRAM_CHAT_ID=your_chat_id_here
  26. # Enable/disable Telegram integration
  27. TELEGRAM_ENABLED=true
  28. # ========================================
  29. # Bot Monitoring Configuration
  30. # ========================================
  31. # Heartbeat interval for monitoring orders, positions, and price alarms (in seconds)
  32. # Default: 30 seconds - good balance between responsiveness and API usage
  33. # Minimum recommended: 10 seconds (to avoid rate limiting)
  34. # Maximum recommended: 300 seconds (5 minutes)
  35. BOT_HEARTBEAT_SECONDS=30
  36. # ========================================
  37. # Logging
  38. # ========================================
  39. # Options: DEBUG, INFO, WARNING, ERROR
  40. LOG_LEVEL=INFO
  41. # Enable/disable logging to file (true/false)
  42. LOG_TO_FILE=true
  43. # Log file path (relative to project root)
  44. LOG_FILE_PATH=logs/trading_bot.log
  45. # Log rotation type: 'size' (rotate when file gets too big) or 'time' (rotate daily/hourly)
  46. LOG_ROTATION_TYPE=size
  47. # For size-based rotation: max file size in MB before rotation
  48. LOG_MAX_SIZE_MB=10
  49. # For time-based rotation: when to rotate ('midnight', 'H' for hourly, 'D' for daily)
  50. LOG_ROTATION_INTERVAL=midnight
  51. # Number of backup log files to keep (older files are automatically deleted)
  52. LOG_BACKUP_COUNT=5