mirror of
https://github.com/saymrwulf/alpha-arena.git
synced 2026-05-14 20:37:51 +00:00
A comprehensive autonomous trading system for Polymarket prediction markets featuring multi-LLM provider support, a native macOS menu bar app, and a web-based control dashboard. Key features: - Multi-agent trading system (Research, Risk, Execution, Reflection agents) - LLM provider flexibility (Anthropic, OpenAI, Google, xAI, Local models) - Automatic provider fallback chain for resilience - Native Swift/SwiftUI macOS menu bar application - FastAPI web dashboard with real-time WebSocket updates - Risk management with kill switch - Technical indicators and market analysis
60 lines
2.5 KiB
Text
60 lines
2.5 KiB
Text
# Polymarket Trading Harness - Environment Configuration
|
|
# Copy this file to .env and fill in your credentials
|
|
|
|
# ==============================================================================
|
|
# WALLET CONFIGURATION (Required)
|
|
# ==============================================================================
|
|
WALLET_PRIVATE_KEY=your_polygon_wallet_private_key_here
|
|
WALLET_ADDRESS=your_polygon_wallet_address_here
|
|
|
|
# ==============================================================================
|
|
# POLYMARKET API (Required for trading)
|
|
# ==============================================================================
|
|
# Get your API credentials from Polymarket
|
|
POLYMARKET_API_KEY=your_polymarket_api_key
|
|
POLYMARKET_API_SECRET=your_polymarket_api_secret
|
|
POLYMARKET_API_PASSPHRASE=your_polymarket_passphrase
|
|
|
|
# ==============================================================================
|
|
# LLM PROVIDERS (At least one required)
|
|
# ==============================================================================
|
|
|
|
# Anthropic (Claude) - Recommended for best performance
|
|
ANTHROPIC_API_KEY=your_anthropic_api_key
|
|
|
|
# OpenAI (GPT-4o, o1)
|
|
OPENAI_API_KEY=your_openai_api_key
|
|
|
|
# xAI (Grok) - Best for real-time X/Twitter sentiment
|
|
XAI_API_KEY=your_xai_api_key
|
|
|
|
# Local Models (Ollama/vLLM) - No API key needed
|
|
# OLLAMA_BASE_URL=http://localhost:11434
|
|
|
|
# ==============================================================================
|
|
# SENTIMENT PROVIDERS (Optional)
|
|
# ==============================================================================
|
|
|
|
# Twitter/X API (for sentiment analysis)
|
|
TWITTER_BEARER_TOKEN=your_twitter_bearer_token
|
|
|
|
# ==============================================================================
|
|
# KALSHI (Optional - for cross-platform arbitrage)
|
|
# ==============================================================================
|
|
KALSHI_API_KEY=your_kalshi_api_key
|
|
KALSHI_API_SECRET=your_kalshi_api_secret
|
|
|
|
# ==============================================================================
|
|
# RISK CONTROLS (Optional - defaults in config.yaml)
|
|
# ==============================================================================
|
|
MAX_POSITION_SIZE_USDC=100
|
|
DAILY_LOSS_LIMIT_USDC=50
|
|
MAX_OPEN_POSITIONS=5
|
|
KILL_SWITCH=false
|
|
|
|
# ==============================================================================
|
|
# AGENT CONFIGURATION (Optional - defaults in config.yaml)
|
|
# ==============================================================================
|
|
DEFAULT_LLM_PROVIDER=anthropic
|
|
DEFAULT_LLM_MODEL=claude-sonnet-4-20250514
|
|
AGENT_LOOP_INTERVAL_SECONDS=60
|