# Polymarket Trading Bot Environment Variables # Copy this file to .env and fill in your values # Load with: source .env or use python-dotenv # ============================================================================= # Required: Wallet Configuration # ============================================================================= # Your MetaMask private key (64 hex characters, with or without 0x prefix) # WARNING: Never commit this to git! PRIVATE_KEY='' # Your Polymarket Safe/Proxy wallet address # Find at: polymarket.com/settings -> General -> Wallet Address PROXY_WALLET='' # ============================================================================= # Required for Gasless Trading & Order Attribution # ============================================================================= # For order volume attribution (required for leaderboard & rewards) # Find your Builder Code at: polymarket.com/settings?tab=builder POLY_BUILDER_CODE='' # For Gasless Transactions # Find at: polymarket.com/settings?tab=api-keys -> Relayer API Keys POLY_RELAYER_API_KEY='' POLY_RELAYER_API_KEY_ADDRESS='' # ============================================================================= # Optional: Network Configuration # ============================================================================= # Polygon RPC URL (default: https://polygon-rpc.com) POLY_RPC_URL='https://polygon-mainnet.infura.io/v3/a0553820d6a743d891d513820f5cdc5c' # Chain ID (default: 137 for Polygon mainnet) # POLY_CHAIN_ID=137 # CLOB API host (default: https://clob.polymarket.com) # POLY_CLOB_HOST=https://clob.polymarket.com # ============================================================================= # Optional: Trading Defaults # ============================================================================= # Default order size in USDC # POLY_DEFAULT_SIZE=1.0 # Default price (0-1, probability) # POLY_DEFAULT_PRICE=0.5 # ============================================================================= # Optional: Paths and Logging # ============================================================================= # Directory for storing encrypted credentials # POLY_DATA_DIR=credentials # Logging level: DEBUG, INFO, WARNING, ERROR POLY_LOG_LEVEL=WARNING