k 041f010a30 fix(kol): count 'reduce' action in divergence detection (was silently dropped)
kol-v2 added the 'reduce' action (KOL partially trimming a long), but
kol_divergence._POST_LONG/_POST_SHORT predate it, so any post whose ticker
action was 'reduce' was skipped by the 'not in (_POST_LONG|_POST_SHORT)'
guard — the divergence scan never saw it.

That dropped a high-value case: a KOL publicly trimming/taking profit on an
asset while their on-chain wallet is ADDING is exactly the talks-vs-trades
mismatch this module exists to surface. 'reduce' is a short-leaning stance,
so it now joins _POST_SHORT:
  reduce + chain adding   → divergence (long)
  reduce + chain reducing → alignment (short)

72 tests pass.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-30 03:07:43 +08:00
2026-04-20 23:05:59 +08:00
2026-04-20 23:05:59 +08:00
2026-04-21 19:33:24 +08:00
2026-04-21 19:33:24 +08:00

  1. 填 backend .env(生产值):

POSTGRES_PASSWORD=强密码 FRONTEND_URL=https://你的前端域名 ENCRYPTION_KEY=之前生成的那个 AI_API_KEY=sk-... ENVIRONMENT=production 2. 改前端 .env.local

NEXT_PUBLIC_API_URL=https://api.你的域名.com NEXT_PUBLIC_WS_URL=wss://api.你的域名.com 启动:

cd backend docker compose up -d

S
Description
No description provided
Readme 718 KiB
Languages
Python 99.6%
Shell 0.3%
Dockerfile 0.1%