74 lines
2.6 KiB
YAML
74 lines
2.6 KiB
YAML
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(与微信同源条件;方案 A 止盈止损)
|
||
# 首次启动时从本段导入 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
|
||
|
||
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
|
||
|
||
# 仅在 universe=watchlist 时使用;all_swaps 下可留空列表
|
||
watch_symbols: []
|
||
|
||
# 本地 Ollama + Gemma 漏斗(扫描命中 → 日线+图 → JSON 打分 → 高优先级企业微信)
|
||
gemma:
|
||
enabled: true
|
||
ollama_base_url: "http://192.168.8.64:11434"
|
||
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
|