mirror of
https://ghfast.top/https://github.com/aeroxw/tick-stock-panel.git
synced 2026-09-12 21:24:16 +08:00
depth 盘中轮询原只受「连板梯队监控」开关 + DEPTH5_BATCH 能力门控, 与实时行情开关无关。实时行情关闭时 enriched 内存缓存停留在上一 交易日, 轮询线程整个盘中反复拉取陈旧的涨跌停名单 (如周一开盘仍在 拉上周五的 49 只), 浪费 API 额度且数据无意义。 - start_polling 增加 realtime_quotes_enabled 门控: 三重 AND (监控开关 ∧ 实时行情 ∧ 能力), boot 启动/监控开关切换路径自动生效 - update_realtime_quotes 保存偏好后同步启停 depth 轮询: 开实时行情 → start_polling (仍受监控开关/能力门控), 关 → stop_polling 立即停 盘后 15:02 定版 job 与启动补跑 (boot_check/finalize 单次拉取) 不受 影响, 历史 sealed 数据链路保持完整。 验证: 5 组偏好组合单测门控行为; 13 个 depth 窗口测试通过; 实测重启后 (监控开+实时关) 不再出现「盘中轮询已启动」。