workspace/projects/trading-platform/apps/personal/.env.example
rckrdmrd 789d1ab46b
Some checks failed
CI Pipeline / changes (push) Has been cancelled
CI Pipeline / core (push) Has been cancelled
CI Pipeline / trading-backend (push) Has been cancelled
CI Pipeline / trading-data-service (push) Has been cancelled
CI Pipeline / trading-frontend (push) Has been cancelled
CI Pipeline / erp-core (push) Has been cancelled
CI Pipeline / erp-mecanicas (push) Has been cancelled
CI Pipeline / gamilit-backend (push) Has been cancelled
CI Pipeline / gamilit-frontend (push) Has been cancelled
changes on workspace
2025-12-09 14:46:20 -06:00

110 lines
3.7 KiB
Plaintext

# =============================================================================
# OrbiQuant IA - Personal Trading Platform Configuration
# =============================================================================
# Copy this file to .env and fill in your credentials
# -----------------------------------------------------------------------------
# LLM Provider (choose one as primary, others as fallback)
# -----------------------------------------------------------------------------
# Preferred provider: 'ollama' (local), 'openai', 'claude', 'multi' (auto-failover)
LLM_PROVIDER=ollama
# Ollama (Local - Recommended for privacy)
OLLAMA_URL=http://localhost:11434
OLLAMA_MODEL=llama3:8b
# OpenAI (Optional - for GPT-4)
# OPENAI_API_KEY=sk-your-openai-key
# OPENAI_MODEL=gpt-4-turbo-preview
# Anthropic Claude (Optional)
# ANTHROPIC_API_KEY=sk-your-anthropic-key
# CLAUDE_MODEL=claude-3-5-sonnet-20241022
# -----------------------------------------------------------------------------
# MT4/MT5 via MetaAPI.cloud
# -----------------------------------------------------------------------------
# Get your token and account ID from https://metaapi.cloud
METAAPI_TOKEN=your-metaapi-token
METAAPI_ACCOUNT_ID=your-account-id
# Trade execution mode: 'paper' (demo) or 'live'
# IMPORTANT: Start with paper trading!
TRADE_MODE=paper
# Risk management defaults
MAX_RISK_PERCENT=2
MAX_POSITIONS=5
MAX_DAILY_TRADES=10
# -----------------------------------------------------------------------------
# Market Data Provider
# -----------------------------------------------------------------------------
# Polygon.io / Massive.com for market data
# POLYGON_API_KEY=your-polygon-key
# Binance (for crypto)
# BINANCE_API_KEY=your-binance-key
# BINANCE_SECRET_KEY=your-binance-secret
# -----------------------------------------------------------------------------
# Database
# -----------------------------------------------------------------------------
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_DB=orbiquant
POSTGRES_USER=orbiquant
POSTGRES_PASSWORD=your-secure-password
# Redis (for caching)
REDIS_URL=redis://localhost:6379
# -----------------------------------------------------------------------------
# Application Settings
# -----------------------------------------------------------------------------
# Mode: 'personal' (single user) or 'platform' (multi-tenant)
APP_MODE=personal
# Ports
BACKEND_PORT=3000
FRONTEND_PORT=5173
ML_ENGINE_PORT=8001
DATA_SERVICE_PORT=8002
LLM_AGENT_PORT=8003
# JWT Secret (generate a random string)
JWT_SECRET=your-very-long-random-secret-key-minimum-32-chars
# Log level: debug, info, warn, error
LOG_LEVEL=info
# -----------------------------------------------------------------------------
# GPU Settings (for ML and Ollama)
# -----------------------------------------------------------------------------
# Enable CUDA for GPU acceleration
CUDA_VISIBLE_DEVICES=0
USE_GPU=true
# -----------------------------------------------------------------------------
# Auto-Trading Settings
# -----------------------------------------------------------------------------
# Enable auto-trading (requires user confirmation by default)
AUTO_TRADE_ENABLED=false
AUTO_TRADE_REQUIRE_CONFIRMATION=true
AUTO_TRADE_MIN_CONFIDENCE=0.7
AUTO_TRADE_MIN_SCORE=60
# -----------------------------------------------------------------------------
# Notification Settings (Optional)
# -----------------------------------------------------------------------------
# Telegram bot for alerts
# TELEGRAM_BOT_TOKEN=your-bot-token
# TELEGRAM_CHAT_ID=your-chat-id
# Email notifications
# SMTP_HOST=smtp.gmail.com
# SMTP_PORT=587
# SMTP_USER=your-email
# SMTP_PASSWORD=your-app-password
# NOTIFICATION_EMAIL=your-email@example.com