feat: 重构为三所价差异动监控系统

删除 HyperLiquid + 全部交易功能,构建自适应 surge 检测器。
- 新增 surge_detector.go: 每币独立滚动窗口基线,检测三所价差异常飙升
- 新增 SpreadCard/SurgeCard 前端组件
- 保留 momentum/trend/cumulative/trend_filter 扫描功能
- 更新文档和配置以反映新系统

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jackyu66git
2026-05-08 02:01:18 +08:00
co-authored by Claude Opus 4.6
parent 559d7bb870
commit d38782490c
36 changed files with 1201 additions and 6374 deletions
+1 -14
View File
@@ -37,10 +37,6 @@ type MomentumEntry struct {
BG5s float64 `json:"bg_5s"`
BG15s float64 `json:"bg_15s"`
BG60s float64 `json:"bg_60s"`
HL1s float64 `json:"hl_1s"`
HL5s float64 `json:"hl_5s"`
HL15s float64 `json:"hl_15s"`
HL60s float64 `json:"hl_60s"`
BN1s float64 `json:"bn_1s"`
BN5s float64 `json:"bn_5s"`
BN15s float64 `json:"bn_15s"`
@@ -95,10 +91,9 @@ func (mt *MomentumTracker) Snapshot(thresholdPct float64) []MomentumEntry {
var result []MomentumEntry
for coin, exMap := range mt.buffers {
bgBuf, hasBG := exMap[ExBitget]
hlBuf, hasHL := exMap[ExHyperLiquid]
bnBuf, hasBN := exMap[ExBinance]
okBuf, hasOK := exMap[ExOKX]
if !hasBG && !hasHL && !hasBN && !hasOK {
if !hasBG && !hasBN && !hasOK {
continue
}
@@ -113,14 +108,6 @@ func (mt *MomentumTracker) Snapshot(thresholdPct float64) []MomentumEntry {
entry.BG60s = changes[3]
allChanges = append(allChanges, changes[:]...)
}
if hasHL {
changes := calcWindows(hlBuf)
entry.HL1s = changes[0]
entry.HL5s = changes[1]
entry.HL15s = changes[2]
entry.HL60s = changes[3]
allChanges = append(allChanges, changes[:]...)
}
if hasBN {
changes := calcWindows(bnBuf)
entry.BN1s = changes[0]