Files
trumpsignal-backend/app
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