1 line
5.3 KiB
JSON
1 line
5.3 KiB
JSON
{"repo": "charlesaurav13/autohedge-trading-bot", "files": {".env.example": {"d9784da5b412b9a8d5cf1cb0807c320138a2c012": {"t": 1785747129.0589933, "n": 5133, "h": "2133317f44f983a6", "c": "# ============================================\n# AUTOHEDGE TRADING BOT - ENVIRONMENT CONFIG\n# ============================================\n# Copy this file to .env and fill in your values\n# DO NOT commit .env to Git (it's in .gitignore)\n\n# ============================================\n# TRADING CONFIGURATION\n# ============================================\nTRADING_MODE=paper # paper or live\nMIN_SIGNAL_STRENGTH=2.0 # 0-20 scale (lower = more aggressive)\nPOSITION_SIZE_PCT=40 # % of capital per trade (with leverage)\nLEVERAGE=10 # Binance Futures leverage\nMAX_TRADES_PER_DAY=3 # Daily trade limit\n\n# Risk Management\nSTOP_LOSS_PCT=5 # Stop loss percentage\nTAKE_PROFIT_PCT=10 # Take profit percentage\n\n# ============================================\n# BINANCE API (Required for trading)\n# ============================================\n# Get from: https://www.binance.com/en/my/settings/api-management\nBINANCE_API_KEY=your_api_key_here\nBINANCE_API_SECRET=your_secret_here\nBINANCE_TESTNET=false # Use testnet for testing\n\n# ============================================\n# AI MODELS\n# ============================================\n\n# DeepSeek API (for AutoHedge LLM)\n# Get from: https://platform.deepseek.com/\nDEEPSEEK_API_KEY=sk-your-deepseek-key-here\nDEEPSEEK_MODEL=deepseek-reasoner # or deepseek-chat\n\n# Local Model (Alternative - FREE!)\nUSE_LOCAL_MODEL=true # Use Ollama instead of API\nLOCAL_MODEL=openai/deepseek-r1:1.5b # Ollama model name\n\n# RL Model Integration\nUSE_RL_MODEL=true # Enable trained RL model\nRL_MODEL_PATH=models/production/v1.2.0.zip\nRL_INTEGRATION_MODE=hybrid # hybrid/replace/veto/ensemble\nREQUIRE_CONSENSUS=true # Both LLM & RL must agree\n\n# ============================================\n# NEWS SOURCES (for sentiment analysis)\n# ============================================\n# CryptoPanic API (optional)\nCRYPTOPANIC_API_KEY=your_cryptopanic_key_here\n\n# NewsAPI (optional)\nNEWSAPI_KEY=your_newsapi_key_here\n\n# ============================================\n# LOGGING & MONITORING\n# ============================================\nLOG_LEVEL=INFO # DEBUG, INFO, WARNING, ERROR\nLOG_FILE=bot_local_final.log\nSAVE_TRADES_TO_FILE=true\n\n# TensorBoard (for training visualization)\nTENSORBOARD_PORT=6006\n\n# ============================================\n# NOTIFICATIONS (Optional)\n# ============================================\n\n# Telegram Bot\nTELEGRAM_BOT_TOKEN=your_telegram_bot_token\nTELEGRAM_CHAT_ID=your_chat_id\n\n# Discord Webhook\nDISCORD_WEBHOOK_URL=your_discord_webhook_url\n\n# Email (SMTP)\nEMAIL_SMTP_SERVER=smtp.gmail.com\nEMAIL_SMTP_PORT=587\nEMAIL_FROM=your_email@gmail.com\nEMAIL_PASSWORD=your_app_password\nEMAIL_TO=notifications@yourdomain.com\n\n# ============================================\n# TRAINING CONFIGURATION\n# ============================================\n\n# Automated Retraining\nAUTO_RETRAIN_ENABLED=false # Enable weekly auto-retraining\nAUTO_RETRAIN_SCHEDULE=\"0 2 * * 1\" # Cron format (Monday 2 AM)\nMIN_TRADES_FOR_RETRAIN=20 # Minimum new trades needed\n\n# Hardware\nTRAINING_DEVICE=mps # mps (M1/M2/M4 Mac), cuda, or cpu\nNUM_WORKERS=4 # Parallel training workers\n\n# ============================================\n# ADVANCED SETTINGS\n# ============================================\n\n# Paper Trading\nPAPER_TRADING_INITIAL_BALANCE=100 # Starting balance (USDT)\nPAPER_TRADING_SAVE_STATE=true # Persist state across restarts\n\n# API Rate Limiting\nBINANCE_RATE_LIMIT_PER_MINUTE=100\nDEEPSEEK_RATE_LIMIT_PER_MINUTE=20\n\n# Trading Intervals\nCHECK_INTERVAL_SECONDS=900 # 15 minutes\nPOSITION_CHECK_INTERVAL=300 # 5 minutes\n\n# Model Confidence Thresholds\nAUTOHEDGE_MIN_CONFIDENCE=0.70\nAUTOHEDGE_OVERRIDE_THRESHOLD=0.85 # High confidence can override RL\n\n# ============================================\n# DATABASE (Optional - for trade history)\n# ============================================\nDATABASE_URL=sqlite:///trades.db # or postgresql://...\n\n# ============================================\n# DEVELOPMENT & TESTING\n# ============================================\nDEBUG_MODE=false\nMOCK_TRADING_API=false # Mock API calls for testing\nSKIP_NEWS_SENTIMENT=false # Skip news for faster testing\n\n# ============================================\n# SECURITY\n# ============================================\n# Restrict IP (Binance API security)\nALLOWED_IPS=0.0.0.0/0 # Change to your IP for production\n\n# API Request Signing\nENABLE_API_SIGNATURE=true\n\n# ============================================\n# NOTES\n# ============================================\n# 1. Never commit .env to Git!\n# 2. Use strong API keys\n# 3. Enable IP restrictions on Binance\n# 4. Start with paper trading\n# 5. Test with small amounts first\n# 6. Monitor closely for first 24 hours\n#\n# For help: https://github.com/charlesaurav13/AutoHedge/issues\n"}}}} |