added env back and fixed up queue service
This commit is contained in:
parent
7f592fe628
commit
d9404c2bda
5 changed files with 258 additions and 33 deletions
162
.env
Normal file
162
.env
Normal file
|
|
@ -0,0 +1,162 @@
|
|||
# ===========================================
|
||||
# STOCK BOT PLATFORM - ENVIRONMENT VARIABLES
|
||||
# ===========================================
|
||||
|
||||
# Core Application Settings
|
||||
NODE_ENV=development
|
||||
LOG_LEVEL=info
|
||||
|
||||
# Data Service Configuration
|
||||
DATA_SERVICE_PORT=2001
|
||||
|
||||
# Queue and Worker Configuration
|
||||
WORKER_COUNT=5
|
||||
WORKER_CONCURRENCY=20
|
||||
|
||||
# ===========================================
|
||||
# DATABASE CONFIGURATIONS
|
||||
# ===========================================
|
||||
|
||||
# Dragonfly/Redis Configuration
|
||||
DRAGONFLY_HOST=localhost
|
||||
DRAGONFLY_PORT=6379
|
||||
DRAGONFLY_PASSWORD=
|
||||
|
||||
# PostgreSQL Configuration
|
||||
POSTGRES_HOST=localhost
|
||||
POSTGRES_PORT=5432
|
||||
POSTGRES_DB=stockbot
|
||||
POSTGRES_USER=postgres
|
||||
POSTGRES_PASSWORD=postgres
|
||||
POSTGRES_SSL=false
|
||||
|
||||
# QuestDB Configuration
|
||||
QUESTDB_HOST=localhost
|
||||
QUESTDB_PORT=9000
|
||||
QUESTDB_DB=qdb
|
||||
QUESTDB_USER=admin
|
||||
QUESTDB_PASSWORD=quest
|
||||
|
||||
# MongoDB Configuration
|
||||
MONGODB_HOST=localhost
|
||||
MONGODB_PORT=27017
|
||||
MONGODB_DB=stockbot
|
||||
MONGODB_USER=
|
||||
MONGODB_PASSWORD=
|
||||
MONGODB_URI=mongodb://localhost:27017/stockbot
|
||||
|
||||
# ===========================================
|
||||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue