Files
crypto_monitor/docs/审计修复报告-WS回滚与中控可用-2026-08-11-R2.md
T
dekun bab42b1b53 fix(hub): restore pre-WS quote path and relieve Gate/account contention
Two audit rounds after WS rollback: lighten hub options snapshot, cache hub balances without extra fetch_balance, soft-poll single-flight, and document fixes in R1/R2 reports.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-11 12:30:27 +08:00

1.7 KiB

审计修复报告 · WS 回滚与中控可用性(2026-08-11 · 第 2 轮)

范围

复查第 1 轮修复是否引入回归,并扫清仍会导致「中控不可用」的残留高优先级问题。

复查结论

结论
Hub 并行 options 索引进位 正确(day / options 组合无错位)
Hub 关闭 close_preview UI 降级为 upl/,不崩
Gate RS 缓存 / timeout timeout 已为 int;缓存可接受
board row capabilities _fetch_agent_status 始终带上
with_close_preview 默认 实例路径仍为 True

本轮新发现问题与修复

级别 问题 修复
High Hub 账户在 force=False 后仍调用 get_available_trading_usdt() 再打一枪 fetch_balance,Gate 争用依旧 三所 _hub_account_bundle 改为用缓存的 trading_usdt 作为 available_trading_usdt
Medium loadChain soft 门禁在 seq++ 之后,叠刷可导致 chainLoadInFlight 永不清理 soft 门禁移到 seq++ 之前

与第 1 轮一并交付的状态

  • WS 推送链路已回滚(REST + 15s soft-poll)
  • 中控期权快照轻量化 + 并行拉取
  • Gate RS K 线短缓存 + ccxt timeout
  • 期权 tickers 10s 缓存;soft 单飞/单次尝试

已知残留(不阻塞本次部署)

  • Gate 监控与账户仍共用单一 ccxt 客户端(无全局锁)
  • 中控 board 仍可能被最慢交易所拉长整轮
  • Soft-poll 非真·实时报价

部署后验收

  1. 中控强刷:OKX 期权区有资金数字,不再长期「期权数据不可用」
  2. Gate 卡:子代理恢复绿色/有资金;不再长时间「子代理不可用」
  3. 期权页刷新链不白屏;约 15s 静默更新时间戳