env.example 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 symbol to trade (Hyperliquid format)
  15. DEFAULT_TRADING_SYMBOL=BTC/USDC:USDC
  16. # Default trade amount (in base currency)
  17. DEFAULT_TRADE_AMOUNT=0.001
  18. # Risk management settings
  19. RISK_MANAGEMENT_ENABLED=true
  20. MAX_POSITION_SIZE=100
  21. STOP_LOSS_PERCENTAGE=2.0
  22. TAKE_PROFIT_PERCENTAGE=5.0
  23. # ========================================
  24. # Telegram Bot Configuration
  25. # ========================================
  26. # Get these from @BotFather in Telegram
  27. TELEGRAM_BOT_TOKEN=your_telegram_bot_token_here
  28. # Get this by running: python utils/get_telegram_chat_id.py
  29. TELEGRAM_CHAT_ID=your_chat_id_here
  30. # Enable/disable Telegram integration
  31. TELEGRAM_ENABLED=true
  32. # ========================================
  33. # Bot Monitoring Configuration
  34. # ========================================
  35. # Heartbeat interval for monitoring orders, positions, and price alarms (in seconds)
  36. # Default: 30 seconds - good balance between responsiveness and API usage
  37. # Minimum recommended: 10 seconds (to avoid rate limiting)
  38. # Maximum recommended: 300 seconds (5 minutes)
  39. BOT_HEARTBEAT_SECONDS=30
  40. # ========================================
  41. # Logging
  42. # ========================================
  43. # Options: DEBUG, INFO, WARNING, ERROR
  44. LOG_LEVEL=INFO
  45. # Enable/disable logging to file (true/false)
  46. LOG_TO_FILE=true
  47. # Log file path (relative to project root)
  48. LOG_FILE_PATH=logs/trading_bot.log
  49. # Log rotation type: 'size' (rotate when file gets too big) or 'time' (rotate daily/hourly)
  50. LOG_ROTATION_TYPE=size
  51. # For size-based rotation: max file size in MB before rotation
  52. LOG_MAX_SIZE_MB=10
  53. # For time-based rotation: when to rotate ('midnight', 'H' for hourly, 'D' for daily)
  54. LOG_ROTATION_INTERVAL=midnight
  55. # Number of backup log files to keep (older files are automatically deleted)
  56. LOG_BACKUP_COUNT=5