109 lines
3.6 KiB
Plaintext
109 lines
3.6 KiB
Plaintext
# MarketScanner Environment Configuration
|
|
# Copy this file to .env and fill in your values
|
|
|
|
# =============================================================================
|
|
# DATABASE
|
|
# =============================================================================
|
|
POSTGRES_HOST=db
|
|
POSTGRES_PORT=5432
|
|
POSTGRES_DB=marketscanner
|
|
POSTGRES_USER=marketscanner
|
|
POSTGRES_PASSWORD=CHANGE_ME_STRONG_PASSWORD
|
|
|
|
# =============================================================================
|
|
# REDIS
|
|
# =============================================================================
|
|
REDIS_HOST=redis
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD=CHANGE_ME_REDIS_PASSWORD
|
|
|
|
# =============================================================================
|
|
# RABBITMQ
|
|
# =============================================================================
|
|
RABBITMQ_HOST=rabbitmq
|
|
RABBITMQ_PORT=5672
|
|
RABBITMQ_USER=marketscanner
|
|
RABBITMQ_PASSWORD=CHANGE_ME_RABBITMQ_PASSWORD
|
|
|
|
# =============================================================================
|
|
# API KEYS - STOCK DATA
|
|
# =============================================================================
|
|
# Alpha Vantage (free tier: 5 calls/min, 500 calls/day)
|
|
# Get yours at: https://www.alphavantage.co/support/#api-key
|
|
ALPHA_VANTAGE_API_KEY=your_alpha_vantage_key
|
|
|
|
# Polygon.io (optional, for real-time data)
|
|
# Get yours at: https://polygon.io/
|
|
POLYGON_API_KEY=your_polygon_key
|
|
|
|
# Yahoo Finance (no key needed, but rate limited)
|
|
YAHOO_FINANCE_ENABLED=true
|
|
|
|
# =============================================================================
|
|
# API KEYS - NEWS
|
|
# =============================================================================
|
|
# NewsAPI.org (free tier: 100 requests/day)
|
|
# Get yours at: https://newsapi.org/register
|
|
NEWS_API_KEY=your_newsapi_key
|
|
|
|
# Finnhub (free tier available)
|
|
# Get yours at: https://finnhub.io/
|
|
FINNHUB_API_KEY=your_finnhub_key
|
|
|
|
# =============================================================================
|
|
# API KEYS - AI/NLP
|
|
# =============================================================================
|
|
# OpenAI (for sentiment analysis)
|
|
# Get yours at: https://platform.openai.com/api-keys
|
|
OPENAI_API_KEY=your_openai_key
|
|
OPENAI_MODEL=gpt-4o-mini
|
|
|
|
# Alternative: Use local LLM (Ollama)
|
|
USE_LOCAL_LLM=false
|
|
OLLAMA_HOST=http://ollama:11434
|
|
OLLAMA_MODEL=llama3.2
|
|
|
|
# =============================================================================
|
|
# APPLICATION SETTINGS
|
|
# =============================================================================
|
|
# Backend
|
|
BACKEND_HOST=0.0.0.0
|
|
BACKEND_PORT=8000
|
|
SECRET_KEY=CHANGE_ME_GENERATE_A_RANDOM_STRING
|
|
DEBUG=false
|
|
|
|
# Frontend
|
|
FRONTEND_PORT=3010
|
|
VITE_API_URL=http://localhost:8000
|
|
|
|
# =============================================================================
|
|
# SCANNING SETTINGS
|
|
# =============================================================================
|
|
# How often to fetch news (in seconds)
|
|
NEWS_SCAN_INTERVAL=300
|
|
|
|
# How often to fetch stock prices (in seconds)
|
|
STOCK_PRICE_INTERVAL=60
|
|
|
|
# Maximum stocks to track simultaneously
|
|
MAX_TRACKED_STOCKS=500
|
|
|
|
# Panic threshold (-100 to 0, lower = more panic)
|
|
PANIC_THRESHOLD=-50
|
|
|
|
# =============================================================================
|
|
# ALERT SETTINGS
|
|
# =============================================================================
|
|
# Telegram alerts (optional)
|
|
TELEGRAM_BOT_TOKEN=your_telegram_bot_token
|
|
TELEGRAM_CHAT_ID=your_telegram_chat_id
|
|
|
|
# Discord webhook (optional)
|
|
DISCORD_WEBHOOK_URL=your_discord_webhook_url
|
|
|
|
# =============================================================================
|
|
# DEVELOPMENT
|
|
# =============================================================================
|
|
# Set to true for hot reload and debug logs
|
|
DEV_MODE=false
|