# ===========================================
# STOCK BOT PLATFORM - ENVIRONMENT VARIABLES
# ===========================================

# Core Application Settings
NODE_ENV=development
LOG_LEVEL=debug
LOG_HIDE_OBJECT=true

# Data Service Configuration
DATA_SERVICE_PORT=2001

# Queue and Worker Configuration
WORKER_COUNT=1
WORKER_CONCURRENCY=2

WEBSHARE_API_KEY=y8ay534rcbybdkk3evnzmt640xxfhy7252ce2t98
WEBSHARE_ROTATING_PROXY_URL=http://doimvbnb-rotate:w5fpiwrb9895@p.webshare.io:80/
WEBSHARE_API_URL=https://proxy.webshare.io/api/v2/

# ===========================================
# DATABASE CONFIGURATIONS
# ===========================================

# Dragonfly/Redis Configuration
DRAGONFLY_HOST=localhost
DRAGONFLY_PORT=6379
DRAGONFLY_PASSWORD=

# PostgreSQL Configuration
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_DATABASE=trading_bot
POSTGRES_USERNAME=trading_user
POSTGRES_PASSWORD=trading_pass_dev
POSTGRES_SSL=false

# QuestDB Configuration
QUESTDB_HOST=localhost
QUESTDB_PORT=9000
QUESTDB_DB=qdb
QUESTDB_USERNAME=admin
QUESTDB_PASSWORD=quest

# MongoDB Configuration
MONGODB_HOST=localhost
MONGODB_PORT=27017
MONGODB_DATABASE=stock
MONGODB_USERNAME=trading_admin
MONGODB_PASSWORD=trading_mongo_dev
MONGODB_URI=mongodb://trading_admin:trading_mongo_dev@localhost:27017/stock?authSource=admin

# ===========================================
# DATA PROVIDER CONFIGURATIONS
# ===========================================

# Proxy Configuration
PROXY_VALIDATION_HOURS=24
PROXY_BATCH_SIZE=100
PROXY_DIRECT_MODE=false

# Yahoo Finance (if using API keys)
YAHOO_API_KEY=
YAHOO_API_SECRET=

# QuoteMedia Configuration
QUOTEMEDIA_API_KEY=
QUOTEMEDIA_BASE_URL=https://api.quotemedia.com

# ===========================================
# TRADING PLATFORM INTEGRATIONS
# ===========================================

# Alpaca Trading
ALPACA_API_KEY=
ALPACA_SECRET_KEY=
ALPACA_BASE_URL=https://paper-api.alpaca.markets
ALPACA_PAPER_TRADING=true

# Polygon.io
POLYGON_API_KEY=
POLYGON_BASE_URL=https://api.polygon.io

# ===========================================
# RISK MANAGEMENT
# ===========================================

# Risk Management Settings
MAX_POSITION_SIZE=10000
MAX_DAILY_LOSS=1000
MAX_PORTFOLIO_EXPOSURE=0.8
STOP_LOSS_PERCENTAGE=0.02
TAKE_PROFIT_PERCENTAGE=0.05

# ===========================================
# MONITORING AND OBSERVABILITY
# ===========================================

# Prometheus Configuration
PROMETHEUS_HOST=localhost
PROMETHEUS_PORT=9090
PROMETHEUS_METRICS_PORT=9091
PROMETHEUS_PUSHGATEWAY_URL=http://localhost:9091

# Grafana Configuration
GRAFANA_HOST=localhost
GRAFANA_PORT=3000
GRAFANA_ADMIN_USER=admin
GRAFANA_ADMIN_PASSWORD=admin

# Loki Logging
LOKI_HOST=localhost
LOKI_PORT=3100
LOKI_URL=http://localhost:3100

# ===========================================
# CACHE CONFIGURATION
# ===========================================

# Cache Settings
CACHE_TTL=300
CACHE_MAX_ITEMS=10000
CACHE_ENABLED=true

# ===========================================
# SECURITY SETTINGS
# ===========================================

# JWT Configuration
JWT_SECRET=your-super-secret-jwt-key-change-this-in-production
JWT_EXPIRES_IN=24h

# API Rate Limiting
RATE_LIMIT_WINDOW=15
RATE_LIMIT_MAX_REQUESTS=100

# ===========================================
# DEVELOPMENT SETTINGS
# ===========================================

# Debug Settings
DEBUG_MODE=false
VERBOSE_LOGGING=false

# Development Tools
HOT_RELOAD=true
SOURCE_MAPS=true

# ===========================================
# DOCKER CONFIGURATION
# ===========================================

# Docker-specific settings (used in docker-compose)
COMPOSE_PROJECT_NAME=stock-bot
DOCKER_BUILDKIT=1

# ===========================================
# MISCELLANEOUS
# ===========================================

# Timezone
TZ=UTC

# Application Metadata
APP_NAME="Stock Bot Platform"
APP_VERSION=1.0.0
APP_DESCRIPTION="Advanced Stock Trading and Analysis Platform"

# PostgreSQL
DATABASE_POSTGRES_HOST=localhost
DATABASE_POSTGRES_PORT=5432
DATABASE_POSTGRES_DATABASE=trading_bot
DATABASE_POSTGRES_USER=trading_user
DATABASE_POSTGRES_PASSWORD=trading_pass_dev
