# Polymarket Trading System Configuration # Copy this file to .env and fill in your values # ============================================================================= # REQUIRED: Wallet Configuration # ============================================================================= # Your Polygon wallet private key (without 0x prefix) # SECURITY: Never commit this file with real keys! PRIVATE_KEY=your_private_key_here # Funder/proxy wallet address (if using email/Magic wallet) # Leave empty if using standard EOA wallet FUNDER_ADDRESS= # Signature type: 0=EOA (MetaMask), 1=Email/Magic, 2=Browser proxy SIGNATURE_TYPE=0 # ============================================================================= # API Configuration # ============================================================================= # CLOB API host (default: production) CLOB_HOST=https://clob.polymarket.com # Gamma API host (default: production) GAMMA_HOST=https://gamma-api.polymarket.com # Polygon chain ID (137 = mainnet, 80001 = Mumbai testnet) CHAIN_ID=137 # ============================================================================= # Strategy Configuration # ============================================================================= # Arbitrage settings ARBITRAGE_POLL_INTERVAL=2.0 ARBITRAGE_MIN_PROFIT=0.01 ARBITRAGE_MAX_POSITION=100.0 # Statistical arbitrage settings STAT_ARB_ZSCORE_ENTRY=2.0 STAT_ARB_ZSCORE_EXIT=0.5 STAT_ARB_LOOKBACK_DAYS=30 # AI model settings AI_MODEL_MIN_EDGE=0.10 AI_MODEL_RETRAIN_DAYS=7 # Market maker settings MM_SPREAD_TARGET=0.02 MM_MAX_POSITION=500.0 # Copy trading settings COPY_TRADE_MULTIPLIER=1.0 COPY_TRADE_MAX_POSITION=100.0 # ============================================================================= # Risk Management # ============================================================================= # Maximum position size per market (in dollars) MAX_POSITION_SIZE=100.0 # Maximum total portfolio exposure (in dollars) MAX_PORTFOLIO_EXPOSURE=1000.0 # Daily loss limit (halt trading if exceeded) DAILY_LOSS_LIMIT=50.0 # Stop loss percentage (0.0 to 1.0) STOP_LOSS_PCT=0.20 # ============================================================================= # Logging Configuration # ============================================================================= # Log level: DEBUG, INFO, WARNING, ERROR LOG_LEVEL=INFO # Log file path (leave empty for console only) LOG_FILE=logs/trading.log # Enable trade logging to CSV ENABLE_TRADE_LOG=true TRADE_LOG_FILE=logs/trades.csv # ============================================================================= # Optional: External Data Sources (for AI models) # ============================================================================= # Twitter API (for sentiment analysis) # TWITTER_BEARER_TOKEN= # News API # NEWS_API_KEY= # OpenAI API (for LLM-based predictions) # OPENAI_API_KEY=