Files
2026-11-17 20:07:31 +01:00

65 lines
2.6 KiB
Bash

# For Docker Compose on a plain server. In Portainer, add these as the stack's environment variables instead.
# Copy this file to .env and fill in your values.
# --- Docker / Traefik ---
BOT_DOMAIN=yoteinvest.dv3.app
# Dashboard login. Generate with: docker run --rm httpd:2.4-alpine htpasswd -nbB admin 'your-password'
# Paste the output inside SINGLE quotes (so the $ signs are kept as-is):
DASHBOARD_AUTH='admin:$2y$05$replace-with-your-hash'
# Match these to your Traefik setup:
TRAEFIK_NETWORK=traefik
TRAEFIK_ENTRYPOINT=websecure
TRAEFIK_CERTRESOLVER=letsencrypt
# --- Demo mode ---
# true = Yote-In-Vest runs on its own with fake money: no broker, no TradingView needed.
DEMO_MODE=true
# real = live prices (Yahoo Finance) + real news headlines; simulated = made-up, works offline
DEMO_DATA=real
# Candle size for real data (15m, 1h or 1d) and how often to check for new prices (seconds)
DEMO_INTERVAL=1h
DEMO_POLL_SECONDS=900
# --- News sources (all optional; each one that fails is skipped and shown on the dashboard) ---
# google = headlines per asset, ecb / fed = central-bank announcements, finnhub = needs the key below
NEWS_SOURCES=google,ecb,fed,finnhub
# Free key from finnhub.io: adds company news for US stocks and a crypto news feed.
FINNHUB_API_KEY=
# --- Bot ---
# Must match the "Webhook secret" input in the TradingView strategy. Use a long random string.
WEBHOOK_SECRET=change-me
# Alpaca PAPER keys (alpaca.markets -> Paper Trading -> API Keys).
# Leave empty to simulate crypto on the built-in paper account instead.
ALPACA_API_KEY=
ALPACA_SECRET_KEY=
# Never set this to true until you have months of paper results you trust.
ALPACA_LIVE=false
# DeepSeek API key (platform.deepseek.com). Without it: in demo mode a simple keyword score
# judges the real headlines; outside demo mode, buys are blocked (safe default).
DEEPSEEK_API_KEY=
DEEPSEEK_MODEL=deepseek-chat
# Built-in paper account starting balance in euros (the demo's fake money, and AEX stocks)
PAPER_START_CASH=10000
# Risk rules
MAX_POSITION_PCT=0.10
# Hard cap per buy order, in euros. News scaling applies on top (neutral = 75%, mild bearish = 50%).
MAX_ORDER_EUR=50
# Used to convert the euro cap for Alpaca (USD account). Keep it roughly current.
EUR_USD_RATE=1.10
# Fallback pounds per euro for London shares, used only if the live rate can't be fetched.
EUR_GBP_RATE=0.87
# Skip buys while the share's exchange is closed (Mon to Fri, regular hours; holidays not modelled).
ENFORCE_MARKET_HOURS=true
MAX_OPEN_POSITIONS=4
DAILY_LOSS_LIMIT_PCT=0.03
VETO_CONFIDENCE=0.6
BLOCK_BUYS_IF_FILTER_FAILS=true
# US stock buy signals while Wall Street is closed: skip, or queue (buy at the next open)
US_AFTER_HOURS=skip