# Trahn Grid Trader - Environment Variables # # This file contains ONLY secrets and sensitive data. # All other configuration is in the appropriate service/config files. # # Copy this file to .env and fill in your values. # ============================================ # DATABASE CREDENTIALS - REQUIRED # ============================================ # PostgreSQL connection details DB_HOST=localhost DB_PORT=5432 DB_NAME=trahn_grid_trader DB_USER=postgres DB_PASSWORD=your_secure_password_here # ============================================ # BLOCKCHAIN SECRETS - REQUIRED # ============================================ # Your Ethereum wallet address WALLET_ADDRESS=0x... # Your wallet private key (with 0x prefix) - KEEP THIS SECRET! # Only required for LIVE trading (not needed for paper trading) PRIVATE_KEY=0x... # Ethereum RPC endpoint (Infura, Alchemy, etc.) ETHEREUM_API_ENDPOINT=https://mainnet.infura.io/v3/YOUR_PROJECT_ID # ============================================ # API KEYS - OPTIONAL # ============================================ # Dune Analytics API key (get one at https://dune.com/settings/api) # Optional: Leave empty to use fallback mode (current price as midpoint) DUNE_API_KEY= # ============================================ # OPTIONAL - API SECURITY # ============================================ # Bearer token for REST API authentication. # All /v1/* endpoints require "Authorization: Bearer " when set. # Leave empty to allow unauthenticated access (development only). API_KEY= # CORS allowed origin. Default "*" (any origin). # Set to your frontend URL in production (e.g., https://trahn.example.com) CORS_ALLOW_ORIGIN=* # ============================================ # OPTIONAL - NOTIFICATIONS # ============================================ # Webhook URL for notifications (Slack, Discord, etc.) # Leave empty to disable notifications WEBHOOK_URL=