app: host: "0.0.0.0" port: 8088 poll_interval_seconds: 300 log_file: "./runtime/system.log" database_url: "sqlite+aiosqlite:///./runtime/alerts.db" session_secret: "change-me-to-a-long-random-string" auth: # 纯局域网可设 false,打开 / 与 /dashboard 不再要求登录(勿在公网关闭) enabled: true username: "admin" password: "Admin@123456" wecom: webhook: "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=replace" mentioned_mobile_list: [] gate: api_base: "https://api.gateio.ws/api/v4" settle: "usdt" quote_currency: "USDT" # 出站代理:仅 Gate 等外网 httpx;企业微信与本机/局域网 Ollama 不走代理。需 pip 安装 httpx[socks] proxy: enabled: true url: "socks5h://127.0.0.1:1080" # 关键位门控通过后向 gate_order_executor POST /v1/signal(单一 SL/TP;见 key_monitor.forward_executor) # 首次启动时从本段导入 runtime/order_executors.json;之后以 Web 面板「下单执行器」为准(可热增删,无需重启)。 # 请求直连各 base_url,不走 proxy。webhook_secret 须与各执行器 security.webhook_secret 一致。 order_executor: enabled: false base_url: "http://127.0.0.1:8090" webhook_secret: "same-as-gate-order-executor-security-webhook_secret" timeout_seconds: 15 # 人工关键位突破(面板录入上下沿;5m 门控通过后企微 + 可选转发执行器) key_monitor: enabled: true poll_interval_seconds: 5 push_wecom: true forward_executor: true standard_stop_outside_pct: 0.3 trend_stop_outside_pct: 1.0 min_planned_rr: 1.5 volume_ma_bars: 20 volume_ratio_min: 1.3 breakout_amp_min_pct: 0.03 breakout_amp_max_pct: 0.5 trend_breakout_amp_max_pct: 1.5 daily_volume_rank_max: 30 # 全市场 5m TRIGGER 是否仍转发执行器(默认 false,仅关键位转发) auto_scan_forward_executor: false monitor: universe: "all_swaps" # 近 24h 估算成交额(USDT)下限,建议 ≥ 1 千万以缩小扫描面 min_24h_quote_volume_usdt: 10000000 # 可选:记录 BTC 日线 regime 供面板参考;不再拦截山寨扫描(推送门控见 monitor 内 8h×15m + 本币4h) btc_daily_gate_enabled: true btc_sideways_lookback_days: 14 btc_sideways_max_range_pct: 10.0 # 同一币种对同一类告警链 4 小时内只入库 + 推送一次(WATCH/TRIGGER/漏斗分别计数);0 关闭 symbol_signal_dedupe_hours: 4 # 企业微信主推送:仅成交量排名前 N;0 表示不限制 wecom_push_max_volume_rank: 30 # 全市场自动箱体 WATCH/TRIGGER 企微(默认 false;只保留 GEMMA 漏斗推送 + 关键位推送) push_watch_trigger_wecom: false # 仅在 universe=watchlist 时使用;all_swaps 下可留空列表 watch_symbols: [] # Gemma 漏斗(扫描命中 → 日线+图 → JSON 打分 → 高优先级企业微信) # 本机 Ollama:ollama_base_url: http://127.0.0.1:11434 ,api_style: ollama ,api_key 留空 # OpenAI 兼容网关(如 op.bz121.com):base 填 https://op.bz121.com/v1 ,api_style: openai ,api_key: sk-... # model 须与网关中登记的模型 ID 完全一致 gemma: enabled: true ollama_base_url: "https://op.bz121.com/v1" api_style: "openai" api_key: "sk-replace-with-your-key" model: "gemma4:e4b" timeout_seconds: 180 temperature: 0.15 json_mode: true send_chart_image: true max_funnel_per_cycle: 12 vision_top_n: 4 gemma_push_priority_min: 7.0 composite_push_min: 72.0 # 每日晨报:北京时间定时生成“昨天复盘 + BTC 方向”,展示于网页并可推送企业微信 daily_report: enabled: true run_time_cn: "08:30" push_wecom: true run_on_startup: false # ⚠️ NAV_ALLOW_EMBED / NAV_EMBED_ORIGINS 是进程环境变量,勿写在本文件;见 deploy/ecosystem.config.cjs